How to use the json formatter
- Paste your JSON into the box.
- Click Format to beautify it or Minify to compress it.
- If the JSON is invalid, the error message tells you where to look.
Common JSON mistakes
- Trailing commas after the last item
- Single quotes instead of double quotes
- Unquoted property names
- Comments, which JSON does not allow
Frequently asked questions
How do I format JSON?
Paste it into the box and click Format. The tool re-indents it so it is easy to read.
How do I validate JSON?
Click Format or Minify. If the JSON is not valid you will see an error with the position of the problem.
Is my JSON sent to a server?
No. Parsing happens in your browser, so API keys and private data stay on your device.
What does minify do?
It removes spaces and line breaks to make the JSON as short as possible.