JSON to TypeScript Interface Generator

Generate TypeScript interfaces from a JSON sample.

Quick answer: JSON to TypeScript Interface Generator: Generate TypeScript interfaces from a JSON sample. Everything runs in your browser, so nothing you enter is uploaded or stored.

How to use JSON to TypeScript Interface Generator

  1. Paste or type your input.
  2. Choose any options.
  3. Copy the result.

Features

Frequently asked questions

How are nested objects handled?

Each nested object gets its own named interface.

What about arrays of different types?

The type becomes a union such as (string | number)[].

Is the JSON to TypeScript Interface Generator free?

Yes. It is free, needs no signup and works on any device.

More free tools