Skip to content

Data & Encoding

JSON to TypeScript Interface Generator

Paste a JSON sample and get a TypeScript interface - nested objects and arrays of objects broken into their own named interfaces automatically.

Paste JSON

interface Root {
  id: number;
  name: string;
  active: boolean;
  tags: string[];
  address: Address;
}

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

Structural inference from one sample, not a schema - a field that's sometimes null elsewhere won't be caught here.