Skip to main content
KalkuNet

JSON Validator — Find the Line and Column of JSON Syntax Errors (RFC 8259)

Pinpoint trailing commas, unquoted keys & syntax errors with line/column clues.

Runs in your browserDeveloper · JSON, YAML, TOML, XML & CSV Converters

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.

Learn more