json to typescript

paste json and get typescript interfaces generated from its structure.

runs on your device · free · no sign-up

loading tool…

frequently asked questions

how are types inferred?

types come from the sample values. arrays of objects are merged, and keys missing from some items become optional.

interface or type alias?

pick either. nested objects become separate named declarations based on their key names.

is my json uploaded?

no. generation runs entirely in your browser.

related tools