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.

JSON → TypeScript

Analyze · Infer · Generate
INPUT JSON0 characters
TYPESCRIPT
Generated code will appear here

Output is inferred from the sample and may require adjustments.

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.