JSON Formatter

Paste messy JSON and format it with proper indentation, or minify it to strip whitespace. Also validates your JSON and tells you exactly where the error is if something's broken. Everything runs in the browser.

How to use

  1. Paste your JSON into the input box - raw, minified, or broken.
  2. Click Format to beautify it, or Minify to compact it.
  3. If there's a syntax error, it'll tell you where. Copy the output when you're done.