Developer

JSON Formatter & Validator

Pretty-print and validate JSON, with clear errors when it's invalid.

About this tool

Paste minified or messy JSON and get it back cleanly indented and easy to read. If the JSON is invalid, the tool points to what went wrong instead of failing silently, so you can fix the offending bracket, comma or quote quickly.

Formatting is done with .NET's built-in JSON reader, so the result reflects exactly how a strict parser sees your data.

Frequently asked questions

What does formatting do?
It re-indents your JSON with consistent two-space nesting and line breaks so the structure is readable, without changing any values.
Why does it reject JSON that looks fine?
Strict JSON doesn't allow trailing commas, single quotes, or comments. If you're pasting a JavaScript object or config file, those extras will be flagged as errors.
Does it change my data?
No. Formatting only affects whitespace and indentation. Keys, values and order are preserved.