JSON Schema generator

Generate a JSON Schema (draft 2020-12) from an example: types, required fields, nested objects, arrays and formats like email, date-time and uri.

Title

Free · No sign-up · Your files are processed on your device and never uploaded

How to use JSON Schema generator

  1. Paste or type…
    1

    Paste or type

    Put your content in the box - or try the example.

  2. Result appears instantly
    2

    Watch the result

    The result updates as you type - choose options above if needed.

  3. TXTCopy / Download
    3

    Download the result

    Ready in seconds. Your file never left your device.

Features

  • Detects email, uri, uuid, date and date-time formats.
  • Arrays of objects merge into one schema.
  • Required vs optional fields.

Free and private

Everything runs in your browser. Nothing you paste is uploaded, logged or stored.

Questions

Which draft?

JSON Schema 2020-12, used by OpenAPI 3.1.

Is it free?

Yes - free and unlimited, with no sign-up and no watermark.

More developer tools

All tools →