JSON Formatter
Format, validate and minify JSON.
Runs in your browserAbout this tool
Minified or poorly formatted JSON is hard to read and debug, while confirming it's actually valid JSON in the first place isn't something you can reliably do just by eye. This tool formats, validates and minifies JSON, giving you both a readable version and confirmation that the JSON is actually valid.
How to use this
- 1Paste your raw or minified JSON.
- 2The tool formats and validates it automatically.
- 3Copy the formatted result, or use minify to compress it back down.
Troubleshooting
It says my JSON is invalid but it looks fine to me.
Check for a trailing comma after the last item in an object or array, and that all strings use double quotes, both are common causes of invalid JSON.

