JSON5 to JSON
Convert JSON5 files with comments and trailing commas to strict JSON.
Output Format
Paste JSON5 above to convert
Conversion happens automatically as you type
What is JSON5?
Comments
JSON5 supports single-line (//) and multi-line (/* */) comments, which are stripped during conversion.
Trailing Commas
Arrays and objects can have trailing commas after the last element, which standard JSON forbids.
Unquoted Keys
Object keys don't need to be quoted if they are valid ECMAScript identifiers.
Extended Values
Supports hex numbers (0xFF), Infinity, NaN, single-quoted strings, and multi-line strings.
Learn More
JSON5 adds comments, trailing commas, and more to JSON. Learn where it is used and how to convert it to standard JSON.
What Is JSON5?
JSON5 is a superset of JSON that adds features inspired by ECMAScript 5.1 syntax. It was created to make JSON more human-friendly for configuration files and other cases where people write and read JSON by hand. Every valid JSON document is also valid JSON5, but JSON5 adds comments, trailing commas, unquoted keys, and other conveniences.