JSON to TypeScript Interface

Generate TypeScript interfaces from a JSON sample.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Generate TypeScript interfaces from JSON

Paste a representative JSON sample and get TypeScript interfaces. Nested objects each become their own named interface, arrays become typed arrays, and mixed arrays produce a union element type.

Because the types are inferred from one sample, they reflect exactly what’s in that sample — fields that are optional or absent won’t appear, so treat the output as a strong starting point. All inference happens in your browser — your data is never uploaded or stored.

Ad placeholder (rectangle)