How to Use JSON to TypeScript
- Paste or type a valid JSON object into the input panel.
- TypeScript interfaces are generated instantly in the output panel.
- Click Copy to copy the generated interfaces to your clipboard.
Free online JSON to TypeScript converter to generate TypeScript interfaces instantly in your browser.
{
"name": "Alice",
"age": 30,
"address": {
"city": "NYC"
}
}interface RootAddress {
city: string;
}
interface Root {
name: string;
age: number;
address: RootAddress;
}