JSON Formatter and Validator

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

How to use the JSON Formatter and Validator

  1. Paste your JSON into the input box.
  2. Choose Format to indent it, or Minify to remove all whitespace.
  3. If the JSON is not valid, the message tells you what is wrong and where.

Questions and answers

Is it safe to paste API responses here?

The JSON is parsed by your own browser and is never uploaded. Still, avoid pasting live secrets into any website.

What is the difference between formatting and minifying?

Formatting adds line breaks and indentation so people can read it. Minifying removes them so the file is as small as possible.

Why is my JSON invalid?

The usual causes are a trailing comma, single quotes instead of double quotes, or a key without quotes.

See all free tools