ToolHub

JSON to TypeScript

Generate TypeScript interfaces from JSON data, inferring nested objects and arrays. Everything runs in your browser.

Input
Output

FAQ

Is my JSON sent to a server?

No. Everything happens entirely in your browser and no data leaves your device.

Are nested objects typed too?

Yes. Nested objects become their own interfaces, and arrays of objects merge element keys into an element type.

How are null values handled?

null values are typed as null. Refine the generated types with unions as needed.

Related tools