JSON Schema Validator
Validate JSON data against a JSON Schema — type checking, required fields, patterns, and more.
Last updated:
Validate JSON against a JSON Schema
This JSON Schema validator checks a piece of JSON data against a schema you paste in. It tells you whether the data is valid and, if not, lists every problem together with the path where it was found. It is handy when you are writing a schema, debugging an API payload or checking a config file.
How to use it
- Paste your data into the JSON Data box.
- Paste your schema into the JSON Schema box.
- Click Validate.
- Read the green "valid" message or the Validation Errors list. Load Example fills both boxes with a sample if you want to see how it works.
How it works
Both boxes are parsed as JSON first. If either one is not valid JSON, you get a parse error that says which box it came from. Otherwise the validator walks the data against the schema and collects every failure instead of stopping at the first one. Each error shows a path such as .address.city or [2] and a plain message, for example "Required property "email" is missing".
What it checks
- Any value: type (including integer), enum, const, $ref, allOf, anyOf, oneOf, not, if/then/else.
- Strings: minLength, maxLength, pattern, and formats such as email, uri, date, date-time, time, ipv4, ipv6, hostname, uuid, regex and json-pointer.
- Numbers: minimum, maximum, exclusive bounds, multipleOf.
- Arrays: items, prefixItems, minItems, maxItems, uniqueItems, contains, minContains, maxContains.
- Objects: required, properties, patternProperties, additionalProperties, propertyNames, minProperties, maxProperties and property dependencies.
Assumptions and limits
- $ref works only for local references that start with
#. Links to other files or URLs are reported as unresolved. - Keywords the tool does not check are listed under the result as "Not checked by this validator", and an unknown
formatis listed the same way. Their absence from the error list does not mean they passed. - The format checks are simple pattern tests, not full RFC validators.
- You must fill in both boxes before validating.
Frequently asked questions
Which JSON Schema drafts does it support?
It covers the common validation keywords from draft-07, 2019-09 and 2020-12, and the older boolean form of exclusiveMinimum and exclusiveMaximum. It does not pick a draft from $schema; the keywords are simply applied as written.
Why does valid data show a "Not checked" note?
Your schema uses a keyword this tool does not evaluate, such as a remote $ref target or a custom keyword. The data passed everything the tool does check, but that part of the schema was skipped.
Does it report more than one error?
Yes. It lists all the failures it finds, each with its own path, so you can fix them in one pass. If a value has the wrong type, its deeper checks are skipped.
Related Developer Tools
Browse all tools from the same category.
Domain Authority Checker
Check Moz authority, page authority, spam score, and backlink metrics
Open toolSEO Audit Tool
Audit a website URL for technical SEO, metadata, headings, broken internal links, hreflang, canonical and X-Robots-Tag checks, with report exports
Open toolShowing 1-2 of 49