Private by design: the input stays in this browser and is not uploaded to our server.
Maximum 10 MB · processed locally
Ready. Paste input, open a file or use the example.
About this tool
Format JSON safely and quickly.
Beautify difficult-to-read API responses and configuration files, or validate JSON before using it in an application or data pipeline.
What it handles
- Formats JSON with two or four spaces
- Validates syntax and reports the error position
- Minifies valid JSON for transport or storage
- Never sends the JSON to our server
Common questions
JSON Formatter and Validator FAQ
What does the JSON formatter change?
It changes whitespace and indentation only. Object keys, values and array order remain unchanged.
Can it repair invalid JSON automatically?
No. It reports the parsing error so you can correct the source without silently changing its meaning.
Can I minify JSON?
Yes. Select Minify to remove unnecessary whitespace while preserving the parsed JSON value.