Developer
JSON to TypeScript
Generate TypeScript interfaces from JSON instantly. Supports nested objects, arrays, and all primitive types.
JSON Input
Documentation
How to Use
1
Paste your JSON
Paste any valid JSON — an API response, config file, or sample data.
2
Set root name
Optionally name the root interface (default: Root).
3
Copy the interfaces
Click Generate and copy the TypeScript interfaces for use in your project.
Pro Tips
Nested objects become separate named interfaces
Arrays of primitives produce typed arrays (string[], number[])
Arrays of objects generate an item interface (e.g. UserItem[])
Examples
Input
{"id": 1, "name": "Alice", "email": "alice@example.com"}Output
interface Root {
id: number;
name: string;
email: string;
}