About this tool
JSON (JavaScript Object Notation) is a lightweight data format used everywhere from API responses to config files. Minified or hand-written JSON is often hard to read — this tool parses your JSON, validates it, and re-prints it with consistent indentation so you can actually read it.
How it works
- Paste or type JSON into the input box on the left.
- The tool parses it with a standard JSON parser and reports any syntax errors immediately.
- Valid JSON is reformatted with 2-space indentation (or minified) in the output box, ready to copy.
Frequently asked questions
Does this send my JSON to a server?
No. Parsing and formatting happen entirely in your browser using JavaScript's built-in JSON parser — your data never leaves your device.
Why does it say my JSON is invalid?
Common causes are trailing commas, single quotes instead of double quotes, or missing quotes around keys. The error message includes the position where parsing failed.
Can I minify JSON instead of formatting it?
Yes — switch to Minify mode to remove all whitespace for production use.