How to format and validate JSON
- 1
Paste your JSON into the box, or type it in.
- 2
Choose Format to indent it, or Minify to strip the spaces.
- 3
Any syntax error is pointed out with its line, so you can fix it and copy the result.
Questions
What makes JSON invalid?
The usual causes are a trailing comma, single quotes instead of double quotes, keys without quotes, or comments. JSON allows none of these.
What's the difference between format and minify?
Formatting adds line breaks and indentation so people can read it. Minifying removes them so the file is as small as possible for sending or storing.
Is my data uploaded anywhere?
No. This tool runs entirely in your browser, so what you paste never leaves your device.