JSON Schema Validator
Validate a JSON document against a JSON Schema using Ajv with draft 2020-12 support and format assertions. Every failure is listed with its path and message, not just the first one. A schema that does not compile is reported as a schema error, never as a data failure.
JSON Schema
JSON document
Ready. Press Validate.
How to use the JSON Schema Validator
- Paste your schema on the left and the document on the right.
- Press Validate.
- Work through the listed failing paths.
Example
Pair this schema with a document missing name to see a path level error.
{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}Frequently asked questions
Which drafts are supported?
Draft 2020-12 (and schemas without a $schema declaration are treated as 2020-12). Formats like email and date-time are asserted via ajv-formats.
Is my document uploaded?
No. Ajv runs in your browser; both inputs stay in the tab.