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

Browse all 25 tools