Free · no signup · browser-local
JSON Schema 2020-12 Generator from Example JSON
Infer a JSON Schema from nested sample data, choose required and additional-property rules, then validate another JSON document locally with Ajv.
Make it yours
Schema title, description and identifier · optional
Detailed validation report
Draft 2020-12. Empty arrays accept any item; mixed sample shapes use anyOf. No business rules or format assumptions are inferred. Limit: 100 KB input, depth 20, 5,000 nodes; generated schema up to 250 KB.
Your output
schema.jsonGetting started
Paste sample JSON, choose required keys and additional properties, then test a separate JSON document.
Before you use the result
A single sample cannot infer business rules, enums or all valid shapes. Empty arrays accept any items; observed array shapes become alternatives.
Try an example
Infer an object with a nested person and mixed array, then test a missing key or incorrect type.
How it works
Recursive type inference creates an actual schema; Ajv validates test data locally. Limits are 100 KB, 20 nesting levels and 5,000 nodes.
Frequently asked questions
Infer a draft 2020-12 JSON Schema from sample JSON and validate another value locally.
How do I use JSON Schema Builder?
Paste sample JSON, choose required keys and additional properties, then test a separate JSON document.
Does this tool upload my data?
Inputs and files are processed in your browser. Page-view analytics do not contain your tool input.
What should I check before using the result?
A single sample cannot infer business rules, enums or all valid shapes. Empty arrays accept any items; observed array shapes become alternatives.