JSON Schema Generator
Paste any JSON and instantly get a valid JSON Schema. Supports Draft-07 and 2020-12, auto-detects formats like dates, emails and URIs.
How it works
Paste your JSON
Paste any JSON object or array — a sample API response, a config file, a data record.
Choose draft & title
Select Draft-07 (most compatible) or 2020-12 (latest standard). Optionally add a schema title.
Generate & copy
Click Generate and copy the schema to use in your API, validation library or documentation.
What gets inferred
Primitive types
string, number, integer, boolean, null
String formats
date, date-time, email, uri — auto-detected from value patterns
Nested objects
Recursive inference for any depth of nesting
Arrays
Item type inferred from the first element
Required fields
Non-null fields are marked as required
$schema URI
Correct draft URI included automatically
