JSON to TypeScript
Paste a JSON sample (for example an API response) and click Generate to get TypeScript interfaces you can paste into your project.
- Paste JSON into the textarea
- Click Generate to build interfaces
- Nested objects become their own interfaces
- Copy the result with the copy button
- Share a link that restores your input
Is my data safe?
Yes. TypeScript generation uses native JSON.parse in your browser. No data is ever sent to a server.
How are interface names chosen?
Objects are named from their property key in PascalCase (user → User). Arrays of objects use a singularized key (users → User). Collisions get a numeric suffix (User, User2).