JSON Formatter & Validator

Format, minify and validate JSON, with the exact position of any error.

Runs in your browser using JSON.parse — nothing is uploaded

How to use it

  1. Paste your JSON.
  2. Format indents it, Minify strips whitespace, Sort keys orders object keys alphabetically.
  3. If the JSON is invalid you get the line, column and character that caused it.

Questions

Why is my JSON invalid when it looks fine?
The usual causes are a trailing comma after the last item, single quotes instead of double, unquoted keys, or a comment. JSON allows none of those, even though JavaScript does.
Is my data sent anywhere?
No. Parsing uses the browser’s own JSON engine. You can disconnect from the network and the tool still works.

Related tools