JSON Formatter
Pretty-print or minify JSON and validate it in one step.
Private by design. Your input never leaves this browser. Conversions run locally on your device.
What this tool handles
- Pretty-print with 2 or 4 spaces, or minify to a single line.
- A syntax error reports the line and column and a hint for the usual causes.
- Key order is preserved exactly as written.
Example
JSON
{"name":"Ada","ports":[80,443],"active":true}
JSON
{
"name": "Ada",
"ports": [
80,
443
],
"active": true
}
Related tools
- Convert any format — Pick an input format and an output format and convert between any pair.
- JSON → YAML — Convert JSON to readable YAML with configurable indentation.
- YAML → JSON — Parse YAML and emit pretty-printed JSON.
- JSON → TOML — Convert a JSON object to TOML.
- TOML → JSON — Parse TOML configuration into JSON.
- JSON → CSV — Turn an array of objects into a CSV table.