~/tool-stack_

// Generate TypeScript types and interfaces from JSON

root name

// typescript

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

interface Project {
  id: number;
  title: string;
  status: string;
}

interface Root {
  id: number;
  name: string;
  email: string;
  role: string;
  age: number;
  active: boolean;
  score: number;
  address: Address;
  tags: string[];
  projects: Project[];
  metadata: unknown | null;
}

Paste any JSON and get TypeScript types or interfaces instantly. Nested objects become named types, arrays are typed by their element shape, and optional/nullable fields are detected automatically.