JSON Formatter
Beautify, minify, sort keys and validate JSON.
Options
How to use
- Paste JSON — the line below shows whether it is valid, with the error position if not.
- "Beautify" formats with the chosen indent; "Minify" strips all whitespace.
- "Sort keys" recursively orders object keys — handy for diffing.
Input is processed only in your browser and is never sent anywhere.
FAQ
- Trailing commas or comments?
- This uses the standard
JSON.parse, so trailing commas, comments and single quotes are invalid.