JSON Schema / TypeScript Generator

Infer TypeScript interfaces, Zod schemas, and JSON Schema from sample JSON.

Useful for turning API response examples into type drafts. Object fields inside arrays are merged, and missing fields are marked optional.
JSON sample
Paste JSON and set the root type name.
Generated output
Switch output formats or copy the current result.
Generate types to see TypeScript, Zod, and JSON Schema here.
JSON Schema / TypeScript Generator | Widget Polymer