Back to Utilities
GENERATOR

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

1

Paste your JSON

Paste any JSON object or array — a sample API response, a config file, a data record.

2

Choose draft & title

Select Draft-07 (most compatible) or 2020-12 (latest standard). Optionally add a schema title.

3

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

Related utilities

JSON Schema Generator — Free Online Tool | Datamata Studios | Datamata Studios