JSON Schema Generator
Generate a JSON Schema from any JSON document automatically.
Frequently Asked Questions
Why did every property end up in required?
When Required fields is enabled, every key present in your sample object is added to required. The tool does not infer optional keys from missing examples.
How are arrays represented in the generated schema?
An empty array becomes items: {}. If all sampled items share one shape, that shape is used; otherwise the tool de-duplicates item shapes and puts them under items.anyOf.
What does Add $id and title actually insert?
It adds a title plus an $id built as https://webdevtoolbox.com/schemas/<lowercase-title>.schema.json. The schema title field controls both values.
Will it infer enums, formats, or additionalProperties rules?
No. It only infers basic JSON Schema structure from the sample: types, object properties, array items, required fields, examples, and the selected $schema draft.
Can I choose the JSON Schema draft version?
Yes. The dropdown lets you emit Draft 7, Draft 2019-09, or Draft 2020-12 in the $schema field.