JSON Schema Generator

Turn a sample JSON document into a schema you can use to validate data.

How this is worked out

The generator walks your JSON and records the type of every value, the properties of every object and the item shape of every array. For arrays of objects it merges all the items: a field is required only if it appears in every item, and a field with different types is allowed to be any of them. Optional format detection labels date-times, dates, e-mail addresses, URIs and UUIDs. The result is a starting point to refine, not a full specification.

Related tools: Json Formatter, Json Diff Tool, Json To Typescript.

Something not working on this page? Tell me through the Contact page: that is how I find out what is broken and fix it.