JSON Formatter & Validator

Paste JSON to pretty-print, minify, inspect, and validate its syntax. Processing stays in the browser and input is never sent to an API by this tool.

Live preview

null

What this generator does

How to use

  1. Paste JSON.
  2. Choose Format, Minify, or Validate.
  3. Fix any parse error shown by the editor.
  4. Use tree view for deeply nested data.
  5. Copy or download the result.

Best practices

Frequently asked questions

Does formatting change JSON values?

No. It changes whitespace only.

Can it repair invalid JSON automatically?

No. It explains the parse location rather than guessing what the data should mean.

Related tools & guides