JSON formatter and validator
Make your JSON readable, minify it or sort its keys. For invalid JSON it shows the line and column of the problem.
How to use it
- Paste or type your JSON on the left; the result updates as you type.
- Format makes it readable, Minify removes whitespace. Indentation and key sorting preferences are remembered.
- If the JSON is invalid, the line and column of the error are shown together with that line.
FAQ
Why are large numbers not changed?
Many tools convert JSON to JavaScript numbers and round large integers such as 9007199254740993. This tool keeps numbers exactly as written; it still warns about them, because programs reading them with JavaScript may round them.
Why are comments and trailing commas errors?
The JSON standard (RFC 8259) does not allow comments, trailing commas or single quotes. The tool recognises these cases and says so clearly.
How large a JSON can it handle?
Up to 50 MB. Input larger than 2 MB is processed with the Process button rather than as you type; results larger than 1 MB are shown without colours.
Can you see the data I paste?
No. The tools run in your browser; what you enter is not sent to our server and is not stored anywhere. When you open the page, the web server keeps an access log as on any site (IP address, date, requested address, browser identifier); it contains none of your data and is deleted after about 10 days. Your browser remembers only your preferences (such as indentation). See the privacy policy for details.