JSON to TypeScript & Zod
Drop in a real API response and get inferred TypeScript types, a runtime Zod validator, and a JSON Schema draft — all generated locally in your browser.
How are optional and nullable fields detected?
A property is marked optional (? / .optional()) when it is missing from at least one object inside an array of objects. A JSON null value becomes a null union in TypeScript and .nullable() in Zod, so both shapes validate.
Is my payload uploaded anywhere?
No. Parsing, inference, and code generation all run in your browser with plain JavaScript — nothing leaves the page, so secrets and internal schemas stay local. JSON Schema output follows draft 2020-12.