Skip to content
New
browser-only
No account required

JSON Schema Generator

Infer JSON Schema from sample JSON.

Sample JSON
Nested objects, arrays, primitives, and null values are supported.
Schema options

JSON Schema

Your result will appear here.

Need this in your workflow?

Explore documented API endpoints or tell us how you want to automate JSON Schema Generator. API availability varies by tool.

What this tool does

Infer a draft JSON Schema from example data.

How to use it

Paste JSON and select whether to include required fields, examples and array item types.

Worked example

{"age":36} infers an object with an integer age property; required is included when that option is enabled.

Limitations and checks

A sample cannot establish business constraints or all valid variants. Review additionalProperties, required fields and mixed arrays before using the schema as a contract.

How your data is processed

The operation runs in your browser. Copy and download actions use your device. Where Save work is offered, a local copy is stored; eligible work can sync only under your enabled account settings. See Privacy for site analytics and storage details.

Privacy and storage details · Report an incorrect result · Browse tools