JSON Formatter

Pretty-print, validate, and minify JSON. Catches syntax errors with line/column hints.

100% in your browser · No uploads
Valid JSON
Formatted
{
  "name": "Uvelia",
  "free": true,
  "tools": [
    "pdf",
    "image"
  ]
}
Minified (53 chars)

{"name":"Uvelia","free":true,"tools":["pdf","image"]}

What this does

JSON Formatter pretty-prints, validates, and minifies JSON with helpful error messages when the syntax is broken. Pick your indent (2 spaces, 4 spaces, or tabs).

When to use it

  • Reading the response of an API call that came back as one long line
  • Validating a JSON config file before saving
  • Minifying JSON to embed it in code or a URL
  • Spotting a missing comma or bracket in a hand-written JSON file

Frequently asked

Where exactly is the syntax error?

The error message includes a position. Some browsers also show a line and column number, which makes it easy to find in a large file.

Does it support JSONC or JSON5 (with comments)?

Not yet — this is strict JSON only. Comments cause a parse error.