How to use
- Paste your JSON.
- Choose the indent (2, 4 or tab) and press “Format” or “Minify”.
- Copy or download the result. If there's an error, its line and column are shown.
Expand one-line JSON into something readable and spot syntax errors right away.
🔒 What you enter never goes to a server — every calculation happens on your device (in your browser).
JSON is stricter than it looks: keys must be in double quotes, there can be no comma after the last item, and single quotes, comments and undefined aren't allowed. When an error position is shown, look just before it first.
Sorting keys alphabetically makes it easier to compare two JSON documents or keep config files tidy. Array order isn't changed.
A few megabytes are handled instantly. Very large files may be slow depending on your device's memory.
Standard JSON has no comments, so it reports an error. Remove them or handle the file as YAML.
Very large integers (more than about 16 digits) can be rounded by JavaScript's number limits.
No. It's processed only in your browser.