JSON → TYPESCRIPT INTERFACES

Paste a JSON object or array and instantly get TypeScript interfaces, type aliases, or Zod schemas. Real-time generation — no backend, no data sent anywhere.

JSON INPUT
// Output will appear here
HOW IT WORKS
Objects
Each nested object becomes a named interface
Arrays
Typed from the first element; empty arrays → unknown[]
null fields
Either T | null (union) or optional field (depends on setting)
Zod tab
Generates z.object() schemas compatible with Zod v3/v4