JSON Schema Generator
Generate Draft 2020-12 or Draft-07 JSON Schema from one or more JSON samples directly in your browser.
Generate
Paste JSON or load one or more JSON files.
Input JSON
Direct inputGenerate
Read-onlyGenerated result
Review the estimates and warnings before using the Schema.
- Number of samples
- 0
- Property count
- 0
- maximum hierarchy
- 0
- Format estimation
- 0
- Enum estimation
- 0
- Notes
- 0
Estimation notes
About this tool
Generate a JSON Schema starting point from JSON samples such as API responses and configuration files.
Features
- Draft 2020-12 · Draft-07
- object · array · string · integer · number · boolean · null
- Merge multiple samples, required determination, mixed types, tuples
- Estimate formats such as date-time, email, UUID, IP, and URI
How to use
- Paste JSON or open one or more .json files.
- Select the Schema specification, required fields, arrays, and inference settings.
- Run by selecting "Generate Schema" or pressing Ctrl/Command + Enter.
- Review warnings, then copy or save the generated result.
Limitations
- Samples alone cannot determine business-required conditions, minimum and maximum values, string patterns, and more.
- The original type cannot be inferred for empty arrays or fields containing only null.
- format and enum are inferred from input values; review them after generation for your intended use.
- External $ref retrieval, complete Schema validation, and complete conversion between Draft versions are not supported.
Privacy: JSON, files, generation settings, and generation results are processed only in your browser and are not sent to or stored on Develop Tools servers.