JSON to TypeScript
Convert JSON data to TypeScript interfaces or types. Automatically infers types and generates nested interfaces.
JSON Input
Paste your JSON data
Loading...
TypeScript Output
Generated types
Loading...
About JSON to TypeScript
This tool automatically converts JSON data into TypeScript type definitions. It analyzes the structure of your JSON and generates appropriate interfaces or types.
- Automatically infers primitive types (string, number, boolean)
- Creates nested interfaces for objects
- Handles arrays with consistent item types
- Supports both interface and type syntax
- Optional export keyword for module usage