JSON Validator
Find out exactly where your JSON breaks — and what is most likely causing it.
Runs in your browser — nothing you type is sent anywhere
Your JSON
Paste some JSON above
It is checked as you type. If something is wrong you get the line, the column and, where possible, what to do about it.
About the JSON Validator
JSON error messages are famously unhelpful. "Unexpected token } in JSON at position 847" tells you where the parser gave up, which is often a line or two after the thing that is actually wrong, and says nothing about what to do next.
This shows the failure in context: the line and column, the surrounding lines with the offending one marked, and a caret under the exact character the parser stopped at. Seeing it in place is usually enough on its own.
Underneath that it lists the likely causes. A trailing comma before a closing brace, single quotes instead of double, an unquoted key, a comment, a NaN, or braces that do not balance — those six account for the overwhelming majority of invalid JSON, and each is checked for directly. The checks deliberately ignore anything inside a string, so a comma in a sentence or an apostrophe in a name is never reported as a problem.
When the document is valid you get more than a green tick: the number of objects, arrays and keys, and how deeply it nests. That is often the real question — whether the structure is what you expected, not merely whether it parses.
Everything runs in your browser. API responses and configuration files routinely contain keys, tokens and customer data, and none of it is transmitted, stored or logged here.
How to use the JSON Validator
Paste your JSON
It is checked as you type. A byte order mark from a copied file is handled rather than reported as a mystery error at position 0.
Read the location
The line and column, with the surrounding lines shown and a caret under the character the parser stopped at.
Check the likely causes
The handful of mistakes that account for most invalid JSON are tested for directly and named.
Fix and paste again
When it is valid you get the structure summary — objects, arrays, keys and nesting depth.
Frequently asked questions
Why does the error point at the wrong place?
Can JSON have comments?
Why is a trailing comma not allowed?
Does this check against a schema?
Is my JSON uploaded?
You may also need
JSON Formatter
Format, validate and minify JSON — with the exact line and column of any error.
JSON Viewer
Fold a big JSON document into something you can actually read — and copy paths out of it.
JSON to CSV
Turn an array of JSON objects into a spreadsheet-ready CSV, nested fields included.
JSON to YAML
Convert JSON into readable YAML for a config file, with optional key sorting.