Typed models from real data
Hand-writing TypeScript interfaces to match an API response is tedious and error-prone. Paste a JSON payload and this tool walks the structure, generating a matching interface (or type alias) with correctly-typed fields, nested interfaces for objects, and array element types. Mixed arrays become union types, so your models reflect the data exactly.
Tune the output to your style
Choose whether to emit interfaces or type aliases, name the root type, and optionally mark nullable fields as optional. The generated code updates live and is ready to paste into your project. It all runs in your browser, so private API payloads and internal schemas never leave your machine.
- 01
- Generate interfaces or type aliases
- 02
- Handles nested objects & arrays
- 03
- Infers union types from mixed arrays
- 04
- Optional properties for nulls
- 05
- Custom root type name
- 06
- Runs locally — code never uploaded


