Input
Developer utility
JSON Formatter
Validate, format, minify, inspect, and copy JSON with a readable output panel, tree view, path table, and parser feedback directly in your browser.
Paste JSON to validate, format, minify, and inspect structure.
Size0 B
Depth0
Keys0
Items0
Output
Formatted or minified JSON
Tree view
JSON structure
Paths
Key paths and value types
| # | Path | Type | Preview |
|---|
Examples
Common JSON samples
JSON quick reference
| Value | Valid JSON example | Notes |
|---|---|---|
| Object | {"name":"Ada"} | Keys must use double quotes. |
| Array | [1,2,3] | Values are ordered. |
| String | "hello" | Strings use double quotes, not single quotes. |
| Number | 42 | No quotes around numeric values. |
| Boolean | true | Use lowercase true or false. |
| Null | null | Use lowercase null. |
JSON formatting notes
- JSON does not allow comments, trailing commas, or unquoted object keys.
- Formatted JSON is easier to review; minified JSON is better for compact transfer.
- Sorting keys can make config diffs easier, but it changes the original property order.
- The path table samples nested values so large JSON objects remain scannable.
JSON formatter FAQ
Is this JSON formatter private?
Yes. The page uses browser JavaScript to parse and format JSON locally.
Can it fix invalid JSON automatically?
No. It reports parser errors, but it does not guess corrections that could change data meaning.
Can I minify JSON after formatting it?
Yes. Both actions parse the current input and write the chosen result into the output panel.