JSON Formatter
Parse JSON and serialize it again with two-space indentation.
How to use
- Paste JSON and run the formatter to view the indented result.
Capabilities and scope
The tool validates the input through JSON.parse before producing a readable multiline representation.
How it works
It applies JSON.stringify(JSON.parse(input), null, 2).
Example
{"a":1,"b":[2,3]} becomes two-space-indented multiline JSON.
Useful for
- Read compressed API responses or configuration JSON
Before you use it
- JSON5 features such as comments and trailing commas are rejected, and original whitespace or quote style is not preserved.
Frequently asked questions
Does it alphabetically sort keys?
No. It preserves the parsed object's enumeration order rather than sorting keys.