JSON to Zod / TypeScript

Paste JSON below to generate a Zod schema and TypeScript types. Parsing and codegen run entirely in your browser. Arrays of objects merge keys across elements (optional fields when a key is missing in some items). Mixed or deeply nested data may need a quick manual pass.

Used for export const …; TypeScript uses PascalCase of this name.