Skip to main content
HandyWeb

JSON Schema Generator

Paste a JSON sample and get a ready JSON Schema (draft 2020-12 or draft 7), with required fields and email and date formats. Free and private.

JSON Schema draft
0 characters0 bytes
0 characters0 bytes

This schema comes from this one sample only. Read it before you use it, and add ranges, enums, and patterns yourself.

How to Use It

  1. Paste a JSON sample.
  2. Choose the draft and the options.
  3. Copy the schema, and test it with the JSON Schema Validator.

Questions and Answers

Which fields are required?

A field that every object at its place has. In an array of objects, a field that some objects do not have is not required.

Is my JSON sent anywhere?

No. The schema is made in your browser.

Good to Know

One sample does not show every case of the data. The tool does not add number ranges, string lengths, enums, or patterns. A field that is null in the sample gets only the null type.

Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)