JSON Formatter, Minifier & Syntax Validator
Paste JSON to validate it, pretty-print it or minify it in your browser. Errors show a line and column when the parser reports a position.
How to use this tool
- Paste or type your JSON in the input box.
- Choose Format to pretty-print, Minify to compress, or Validate only to check syntax.
- If there is a syntax error, read the line and column, fix the input, and run it again.
- Copy the output when it is valid. Nothing is sent to a server.
Frequently asked questions
A single JSON value that JSON.parse can read — usually an object or array. JavaScript trailing commas and comments are not valid JSON.
No. Parsing stays in your browser.
The tool is fine for typical API payloads. Very large documents may be limited by your browser’s memory.