JSON Formatter

Format, validate and minify JSON in your browser — fast and private.

How it works

  1. Paste your JSON.
  2. Click Format to pretty-print with 2-space indentation, or Minify to compact it.
  3. Invalid JSON is reported with the parser error.
  4. Copy the result with one click.

Frequently asked questions

Is my JSON uploaded?
No. Formatting and validation happen entirely in your browser; nothing is sent anywhere.
Does it validate JSON?
Yes — if the input is not valid JSON, you get the exact parser error instead of output.