JSON Formatter & Validator

Paste JSON to pretty-print it, check that it is valid, or minify it. Errors point to the exact line and column.

Runs in your browser — nothing is uploaded

How to use JSON Formatter

  1. Paste your JSON.
  2. Click Format to beautify, or Minify to compress it onto one line.
  3. Fix any error shown, then copy or download the result.

Questions

Is my JSON sent to a server?

No. Parsing and formatting happen entirely in your browser, so it’s safe for API responses and config files.

Why is my JSON invalid?

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, and comments — none of which are allowed in standard JSON.