JSON5 Formatter

// Format JSON5 with comments and trailing commas

#About JSON5 Formatter

Free online JSON5 formatter and beautifier. Format JSON5 documents that include comments, trailing commas, and unquoted keys. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.

#FAQ

What is JSON5 and how is it different from JSON?
JSON5 is an extension of JSON that allows comments (single and multi-line), trailing commas, unquoted keys, single-quoted strings, and other conveniences. This formatter handles all these features while producing clean, indented output.
Can I use this to format regular JSON too?
Yes, since JSON is a valid subset of JSON5, you can use this formatter for standard JSON files as well. It will format them with proper indentation while preserving any JSON5 features present.
</> Embed this tool

Copy this code to embed the tool on your website. Adjust the height to fit your layout.

<iframe src="https://www.browserutils.dev/embed/json5-formatter" width="100%" height="500" frameborder="0" title="JSON5 Formatter"></iframe>

#Related