JSON to JSON Schema
Infer a Draft 2020-12 JSON Schema from sample JSON.
Input
Output
About
Generate a starting JSON Schema from representative data, including nested objects, arrays, required fields, and primitive types.
Key Features
- Nested objects and arrays
- Downloadable output
How to use
- 1Paste a representative JSON sample.
- 2Set the root name and generate the definition.
Example
Input
{"id":1,"name":"Ada","tags":["admin"]}Output
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["id","name"]}Limitations
- Input is limited to 2,000,000 characters to keep the browser responsive.
- Downloads use the .schema.json extension.
- Inference reflects only the supplied sample; review optional fields, bounds, and formats manually.
- All input is processed locally in your browser and is never uploaded to ToolHub.
Last reviewed: