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.
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.