JSON Formatter
Format, pretty-print, and validate JSON in your browser.
Convert JSON5 (with comments, trailing commas, unquoted keys) to standard JSON. Supports single-quoted strings and hex literals.
This tool converts text written in JSON5 format into standard JSON (RFC 8259).
JSON5 is an extended format that allows comments, trailing commas, single quotes, and more, making it convenient for config files and code comments. This tool lets you convert JSON5 into clean JSON that can be passed to standard APIs or parsers.
JSON5 is an extended version of JSON that allows comments, trailing commas, single-quoted strings, unquoted keys, hexadecimal literals, and more. It's convenient for writing config files, but standard JSON parsers can't read it, so it needs to be converted.
Yes. JSON5's Infinity and NaN are converted to strings. Since standard JSON has no such numeric literals, adjust them after conversion as needed for your use case.
Yes. Parsing is recursive, so deep nesting is supported. However, be mindful of your browser's memory limits with very large files.
No. All processing happens entirely in your browser.