JSON Formatter
Format, validate, minify, and sort JSON — fast, private, and in your browser.
0/500,000
Output
How to use
- Paste your JSON into the input box, or upload a .json file.
- Select your preferred indent style (2 spaces, 4 spaces, or tabs).
- Click Format to beautify, Minify to compress, Validate to check syntax, or Sort Keys to alphabetize.
- Review the output and stats, then copy the result with one click.
Examples
Minified input
{"name":"example","items":[1,2,3],"active":true}Formatted output
{
"name": "example",
"items": [1, 2, 3],
"active": true
}