Generate JSON schema
Generate a draft-07 JSON schema from a JSON example.
Input & settings
How to use this tool
Paste your source, choose the supported options, then process. Inspect or download the complete result.
Limits and behavior
All observed properties are required and additional properties are disallowed. Arrays infer item alternatives; empty arrays leave items unrestricted. Review against your real data model. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.
Generate a starter JSON Schema from sample data
Infer a draft-07 JSON Schema based on a JSON example. This schema generator can help bootstrap input validation for structured data.
Does an example generate all possible valid combinations?
No. A sample cannot capture every acceptable value or constraint. Review and edit the generated schema for your real requirements.
Related tools: Validate JSON Schema · Generate TypeScript types