Skip to content
Jellykit

JSON to JSON Schema

Generate a JSON Schema (draft 2020-12) from sample JSON, with types, nested properties, array items, integer detection and required fields. Free and private.

Runs in your browser. Nothing is uploaded.

About JSON to JSON Schema

JSON Schema describes the shape of JSON so validators, API docs and editors can check it. Paste a sample document and get a draft 2020-12 schema with the type of every property, nested objects, array item schemas and integer versus number detection.

Optionally mark fields as required and forbid extra properties, then refine the schema by hand with formats, enums and limits.

How to use JSON to JSON Schema

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Which draft is generated?

Draft 2020-12, the current version, which OpenAPI 3.1 also uses.

Can it detect formats like date-time?

No. One sample isn't enough to know a format for sure, so add format keywords yourself.

Is JSON to JSON Schema free and private?

Yes. JSON to JSON Schema is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all developer tools →