JSON Schema Generator
Paste a sample JSON document and get a JSON Schema that describes it. Array items are merged so a schema built from a list of records captures every field, and common string formats like dates, emails and UUIDs are detected automatically.
How It Works
The generator walks your sample recursively. For arrays of objects it merges the schemas of every item, so fields that appear in only some records are still represented and required keys are the ones present in all of them.
- Draft-07 and 2020-12 output
- Merges array item schemas
- Required keys inferred across records
- String format detection (date, email, URI, UUID)
- Enum detection for small value sets
Related Developer Tools
You might also need
Tools from other categories that people pair with the JSON Schema: