JSON to JSON Schema

Generate a JSON Schema (draft 2020-12) from any JSON sample.

Runs instantly in your browser — results update as you type.

What is JSON Schema?

JSON Schema is a standard vocabulary for describing the structure of JSON data — which properties exist, their types, which are required and what formats they follow. It is used to validate API requests and responses, generate documentation and power form builders.

How to use the JSON to JSON Schema

    Frequently asked questions

    How do I create a JSON Schema from JSON?

    Paste a representative JSON sample. The generator outputs a draft 2020-12 schema with types, properties, required fields and formats.

    Which JSON Schema version is used?

    Draft 2020-12, the current version, declared in the $schema keyword.

    Why is every field required?

    A single sample cannot show which fields are optional. Remove optional fields from the required list after generating.

    Is JSON Schema the same as schema.org?

    No. JSON Schema validates data structures; schema.org structured data describes web content for search engines.