JSON → TypeScript Interface
Paste JSON to auto-generate TypeScript interfaces. Splits nested objects into separate interfaces, infers union types for arrays, optional null / readonly, custom root type name.
100% Free
No signup
Browser-only
Instant download
5 languages
Dark mode
❓ FAQ
Mixed array types?
All elements analyzed -> union type (string | number etc.)
null vs undefined?
JSON has no undefined. With option ON: field?: T. With OFF: field: T | null
Date / custom types?
In JSON they're strings, indistinguishable from Date. Manually rewrite afterwards
🐛 Found a bug or issue with this tool?
Free to use, no signup. Even just the steps to reproduce are helpful. Reports go directly to the operator and help us fix issues.
✅
Thanks for your report!
Your report has been delivered to the operator and will be used to improve the tool.