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
How to use it
- Paste the JSON that your code or API rejects.
- Read the report: the first error with a code frame, an explanation and a suggested fix.
- 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.
More validate & format tools
All free, all private, all running locally in your browser.
JSON ValidatorFind and pinpoint syntax errorsJSON FormatterIndent JSON with spaces or tabsJSON MinifierShrink JSON by removing whitespaceJSON Pretty PrintMake one-line JSON readableSort JSON KeysOrder keys alphabeticallyJSON RepairFix broken or AI-generated JSONJSONC to JSONStrip comments and trailing commas