JSON Schema Generator
Sample JSON → valid schema.
Runs on your device
At a glance
- Processing:
- Runs locally in your browser
- Privacy:
- Your files stay on your device — nothing is uploaded to a server
About this tool
Paste sample JSON and get a clean draft 2020-12 schema: inferred types, required fields, nested objects and array item merging — ready to validate with.
How to use it
- Paste sample JSON.
- Review the inferred schema.
- Copy it into your validator.
Frequently asked questions
Is my JSON uploaded?
No. Inference runs entirely in your browser — samples never leave your device.
How are types detected?
Objects, arrays (merged from all items), strings (with format hints for date-time/email/uri), numbers, booleans and nulls map to draft 2020-12 types with required fields inferred from presence.
Which JSON Schema draft does it target?
Draft 2020-12, the current standard — accepted by modern validators including Ajv. Required fields are inferred from the sample, so review them before enforcing.