Skip to content
Brain
Coder
Tools
Guides
0 uploads — verify
GitHub
Tool info
JSON to TypeScript
Root type name
Copy
JSON
{ "id": 1, "name": "Alex", "isAdmin": true, "email": "alex@example.com", "roles": ["admin", "user"], "profile": { "age": 29, "address": { "city": "Mumbai", "zip": "400001" } }, "lastLogin": null }
TypeScript
Generated
export interface address { city: string; zip: string; } export interface profile { age: number; address: address; } export interface User { id: number; name: string; isAdmin: boolean; email: string; roles: string[]; profile: profile; lastLogin?: any; } export type User = User;