JSON to TypeScript Interface
Paste a JSON object or array to generate TypeScript interfaces with nested types. Objects in arrays are merged into one interface, with keys missing from some items marked optional.
TypeScript Output
interface Address {
street: string;
city: string;
}
interface Root {
id: number;
name: string;
email: string;
active: boolean;
score: unknown | null;
address: Address;
tags: string[];
}