JSON Schema Generator
Generate JSON Schema from sample data or sample JSON from a schema, with type inference, required fields, and example values.
This tool runs entirely in your browser. Your input is never uploaded.
Your processed result will appear here.
JSON Schema generation
Generate JSON Schema (Draft 2020-12) from sample JSON data, or generate sample JSON from a JSON Schema definition. All processing happens locally in your browser.
JSON to Schema
Paste a JSON object or array to automatically generate a JSON Schema. The generator infers types for strings, numbers (integer vs float), booleans, null, nested objects, and arrays. Mixed-type arrays produce oneOf schemas.
Toggle Include required to add or omit the required array in the output. Toggle Include examples to add the original values as examples fields.
Schema to JSON
Paste a JSON Schema to generate sample JSON data. The generator resolves type, properties, required, enum (takes the first value), default, examples (takes the first), and oneOf/anyOf (takes the first branch).
Nested schemas and arrays are handled recursively. Optional properties (not in required) are omitted when a required array is present.