Paste JSON to check that it is valid and to format it with the indentation you prefer, minify it for transport, or sort the keys alphabetically.
Loading the tool…
How it works
- The text is parsed with the browser’s strict JSON parser. If it parses, it is written back with your chosen indentation. Errors report the position.
- Runs entirely in your browser: what you paste is not sent anywhere.
Assumptions and limits
- Strict JSON only: comments, trailing commas and single quotes are not allowed. Very large numbers lose precision beyond 15–17 digits, as in all JavaScript tools.
Frequently asked questions
Why does my JSON fail?
The usual causes are trailing commas, single quotes, unquoted keys and comments, none of which are valid JSON.