JSON Schema Generator (from JSON)
Developer ToolsCreate a JSON Schema from sample JSON
FreePrivateInstant
Similar tools you may like
History
All history →JSON Schema Generator (from JSON) — at a glance
Turn a sample JSON into a schema you can use for validation.
{"id":1,"name":"Asha"}
Generate
{ "type": "object", … }
How to use it — step by step
A valid JSON example.
1
Paste JSON
One example object or array.
2
Pick options
Required keys, formats and draft.
3
Generate
The schema appears below.
4
Copy
Use it in your validator or API docs.
Pro tips
Small things that make the result better.
✦Give an example that contains every field.
✦Arrays of objects are merged into one item schema.
✦Review required fields — optional ones may be missing in your sample.
Quick facts
2 drafts07 and 2020-12
Formatsemail, date, uri
Nestedobjects and arrays
Privatein browser
Frequently Asked Questions
Is the schema perfect?+
It is a good starting point. Review it, especially required fields and number ranges.
What formats are detected?+
Email, date, date-time, uri and uuid.
Is my JSON uploaded?+
No.
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.
Is this tool really free?+
Yes — completely free, no signup, no watermark and no usage limit.
More Free Tools
Guides you might like
All guides →Robots.txt Generatorrobots.txt explained: Allow, Disallow, wildcards and the mistakes that block your siteSitemap XML Generatorsitemap.xml explained: what to include, the 50,000 URL limit and HTML sitemapsJWT DecoderInside a JWT: three parts, two dots, and why decoding is not the same as trustingHash GeneratorWhat a hash is, and why changing one letter changes everything

