JSON → TypeScript
Paste a JSON sample or API response — get matching TS interfaces instantly.
JSON
TypeScript
interface Profile2 {
city: string;
age: number;
}
interface User {
id: number;
name: string;
email: string;
active: boolean;
tags: string[];
profile: Profile2;
}
// Root type
type User = User;