Skip to content
Toolbrik

JSON to TypeScript (Interfaces)

Paste a sample JSON and get ready-to-use TypeScript interfaces, with inferred types (string, number, boolean, arrays and nested objects). Choose the root type name and copy or download the result.

Input JSON

TypeScript interfaces

Paste a JSON to generate its TypeScript interfaces.

Related tools

Frequently asked questions

How does it name nested types?+

Each nested object generates its own interface named after the parent plus the capitalized property name. If there are collisions, a number is added.

What does it do with arrays of objects?+

It infers one interface per element using the Item suffix (e.g., RootObjectItem).

Was "JSON to TS" useful?

Share it with whoever needs it. It's free and stores no data.