Skip to content
Convertto

JSON Schema Generator

Infer a JSON Schema from example data, detecting types, string formats and required keys.

A JSON Schema generator infers a schema from example data: it walks the structure, assigns types, detects string formats such as email, date-time, uuid and uri, marks present keys as required, and merges the item types of a mixed array into an anyOf rather than guessing a single type.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Is the generated schema ready to use?

It is a strong starting point, not a finished contract. A single example cannot show which fields are genuinely optional, what the real value ranges are, or which strings are enums — review those three before shipping it.

How to use the json schema generator

  1. 1Enter or paste your example json.
  2. 2Choose the required fields.
  3. 3Choose the draft.
  4. 4Enter or paste your schema title.
  5. 5Turn "Include examples from the data" on or off as needed.
  6. 6The result appears immediately — copy or download it.

Embed this tool

Put the working json schema generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More developer tools