JSON Validator — Find the Line and Column of JSON Syntax Errors (RFC 8259)
Pinpoint trailing commas, unquoted keys & syntax errors with line/column clues.
✗ Line 4, column 26 (character 71): Trailing comma before the closing bracket: remove the last comma.
"tags": ["web", "prod",],
^When to use the RFC 8259 JSON Syntax Validator & Debugger
The exact error position
The validator reports the line, column and character number of the error, counted the same way as Python's json module, with the line snippet and a ^ under the offending character.
Explanations in plain words
Not just Unexpected token. Trailing commas, unquoted keys, single quotes, comments, NaN, numbers with leading zeros, bad escapes and unclosed strings each get an explanation and a fix.
Warnings that are easy to miss
Valid JSON is still checked: duplicate keys in one object, integers above 2^53 that JavaScript would round, and a UTF-8 BOM at the start are listed with their paths.
A structure summary
For valid JSON it shows the root type, the depth and the counts of objects, arrays, keys, strings, numbers, booleans and nulls.
Frequently asked questions
Why is the error one character after where I expected?
The parser points at the first character that cannot be valid. With a trailing comma, for example, it marks the closing bracket after the comma.
Are columns counted in characters or bytes?
In Unicode characters, as Python does, so an emoji counts as one character.
Do duplicate keys make JSON invalid?
Not syntactically, but RFC 8259 calls the behaviour unpredictable. Most parsers keep only the last value.
Is my JSON stored?
No. Validation runs in your browser.
What about files that start with a BOM?
A UTF-8 BOM at the start is ignored and reported as a warning, because RFC 8259 lets readers ignore it but forbids senders to add it. Python itself rejects such files unless they are read with utf-8-sig.
Similar tools
- JSON Formatter & Syntax PrettifierFormat messy single-line JSON with 2/4-space indentation and sorted keys.
- JSON Minifier & Whitespace CompressorStrip whitespace and newlines from JSON payloads and compare byte savings.
- Interactive Collapsible JSON Tree ViewerInspect nested JSON keys, data types and object counts cleanly in a collapsible tree.
- Semantic JSON Object Diff CheckerNormalize key order and spot added, removed or modified JSON paths clearly.