Skip to content

JSON Formatter

Paste JSON to pretty-print it with 2 or 4 spaces, minify it, or find the exact place a syntax error starts.

Runs in your browser. Nothing you enter is uploaded or stored.

How to use JSON Formatter

  1. Paste your JSON into the input box.
  2. Choose Format or Minify.
  3. Copy the result or fix the error shown under the box.

Questions

Is my JSON sent to a server?

No. Parsing and formatting run in your browser with the built-in JSON parser.

Why does it say my JSON is invalid?

Common causes are trailing commas, single quotes around keys or strings, and comments. Standard JSON allows none of these.