JSON Schema Generator
Infer a JSON Schema from a sample document.
Open or paste valid JSON to see this view.
Paste, type, or open JSON.
Your input is processed locally in this browser tab.
How to use JSON Schema Generator
Paste sample JSON records, objects, or arrays (or load the sample payload).
Inspect the automatically inferred JSON Schema with types, nested properties, required arrays, and string formats (email, uri, date, date-time).
Copy or export the generated schema document.
Frequently asked questions
How are required fields inferred across object arrays?
Properties present across every sampled item become required, while partially present fields remain optional.
Are null values represented accurately?
Yes. Nullable fields emit multi-type schemas like ["number", "null"].