Free Online JSON Validator With Line and Column
Validate JSON in your browser and find out exactly where the problem is. Every fault comes back with a line, a column and the lines around it with a caret under the character. Duplicate keys and numbers too long for JavaScript are reported as well, because both are legal JSON and both change what your program reads.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Validate a JSON File
A few steps, and nothing is uploaded.
What to Know About Validating JSON
The faults that are legal, and why they matter most.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the JSON Validator
Almost every JSON validator does the same thing: it hands your text to the parser the browser already has, and repeats whatever that parser said. That works, and it produces messages like "Unexpected token } in JSON at position 48213", which tells you the document is broken and almost nothing else. On a file you can read at a glance that is fine. On a build artifact or an API response it is the start of a long afternoon.
So the parser here is written from scratch, which costs a few hundred lines and buys the thing that actually matters: the line, the column, the lines around the fault, and a caret under the offending character. It also allows the error messages to be specific. A trailing comma, a single quoted string, a real line break inside a value, Python None instead of null; each of those gets named rather than reported as an unexpected token.
The more interesting half of this page is the faults that are not errors at all. A duplicate key is valid JSON that no parser will mention, and it means two readers of the same document can disagree about its contents. A number longer than JavaScript can represent is valid JSON that comes back changed. Both are silent, both are real, and both are the sort of thing that takes days to track down when a validator has already told you the file is fine.
Frequently Asked Questions
Duplicate keys, big numbers, comments and several files.