Validate JSON against a JSON Schema and list violations.
The JSON Schema Validator checks a JSON document against a JSON Schema and lists every violation with the path of the failing value. Paste the schema in the left pane and the data in the right one, and the result updates after a short pause. It is useful for designing schemas and debugging API payloads.
JSON Schema is a vocabulary for describing the structure of JSON data and validating it. A schema is itself a JSON document that uses keywords such as type, properties, required, items, minimum, maxLength, pattern and enum to state what is allowed. A validator checks an instance, which is the data, against the schema and reports each place where a rule fails, usually with a path such as /items/0/price. Schemas are published in drafts, and the declared $schema identifies the draft. This tool uses the Ajv library with all errors collected. It applies draft-07 rules by default and switches to draft 2020-12 when the schema's $schema value contains 2020-12. Format keywords such as email or date-time are not checked: string formats are not validated. Validation reports whether data is acceptable and never changes it.
Draft-07 by default. If the schema's $schema contains 2020-12, the 2020-12 rules are used. Other drafts are not selected separately.
No. This tool does not validate string formats, so a format keyword never causes a violation.
A JSON Pointer to the failing value, for example /items/0/price. The whole document is shown as (root).
No. It only reports whether the data satisfies the schema.
Yes for references inside the same schema, such as #/definitions/name or #/$defs/name. Remote schemas are not fetched.
No. Both the schema and the data stay in the page and are not sent anywhere.