Why convert JSON to TypeScript?
Typing your API responses by hand is tedious and error-prone. Paste a sample JSON payload above and get ready-to-use TypeScript interfaces in milliseconds, including nested objects and arrays.
How it works
The converter parses your JSON locally and infers the most precise TypeScript type for each
field: string, number, boolean, null, arrays and nested interfaces. Mixed arrays are
typed as unions.