Check JSON against a JSON Schema
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Opens
JSON- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- One file at a time
- Offline use
- Works without a connection once this page has loaded
- Built with
- Ajv
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About JSON Schema Validator
JSON Schema Validator checks whether a JSON document matches a JSON Schema and lists every rule it breaks. Paste the schema on one side and the data on the other; the result updates as you type, with a clear Valid or Invalid verdict and a table of errors showing the JSON pointer path of the failing value, the schema keyword (such as required, type, enum or format) and a readable message.
Validation uses Ajv, the most widely used JSON Schema library for JavaScript, and supports draft-04, draft-06, draft-07, 2019-09 and 2020-12. The draft is detected from the $schema keyword, or you can choose it yourself. Formats such as email, date-time, uri and uuid are checked with ajv-formats. Generate schema from data writes a starting 2020-12 schema from a sample document, with types, required keys and nested objects. Nothing is uploaded.
JSON Schema Validator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use JSON Schema Validator
- Paste your schema into the JSON Schema box and the document to check into the JSON data box, or drop a .json file on either box.
- Leave Draft on Auto to use the $schema keyword, or pick a draft. Turn Check formats and Report all errors on or off.
- Read the verdict under Result. Each error row shows the path in the data, the keyword that failed and the message.
- No schema yet? Paste sample data and click Generate schema from data, then tighten the generated schema by hand.
Frequently asked questions
Which JSON Schema versions are supported?
Draft-04, draft-06, draft-07, 2019-09 and 2020-12. With Draft set to Auto the version comes from the $schema URI, and a schema without $schema is treated as 2020-12. Remote $ref URLs are not downloaded; references inside the same schema, such as #/$defs/address, work.
What does the path in the error table mean?
It is a JSON Pointer into your data. /address/city means the city key inside address, and /tags/2 means the third item of the tags array. A single slash means the error is about the document root, for example a missing required key or an extra property.
Why is a value with the wrong format accepted?
In JSON Schema, format is only an annotation unless the validator checks it. Here formats are checked while Check formats is on. Turn it off to see how a validator that ignores formats would treat your data.
How good is the generated schema?
It describes the sample exactly: the type of every value, nested objects and array items, and required keys that appear in every array item. Strings that all look like dates, emails, URIs or UUIDs get a format. It cannot know limits such as minimum values or allowed enum values, so treat it as a first draft.
Is my data uploaded?
No. Ajv compiles the schema to a validation function inside your browser tab, and both documents stay on your device.