About this tool
Paste JSON and find out immediately whether it parses. When it doesn't, the validator highlights the offending character with a caret, names the problem (a trailing comma, a missing quote, an unclosed bracket) and suggests how to fix it. It also warns about duplicate keys, which most parsers accept without complaint while quietly dropping data. The check runs locally in your browser.
How to use JSON Validator
- Paste your JSON or open a file.
- Read the result on the right: a green confirmation or the first error.
- Jump to the reported line and column and fix the issue.
- Repeat until it shows as valid.
Frequently asked questions
Why only the first error?
After a syntax error a parser can't know what was intended, so later errors are often false alarms. Fix the first one and the validator re-checks instantly.
Are comments or trailing commas allowed?
Not in standard JSON (RFC 8259). Formats like JSON5 or JSONC allow them, but most APIs and JSON.parse reject them.
What is a duplicate key warning?
The same key appears twice in one object. The document is still technically parseable, but only the last value survives, which usually hides a bug.