JSON Schema generator

Infer a draft-07 schema from an example JSON document.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.

Options

Options

How to use this tool

  1. Provide a representative JSON sample.
  2. Choose whether observed properties should be required.
  3. Review the generated schema and add domain-specific bounds or patterns yourself.

Things to know

  • An example cannot establish every valid input. Empty arrays produce an unrestricted item schema.
  • Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
  • Structured documents accept up to 128 nesting levels and 250,000 values; query and schema modes have additional limits.
  • Generated schemas accept 250,000 values and 128 nesting levels. Use a representative sample when inference exceeds those limits.

You might also need

More in data & csv