JSON Formatter & Validator
Paste JSON to check that it parses, format it with consistent indentation, or minify it for transport. The validator reports the parser's error position and counts the structures it found so you can spot a truncated response.
Strict JSON only
How to use it
- 1Paste or drop JSON into the input panel.
- 2Choose Format to indent, or Minify to remove whitespace.
- 3Read the validation panel: a valid document lists its root type, keys and depth.
- 4Copy or download the result. Nothing leaves your browser.
Limitations
- Only strict JSON is accepted. Comments and trailing commas are invalid JSON.
- Large inputs (over a few megabytes) may make the browser sluggish.
- Formatting does not repair malformed JSON; fix the reported position first.