JSON Schema Validator
Check JSON against a schema you paste. Draft 2020-12 and draft-07. Nothing is uploaded.
Added 2026-10-24
What it does
JSON Schema Validator checks one JSON value against a schema you paste. A document without $schema is read as draft 2020-12. Draft-07 is selected only by its own $schema URL. exclusiveMinimum is a boolean in draft-07 and a number in draft 2020-12, so the dialect changes which documents pass. Errors name a path and a rule, and they do not echo the JSON value. A $ref that points at another website is not fetched. The referenced schema has to sit in this document. Integers beyond 2^53 - 1 are not exact in JavaScript. The page warns and applies numeric rules to the rounded value. Nothing is uploaded.
How to use it
- Paste the JSON and the schema. A schema without $schema is read as draft 2020-12. Draft-07 needs its own $schema URL.
- Errors name the path and the rule. The JSON value is not copied into the error.
- A $ref to another website is not fetched. Keep the referenced schema in the document.
Common mistakes
- Draft-07 and draft 2020-12 are different. exclusiveMinimum is a boolean in draft-07 and a number in draft 2020-12. The $schema URL picks the dialect.
- Integers beyond 2^53-1 are not exact here. JavaScript cannot check those digits exactly. The page warns and uses the rounded value for numeric rules.
The JSON and the schema stay in this tab. They are not uploaded.
Related guides
- A JSON sample is not a schema
A schema generated from one sample describes that sample. Validation checks a document, and remote $ref is not loaded.
- JSON integers past 2^53
Why JSON.parse rounds large integers, and how to keep every digit when you only need to format JSON.