All tools

JSON to TypeScript

Generate TypeScript interfaces from a JSON sample.

Runs locally in your browser
Generated interfaces will appear here.

About this tool

Paste a JSON response or config sample and get back matching TypeScript interfaces, including nested object types and inferred array element types.

This is especially useful when working against an API that has no published types — sketch out interfaces in seconds instead of hand-writing them from a sample payload.

Frequently asked questions

Each nested object becomes its own named interface, referenced from its parent, instead of one deeply inlined type.