JSON Schema Generator

Infer a JSON Schema from a sample JSON payload — draft 2020-12 or draft-07, with automatic string format detection — 100% in your browser, no upload

🔒 Your JSON is parsed in your browser — nothing is uploaded.

Generate a JSON Schema from a sample

Paste any JSON payload and get a JSON Schema that describes its shape — objects become properties, arrays get a merged items schema, and each value is typed as string, number, integer, boolean or null. Choose draft 2020-12 or draft-07, and toggle whether every object key is listed as required.

Automatic string formats

String values are inspected for common formats and annotated automatically: email, uri, date-time (ISO 8601), uuid and ipv4. Everything runs in your browser, so even sensitive payloads never leave your device.

Frequently asked questions

Which JSON Schema drafts are supported?

Both draft 2020-12 and draft-07. Pick one from the Draft dropdown; the generated $schema URI and structure match your choice.

How are array items handled?

All elements of an array are merged into a single items schema. For an array of objects, the properties are unioned and a key is marked required only when it appears in every element.

What string formats does it detect?

It recognizes email, uri, date-time (ISO 8601), uuid and ipv4, adding a format keyword when a value matches. Plain strings stay as type string with no format.