Validate & Format · Runs in your browser

JSON Error Analyzer

Find out exactly why your JSON fails to parse: the error, the line it’s on, the likely cause and how to fix it — plus warnings about issues that parse fine but cause bugs later.

JSON
Drop a file to load it
Report
Waiting for input

How to use it

  1. Paste the JSON that your code or API rejects.
  2. Read the report: the first error with a code frame, an explanation and a suggested fix.
  3. Use JSON Repair to apply the suggested fixes automatically.

Beyond syntax

Valid JSON can still cause bugs. The report also flags duplicate keys, integers too large for JavaScript, a byte-order mark, and very deep nesting.

Decoding “Unexpected token”

Messages like “Unexpected token } in JSON at position 312” are translated into the line and column, and the most common cause for that token.

Repair preview

If the JSON can be repaired automatically, the report lists what the repair would change.