How to use it
- Paste your JSON.
- Choose the output style.
- Read the error message if it is invalid, or copy the formatted result.
How it works
The text is parsed with the standard JSON parser, then written out again with the indentation you chose. Strict JSON is required: double-quoted keys and strings, no comments and no trailing commas.
The error message comes from your browser and usually points to the position of the problem.
Examples
- {"a":1,"b":[true,null]} becomes a readable multi-line version, or stays on one line when minified.
Limitations
- JavaScript cannot represent integers above 9,007,199,254,740,991 exactly. The tool warns if your input contains very long integers, which can be altered.
- Duplicate keys are collapsed (the last one wins).
- Very large documents (tens of megabytes) may be slow.
References
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].