How to Use the JSON Schema Validator
Input Your JSON Data
Start by providing your JSON data that you want to validate. Whether you're validating API responses, checking configuration files, or ensuring data quality, you have multiple options:
Provide Your JSON Schema
Enter your JSON Schema that defines the structure and validation rules. The rules come from the JSON Schema specification named in your schema's $schema line:
$schema means 2020-12Review Validation Results
A moment after you stop typing, the validator checks your JSON against the schema. While it works, the panel says "Checking…" rather than showing an old answer. You get:
Step 4: Fix Validation Errors
Use the detailed error messages to fix issues in your JSON data. Each error shows the exact path and reason for failure. You can also format your JSON for better readability or use our JSON validator to check basic syntax first.
Step 5: Export Validation Report
Need to show someone what failed? The report lists the rules used and every error with its path and line, as plain text:
Frequently Asked Questions
What is JSON Schema validation?
JSON Schema validation checks whether a piece of JSON matches a schema that describes its shape: which properties must be there, what type each value has, which values are allowed and how long lists or strings may be. Think of the schema as a contract the data has to meet before your code trusts it.
Which JSON Schema drafts does it follow?
It reads the "$schema" line at the top of your schema. Draft-07, 2019-09 and 2020-12 each get their own rules: in draft-07 a "$ref" switches off the keywords next to it, while the newer drafts apply both, and keywords such as unevaluatedProperties, dependentRequired and prefixItems only count from the draft that introduced them. Draft-04 and draft-06 schemas are checked with the draft-07 rules. If there is no "$schema", the 2020-12 rules are used. The result panel always says which rules it used.
What does the validator check?
Types, required properties, enum and const, number limits (minimum, maximum, exclusive limits, multipleOf), string length and pattern, list rules (items, prefixItems, contains, uniqueItems, item counts), object rules (additional, pattern and unevaluated properties, propertyNames, dependencies), allOf, anyOf, oneOf, not and if/then/else. $ref, $anchor and $dynamicRef work inside the schema you paste; the page does not download other schema files. Formats such as email, date, date-time, time, uri, uuid, ipv4, ipv6, hostname and duration are checked, and formats it does not know are ignored.
Will long numbers such as IDs be compared correctly?
Yes. Many validators read JSON numbers as floating point, which keeps only about 16 digits, so 8901240544102066247 can quietly pass a schema that says "const": 8901240544102066246. This page compares every number using the exact digits you typed, so that value is reported, and decimal rules work as you would expect: 14.50 is a multiple of 0.01 and 0.3 is a multiple of 0.1.
How do I find the field that failed?
Each error shows a path such as /user/id (a JSON Pointer into your data) and the line and column of that value in the data editor, plus the keyword that failed. If the schema itself has a mistake, like a misspelled type or a $ref that points nowhere, you get a separate schema message with its own line and column instead of a misleading result.
Is my JSON uploaded anywhere?
No. The check runs in your browser. What you paste or upload is not sent to our server and is not kept, so reloading the page starts with empty editors. Uploads are limited to 10 MB per file.
Don't have a schema yet? Generate one from sample JSON and tighten it by hand, or check plain syntax first with the JSON validator.