JSONJSON Schema
Input — JSON
Loading editor...
Output — JSON Schema
Loading editor...

JSON Schema Generator

Generate JSON Schema from sample JSON data. JSON Schema is the standard for describing the structure and validation rules of JSON data, used by OpenAPI, API documentation tools, and form generators.

Features

Frequently Asked Questions

What is JSON Schema?

JSON Schema is a standard for describing the structure and validation rules of JSON data. It's used by OpenAPI/Swagger, form generators, and API documentation tools to define what valid JSON looks like.

Which JSON Schema version is generated?

The generator produces schemas compliant with JSON Schema draft 2020-12, the latest standard. The $schema keyword is included in the output for compatibility.

How are required fields determined?

All non-null fields in your sample JSON are marked as required. Null values are treated as optional fields since they indicate the field may be absent or empty.