Input JSON
Output TypeScript
Generate TypeScript from JSON
Convert any JSON object or array into TypeScript definitions for safer coding. Useful for API responses, config files, and quick prototyping.
How it works
- Objects become interfaces/types
- Arrays become
Type[](mixed arrays become unions) nullvalues become unions likestring | null