π§Ύ JSON Formatter & Validator
Paste JSON to pretty-print it, find syntax errors with the exact line and column, minify it or sort keys alphabetically.
How to use
- Paste your JSON. It is validated and formatted instantly.
- If there is a syntax error, the tool shows the line and column so you can fix it quickly.
- Copy or download the result.
Common JSON errors
- Trailing comma β
[1, 2,] is not allowed in JSON.
- Single quotes β strings and keys must use double quotes.
- Comments β JSON has no comments. Turn on βAllow comments & trailing commasβ to clean config files such as tsconfig.json automatically.
- Unquoted keys β
{name: "x"} is JavaScript, not JSON.
Frequently asked questions
Is my JSON sent to a server?
No. Parsing and formatting run in your browser, so it is safe to paste API responses containing tokens or personal data.
Does sorting keys change array order?
No. Only object keys are sorted; arrays keep their order because order is meaningful in arrays.
How large can the JSON be?
Several megabytes work fine on a modern computer. Very large files may be slow on phones.