Converter ToolsFree

JSON to TypeScript Converter

Paste any JSON object and instantly get a typed TypeScript interface. Handles nested objects, arrays, optional fields, and union types. Speeds up API integration and data modeling significantly.

jsontypescriptinterfacetypesconverterapi
export interface Root {
  id: number;
  name: string;
  email: string;
  isActive: boolean;
  tags: string[];
  address: Address;
  projects: ProjectsItem[];
}

export interface ProjectsItem {
  title: string;
  stars: number;
}

export interface Address {
  street: string;
  city: string;
  zip: string;
}