Format, validate, minify and explore JSON — syntax highlighting, tree view, error detection
The developer's essential tool — instantly format messy JSON into readable, properly indented code, validate syntax with helpful error messages, and explore complex structures with our interactive tree view. Works entirely in your browser with zero data transmission.
Transform minified JSON into readable, indented format with one click.
Remove all whitespace to minimise JSON for API payloads and storage.
Detailed error messages pinpoint exactly where your JSON is invalid.
Navigate nested objects and arrays visually by collapsing/expanding nodes.
Sort all object keys alphabetically for consistent, diff-friendly output.
Save your formatted JSON directly as a .json file with one click.
Use the Tree View to explore deeply nested JSON without losing context. Click the ▼ arrows to collapse sections you've finished reviewing, keeping your focus on the relevant part of the structure.
| Error | Invalid Example | Fix |
|---|---|---|
| Trailing comma | {"a":1,} | Remove the last comma |
| Single quotes | {'key':'val'} | Use double quotes: {"key":"val"} |
| Undefined value | {"x":undefined} | Use null instead |
| Unquoted key | {key:"value"} | Quote the key: {"key":"value"} |
| Comments | {"a":1 // comment} | Remove all comments — JSON has none |
| Missing quotes | {"n":John} | String values need quotes: "John" |