JSON Schema Validator
Check JSON against a schema, with the path and line of each error.
Runs in your browser
Results
Paste JSON on the left and a schema on the right, or generate a schema from your JSON to start one.
What JSON Schema checks
A JSON Schema describes what valid JSON looks like: which properties are required, what type each one has, allowed values, number ranges, string patterns and formats. APIs use schemas to document requests and responses, and OpenAPI is built on them.
Paste your JSON and a schema, and every problem is listed in plain English with its exact path and line, like /age "Must be 0 or more (it's -3)". Click a line number to jump to the value. Draft 4, 7, 2019-09 and 2020-12 are supported; the draft is read from $schema.
How to use the JSON Schema Validator
Paste your JSON. On the left. Or load the sample to see a few typical errors.
Paste a schema, or generate one. Generate from JSON writes a schema that describes your JSON, as a starting point to tighten.
Read the problems. Each shows where it is (a JSON path like
/items/0/price), what's wrong, and its line.Fix and recheck. Results update as you type. When everything passes, you'll see Valid.
Tips
- A generated schema only knows your example. Add what it can't guess:
minimum,maxLength,enum,patternorformat. - Set
"additionalProperties": falseto catch typos in property names; otherwise unknown properties are allowed. - DevGrill never fetches anything, so a
$refto another URL can't be loaded. Paste that schema under$defsand point to it with#/$defs/Name.
Frequently asked questions
Which JSON Schema versions are supported?
Draft 4, Draft 6/7, 2019-09 and 2020-12. The version comes from the schema's $schema URL; without one, 2020-12 is used.
Why does one mistake sometimes show several problems?
Each broken rule is listed separately. A value that's the wrong type and also outside a range breaks two rules. Problems are shown in the order they appear in your JSON.
Is format checked, like email or date-time?
Yes, common formats such as email, date, date-time, uri, uuid and ipv4 are checked.
Is my data sent anywhere?
No. Validation runs in your browser, so it's safe for real API payloads and private schemas.