JSON Schema Validator
Check JSON against a JSON Schema and see which rules it breaks and where.
Validation Result
Enter data and click "Validate" to check for errors.
How JSON Schema Validator works
Checks if your JSON follows the rules in a JSON Schema. A schema says which fields are needed, what type each value has and which values are allowed. The tool lists every rule your JSON breaks, not only the first one.
The schema version is read from the $schema key. Supports draft 2020-12, 2019-09, draft-07, draft-06 and draft-04. If there is no $schema key, draft-07 is used. Formats like email, date and uri are checked too.
Input to JSON Schema Validator
- JSON Input: paste or type the JSON data you want to check into the left box.
- JSON Schema: paste or type the schema into the right box. It must be a JSON object.
- Both boxes must hold valid JSON. Each can be up to 20MB. Everything runs in your browser, so your data never leaves your computer.
Output from JSON Schema Validator
- If the JSON matches, you see a message that says so.
- If not, you see each broken rule with the path to the value, like /user/age: must be integer.
- If the JSON or the schema has a syntax error, you see the line. Click show me to jump to it.
- If the schema itself is wrong, you see why it could not be used.