JSON Schema Generator

Runs locally in your browser
All tool data is processed locally in your browser. It is never uploaded to HahaKit servers.

Infer a Draft 2020-12 Schema from the types in a JSON sample. Mixed arrays use anyOf. Empty arrays do not constrain item types.

Result

     

Loading the tool…

How to use JSON Schema Generator

How do I use it?

Input
  • JSON
Settings
  • Require keys found in the sample
Run
Generate

How it works and examples

{"name":"Ada"} produces an object schema with name of type string.

Input limits

Search tools