• Free forever
  • No sign-up
  • Private — runs in your browser

JSON Validator

Paste JSON to check it instantly. If it's invalid, you'll see the exact line and column of the problem.

Output

  

What the validator checks

It parses your text with the same strict rules as JSON.parse (RFC 8259). Valid JSON is pretty-printed on the right; invalid JSON is shown with the offending line highlighted and the position of the first error.

The most common JSON errors

ErrorWrongRight
Trailing comma[1, 2, 3,][1, 2, 3]
Single quotes{'a': 1}{"a": 1}
Unquoted key{a: 1}{"a": 1}
Comments// noteNot allowed in JSON
Python / JS literalsNone, undefined, NaNnull
Raw line break in a stringa real newline inside quotes\n

Valid JSON vs. valid data

A validator confirms the syntax. Whether the data has the right fields and types is a separate question, usually answered with a JSON Schema. If an API still rejects valid JSON, compare the field names and types against its documentation.

Related

← Back to the full JSON Formatter & Validator