99+ Free Tools
← Back ✕ Close

JSON to TypeScript Converter

Paste JSON and get TypeScript interfaces ready to copy into your project.

A laptop showing lines of program code
Nested objects become their own interfaces; fields missing from some array items become optional.

JSON

TypeScript

Paste JSON to see the TypeScript.

How this tool works

Method. Each JSON object becomes an interface. Arrays of objects are merged into one interface, and a field missing from some items is marked optional with ?. Mixed-type arrays are combined with | and flagged in the result line.

Privacy. Everything happens in your browser. Nothing is uploaded or shared; the recent-conversions record stays on this device only.