JSON Schema Validator (Draft 2020-12)
Validate a JSON or YAML document against your own JSON Schema using Draft 2020-12. Errors are grouped by instance path so you can see precisely which parts of the document fail, all without sending anything to a server.
How to use the json schema validator
- Put your document (JSON) in the input editor and your JSON Schema in the schema editor.
- Press Validate against schema. Validation uses AJV with Draft 2020-12.
- Errors are grouped by instance path so you can see exactly which fields fail.
- If the schema itself is invalid, that is reported separately from data errors.
Example: Validating a required field
{ "name": "Ada" }Error at (root): missing required property "age".The schema requires both name and age; the missing field is reported with its path.
Frequently asked questions
- Which JSON Schema draft is supported?
- Draft 2020-12, via the AJV validator, including keywords like prefixItems and unevaluatedProperties.
- Are remote $ref schemas fetched?
- No. To keep everything private and offline, remote references are not fetched. Provide the full schema locally.
- Can I validate YAML against a schema?
- Yes. YAML is parsed to a data value first and then validated against your JSON Schema.
- Where does validation run?
- Entirely in your browser. Neither the schema nor the document is sent anywhere.