Tools › Data formatting › JSON Formatter
Pretty-print one-line JSON with proper indentation, or minify it back to a single line. Syntax errors are reported with hints.
Your data is never sent to a server — everything runs in your browser
How to use
- Paste JSON into the top box.
- Choose Pretty-print or Minify — the result updates instantly.
- Syntax errors appear below the output with a hint about the position.
Read API responses and logs at a glance
JSON in API responses and log files is usually a single dense line. Pretty-printing reveals the structure so you can find the field you need. "Sort keys" is handy when diffing two JSON documents — it removes ordering differences. Parsing uses the browser's built-in JSON.parse, so validity checks are exact.
FAQ
Why do I get a syntax error?
Common causes: a trailing comma, single quotes instead of double quotes, or unquoted keys — JSON is stricter than JavaScript object literals. The error message includes a position hint.
Is it safe to paste JSON containing API keys?
Yes. Nothing is sent anywhere — parsing happens entirely inside your browser.