JSON Formatter

Format minified or badly indented JSON into clean, readable output with your choice of indent width, right in your browser, with no upload step.

A JSON formatter re-indents JSON data so you can read it. It fixes indentation and key order, not invalid syntax, so use JSON Validator first when a file will not parse.

Output

                

Paste or type something above.

Questions about json formatter

Does my JSON leave the browser?
No. Formatting runs in JavaScript on your device. Nothing is uploaded, and the input stays in the page.
Can it fix invalid JSON?
No. It reports the parse error position instead. Use JSON Validator to see exactly where the syntax breaks.
Why did my key order change?
Key sorting is an optional switch that alphabetises object keys. Array order is never changed.