What this tool does
Writing JSON Schema by hand is repetitive and easy to desynchronise from the payload. Paste a representative sample and this tool infers types, properties, required keys and array item schemas. Treat the result as a starting point: one sample cannot describe every valid variant.
How to use it
- Paste a representative JSON sample.
- Set the root title and choose strict objects if needed.
- Copy or download the generated schema.
Questions
Which JSON Schema version is generated?
Draft 2020-12. The $schema field is included at the root.
What does “strict objects” change?
It sets additionalProperties to false on every object, so unknown keys fail validation.
How are mixed arrays handled?
Different item shapes are collected in an anyOf list; identical shapes are merged.