JSON Formatter
The JSON Formatter beautifies compact or poorly indented JSON into clean, readable, properly indented output, making it easy to review API responses and config files.
{
"name": "ToolsDoc",
"tools": 30,
"active": true,
"tags": [
"free",
"fast"
]
}How to Use
- Paste your raw JSON into the input box.
- Choose your indentation width.
- View and copy the formatted, indented JSON output.
Formula
Formatting
Uses JSON.parse followed by JSON.stringify(value, null, indent) to re-serialize with consistent spacing.
Example
{"a":1,"b":2} → { "a": 1, "b": 2 } with proper indentation.