JSON
Format JSON online
Check syntax, pretty-print or minify JSON. The error shows with a position.
What this JSON formatter can do
- Validation with a clear error message
- Pretty-print with 2- or 4-space indent
- Minify to a single line
- Repair broken JSON
- Optional key sorting
- Search the output and copy JSONPath
How to format JSON online
Paste JSON
Drop your JSON into the input or load the sample.
Format or minify
Choose pretty-print or minify; enable sort keys if needed.
Check the stats
See key count, nesting depth and byte size of the document.
Copy the output
Search within the result and copy it in one click.
Frequently asked questions
What happens with invalid JSON?
The tool shows an error with the position of the problem, so you can fix trailing commas or quotes quickly.
Does sorting change my data?
Only the order of object keys changes — values stay untouched. Arrays keep their original order.
Is there a size limit?
Everything runs locally in the browser, so the limit is your device's memory — megabytes of JSON work fine.
Is my JSON uploaded?
No. Formatting and validation happen entirely on your device.
