JSON Schema Generator & Validator
Infer a JSON Schema from examples, edit it to match your rules and validate data against it, for draft 2020-12 or draft 7.
Offline prerequisites
The installed app shell does not prepare every operation. Choose the resources you need, prepare while online, then recheck before disconnecting. Downloads below are approximate bundled sizes; network transfer can differ.
This tool has no separately downloaded codec/model prerequisite in this build. Its app code must still be installed, and browser APIs, file limits and supported formats still apply.
Checking this build’s offline resources…
Tab moves to the next control. Ctrl+] or Command+] inserts a tab.
About this tool
Generate a JSON Schema from one or more examples, in draft 2020-12 or draft 7, with types, nested objects, arrays and optionally formats like date-time, email and uri. The schema says it was inferred, because examples can’t prove which fields are required.
Edit the schema to match your real rules and validate the JSON against it as you type. Errors list the exact location in the data and what was expected.
Validation runs in your browser with a validator that doesn’t compile schemas into code, and remote $ref schemas are never downloaded.