JSON Formatter
Tidy, check or minify JSON as you paste it.
Loading the tool on your device…
JSON Formatter checks your JSON and lays it out with the indentation you choose, or squeezes it onto one line. Errors point to the line and column.
Updated 6 December 2026 · runs in your browser
How to use it
- Paste JSON, open a .json file, or start from the example.
- Choose how to lay it out: 2 spaces, 4 spaces, tabs, or minified.
- Copy the result or download it as a file.
Details
| Input | JSON text or a .json file |
|---|---|
| Output | Formatted or minified JSON |
| Size | Comfortable up to about 20 MB |
| Checks | Syntax, with line and column of the first error |
Questions
Do my files leave my computer?
No. This tool runs inside your browser tab. The page makes no network request with your data, and you can check that yourself in your browser's developer tools.
Does it sort keys?
No. Keys keep their original order so the output matches your data.
Related tools
- CSV to JSON
Convert CSV to JSON and back, quotes and all.
- JWT Decoder
Read a JSON Web Token's header, claims and expiry.
- Regex Tester
Try a regular expression and see every match live.