Data & text
JSON formatter
Clean up JSON with pretty-printing or minification, and get a readable error when the input is invalid.
Open JSON formatter tool Runs in your browser - files are never uploadedHow to use it
- Paste your JSON.
- Choose pretty-print or minify and set the indent.
- Run the tool and copy or download the result.
Frequently asked questions
Is my data sent anywhere?
No. Formatting happens entirely in your browser.
Does it validate as I type?
It validates when you run the tool and shows the exact error position when possible.
Can I minify too?
Yes, switch the mode to Minify to strip whitespace.