JSON to TypeScript Interface cover

JSON to TypeScript Interface

Paste JSON and instantly generate TypeScript interfaces with inferred types.

Interfaces appear here…

How to use

Paste JSON, set the root interface name, and click Convert. Copy the generated interfaces. Everything runs in your browser.

Frequently asked questions

How are types inferred?

Strings, numbers, booleans, nulls, arrays and nested objects are mapped automatically; nested objects become their own interfaces.

Does it handle arrays?

Yes — empty arrays become unknown[] and arrays of objects reuse the item interface.

Related tools

ASCII Art Text BannerASCII Code TableBase32 Encoder / DecoderBase64 Encode DecodeBase64URL EncoderBcrypt Cost Estimator