UTILS.
Private by default
TS

JSON to TypeScript

Generate TypeScript interfaces from a JSON sample, inferring types recursively.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
output

About this tool

Paste a JSON sample and get matching TypeScript interfaces, generated entirely in your browser.

Frequently asked questions

How are nested objects handled?
Each nested object becomes its own interface, named in PascalCase after its key, with a Root interface on top.
How are arrays typed?
Arrays are typed from their first element as T[]; empty arrays become any[].

More tools