JSON formatter & validator

Make messy JSON readable, check that it's valid, or shrink it to one line.

Output

How to use the JSON formatter & validator

  1. Paste your JSON.
  2. Choose 2 spaces, 4 spaces or Minify.
  3. Copy or download the result — errors show the line and column.

When it's useful

  • Reading API responses
  • Finding a missing comma or bracket
  • Minifying config files

Limits to know

  • Strict JSON only: comments and trailing commas are reported as errors.

Your privacy

Everything is worked out in your browser. What you type isn't uploaded, saved or shared, and there's no sign-up.

Questions

Is my JSON sent to a server?

No. It's parsed in your browser, so private data stays on your device.

Related tools