JSON Formatter and Validator

Paste JSON to make it readable, check that it is valid, or shrink it to a single line. Errors are shown with their position.

JSON FormatterPrivate

Runs in your browser. Your data is never uploaded to any server.

How to use the json formatter

  1. Paste your JSON into the box.
  2. Click Format to beautify it or Minify to compress it.
  3. If the JSON is invalid, the error message tells you where to look.

Common JSON mistakes

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.