How it works
Paste or type JSON in the editor above. As you type, we run the browser's native parser and report the first error with its line and column. Hit Format to pretty-print, or Minify to strip whitespace.
Why this site is fast
- Pure static HTML — no framework runtime, no analytics bloat.
- All parsing happens locally in your browser.
- No tracking, no ads, no cookies.
Guides
- Fix "Unexpected token" errors in JSON
— trailing commas, single quotes, unquoted keys, BOMs, and other
common
SyntaxErrorcauses with examples and fixes. - Comments in JSON — why JSON excludes them, when to use JSONC or JSON5, and workarounds that survive a strict parser.
FAQ
Is my JSON sent to a server?
No. Validation runs in your browser using the built-in JSON parser.
What's the difference between formatting and minifying?
Formatting adds indentation and newlines so JSON is readable. Minifying removes all unnecessary whitespace to make it as small as possible — useful for embedding in code or reducing payload size.
Why does JSON not allow comments or trailing commas?
The JSON spec (RFC 8259) keeps the format minimal so parsers stay simple and interoperable. If you need comments, consider JSONC or JSON5 — but most APIs expect strict JSON.