- JSON Formatter
- JSON Validator
JSON Validator
Checks whether your JSON is valid and shows every faulty spot with line and column.
Input
The result appears here.
Snippets
Validate against schema
More than 50 MB, many files at once, or an API? That is what Pro is for. See Pro
A JSON validator reads the text as strictly as a program would and reports everything that violates RFC 8259. This one does not stop at the first error. It lists all of them at once, and a click on a message jumps to the spot.
For valid JSON you also see how many values and keys it contains and how deeply it is nested. That helps when an API enforces limits.
How it works in 3 steps
- Paste your JSON into the left field or drop a file onto it.
- Pick the indentation: 2 spaces, 4 spaces or tab. The result shows up on the right straight away.
- Copy it, save it as .json or share it as a link. If the tool reports errors, "Auto-fix" repairs the usual ones in one click.
Frequently asked questions
What does "Unexpected token" mean?
The parser hit a character that is not allowed at that position. Almost always the cause is a missing comma, an extra comma or the wrong kind of quote. This tool tells you which one.
Can it validate against a JSON Schema?
Syntax validation is free. Validating against your own schema (required fields, types, value ranges) is a Pro feature.
Are duplicate keys allowed?
The syntax does not forbid them, but RFC 8259 advises against it. Most programs keep only the last value.