JSON Formatter & Validator

Format, minify, validate and explore JSON with precise error positions.

Runs entirely in your browser. Your input is never sent to a server.

About the json formatter & validator

Paste JSON and instantly see it formatted with syntax colours, or learn exactly where it is invalid. Choose the indentation, sort keys alphabetically, minify for transport and copy or download the result.

How to use it

  1. Paste or type JSON into the input.
  2. Choose Format or Minify and your indentation.
  3. Fix any reported error, then copy or download the output.

Frequently asked questions

How are errors reported?

The validator shows the browser’s parse message together with the line and column of the problem so you can jump straight to it.

Is there a size limit?

Several megabytes format comfortably. Very large documents depend on your device and may take a moment.

Is my JSON uploaded?

Never. Parsing and formatting happen in your browser.

Related tools