Convert JSON to TypeScript interfaces and types online, or generate Zod schemas and JSON Schema from the same sample. Nested objects, arrays, optional properties and dates are detected automatically.
Generated code will appear here
Ready to generate
Ctrl + Enter to generate
Frequently asked questions
How do I convert JSON to TypeScript?
Paste a JSON object or array, set the root name and press “Generate TypeScript”. Nested objects become their own interfaces and arrays get the right element type.
Can it generate Zod schemas or JSON Schema?
Yes. Choose “Zod” or “JSON Schema” in the Output option to get validation schemas from the same sample, including integers, dates and optional properties.
Is my JSON sent to a server?
No. Types and schemas are generated in your browser, so API responses and private data never leave your device.