Generate JSON Schema from any JSON object. Supports Draft-04, Draft-07, and 2020-12.
Paste a JSON object or array in the input area
Choose your preferred JSON Schema draft version
Configure options: required fields, examples, descriptions
Copy the generated schema for your API validation
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It serves as a contract for your JSON data, defining the expected structure, types, and constraints.
| Draft | Year | Key Features |
|---|---|---|
| Draft-04 | 2013 | Baseline, widely supported |
| Draft-07 | 2018 | if/then/else, readOnly, const |
| 2020-12 | 2020 | prefixItems, $dynamicRef, vocabularies |
This tool automatically detects common string formats:
2026-01-15T10:30:00Z)2026-01-15)user@example.com)https://example.com)550e8400-e29b-41d4-a716-446655440000)192.168.1.1)Given this JSON:
{
"name": "Alice",
"email": "alice@example.com",
"age": 28
}
The generated schema (Draft-07):
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string", "format": "email" },
"age": { "type": "integer" }
},
"required": ["name", "email", "age"]
}
Auto-detects date-time, email, URI, UUID, and IPv4 formats
Generate schemas for Draft-04, Draft-07, or 2020-12
Full support for deeply nested objects and arrays
Merges array items to create unified schemas
All processing happens in your browser β nothing leaves your machine
Toggle required fields, examples, descriptions, and more
Showing 12 of 94 related tools