JSON Schema Generator
Turn any JSON sample into a JSON Schema, with draft-07 or 2020-12, format detection, and required field options.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
JSON sample
Result
JSON Schema
Built locally in your browser. Nothing is uploaded.
How to Use JSON Schema Generator
- Paste a JSON sample. Drop in a JSON object or array. The tool reads its shape to build a matching schema.
- Choose the draft. Pick draft-07 or 2020-12 depending on what your validator expects.
- Set the options. Decide whether every property is required, whether extra properties are allowed, and whether to detect formats.
- Review the schema. Check the stats for property count and nesting, and read the generated schema.
- Copy the schema. Use the copy button and drop the schema into your project or validator.
Frequently Asked Questions
What is a JSON Schema?
It is a standard way to describe the shape of JSON data so it can be validated. It is different from Schema.org markup used for SEO.
Which drafts are supported?
You can generate against draft-07 or draft 2020-12. The only difference here is the schema URL at the top of the output.
How are formats detected?
When format detection is on, the tool recognises common string formats such as email, uri, date, and date-time and adds a format keyword.
What does required do?
With require all on, every property in the sample is listed as required. Turn it off to make all properties optional.
How are arrays of objects handled?
The tool looks across the objects in an array, unions their properties, and marks the ones present in every item as required.
Is my data sent anywhere?
No. The schema is built in your browser, so the JSON you paste is never uploaded.
Related Tools
Article Schema Generator →
Generate Article, NewsArticle, or BlogPosting schema markup instantly. Get rich results in Google Search.…
Event Schema Generator →
Generate Schema.org Event JSON-LD - physical, virtual, or mixed events with attendance mode, offers,…
FAQ Schema Generator →
Build Schema.org FAQPage JSON-LD from Q&A pairs. Pretty, compact, or script-tag formats. Free, offline,…
Job Posting Schema Generator →
Build JobPosting structured data for Google Jobs with salary, location or remote, employment type,…
Local Business Schema Generator →
Build LocalBusiness structured data with address, map coordinates, opening hours, and social links, with…
Product Schema Generator →
Build Product structured data with price, availability, brand, and review ratings, and copy clean…
Recipe Schema Generator →
Build Recipe structured data with ingredients, step by step instructions, times, and ratings, and…
Schema Markup Extractor →
Extract Schema.org structured data from any HTML. Detect JSON-LD, Microdata, and RDFa instantly. Free,…
Schema Markup Generator →
Generate JSON-LD for Article, Organization, Person, Event, WebSite, Breadcrumb, and FAQ from one studio,…
Analyze JSON Online and Validate JSON Structure →
Analyze JSON Online Validate & Analyze JSON Structure with detailed statistics including depth, key…
Android AssetLinks JSON Generator - App Links →
Android AssetLinks JSON Generator files for Android App Links. Configure package names and SHA-256…
Convert BSON to JSON →
Convert MongoDB BSON hex dumps to readable JSON in your browser. Free, offline, client-side…