Skip to main content

JSON Schema Generator

Paste a sample JSON document and get a draft JSON Schema inferred from its shape. Merges properties across array items, detects mixed types, and lets you choose whether required fields are inferred automatically or left open.

Features

Frequently Asked Questions

Which JSON Schema draft is produced?
Draft-07 by default, which is widely supported by validators such as Ajv, Zod, and most OpenAPI toolchains.
How are arrays with mixed item types handled?
Items are merged into a single schema using oneOf / union of types, so a list of varying objects yields a sensible combined schema.
Can I control which fields are required?
Yes. Choose 'all', 'none', or 'auto' (required only if the key exists in every sample object).