JSON Formatter
Beautify minified JSON with clean indentation, or minify it to a single line. Invalid JSON is flagged with the exact line and column, and you can sort keys alphabetically.
Recent
Nothing yet. Things you use will show up here so you can reuse them in one click.
How to use it
Paste JSON on the left and the formatted result appears on the right. Choose 2 spaces, 4 spaces or tabs, or switch to Minify to strip all whitespace. Handy for reading API responses and config files.
Finding errors
Missing commas, single quotes, trailing commas and other syntax errors are shown in red with the line and column, so you can jump straight to the problem.
FAQ
Is my JSON sent to a server?+
No. Formatting and validation run entirely in your browser, so data with tokens or internal info never leaves your machine.
When should I sort keys?+
Sorting keys makes two JSON documents easier to compare and keeps config files tidy. Array order is never changed.