JSON Schema Generator
Paste an example of your JSON and get a JSON Schema describing it, as a starting point for validation and documentation.
Runs in your browser · No uploads
Generate JSON Schema
Your browser is too old to run this tool. Please update it, or use a current version of Chrome, Edge, Firefox or Safari.
- Nothing leaves your device
- No server-imposed size limits
- No sign-up, no watermark
- Free
How to generate a JSON Schema
- Paste your JSON, or try the example.
- Choose required fields, formats and whether extra properties are allowed.
- Copy or download the schema.
What you get
- A schema for draft 2020-12 with types for every value.
- "required" lists the fields present in every item.
- Formats (date-time, date, email, uri, uuid) when every example value matches.
- Optionally additionalProperties: false, to reject unknown fields.
Frequently asked questions
Is my JSON uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.