JSON Formatter | How to use and interpret results
Parse JSON and output either a two-space indented or compact representation. It helps spot syntax problems and inspect nested objects without treating JavaScript object syntax as JSON.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Paste comment-free JSON and choose formatting, minification or validation. Single-quoted keys and trailing commas are not accepted JSON syntax.
Results and examples
{"a":1,"b":true} becomes an indented object in pretty mode. Numbers pass through JavaScript's numeric representation, so very large identifiers should be quoted strings.
Worked example
{"a":1,"b":true} becomes an indented object in pretty mode. Numbers pass through JavaScript's numeric representation, so very large identifiers should be quoted strings.
Limitations
- Duplicate keys and large numbers may change during parsing and serialization.
- JSON Schema and business-rule validation are not performed.
Fields
| Field | Guidance and constraints |
|---|---|
| JSON | Check the unit and format displayed beside this field. |
| Result | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
What changes in pretty mode?
{"a":1,"b":true} becomes an indented object in pretty mode. Numbers pass through JavaScript's numeric representation, so very large identifiers should be quoted strings.
Does valid syntax prove the data is correct?
Duplicate keys and large numbers may change during parsing and serialization. JSON Schema and business-rule validation are not performed.