JSON → TypeScript
LiveConvertersConvert any JSON object into a TypeScript interface. Updates live.
JSON
TypeScript
Share:
About JSON → TypeScript
Paste a JSON sample and generate TypeScript interfaces and types that match its shape, including nested objects and arrays. The generated types are ready to paste into your project, saving you from hand-writing interfaces for API responses. It infers optional and union types where possible.
Common uses
- Type API responses without hand-writing interfaces
- Generate types for fixtures
- Bootstrap a typed client