Every Drawer
All tools

JSON to TypeScript

Generate TypeScript interfaces from sample JSON.

How it works

Generate TypeScript interfaces from sample JSON.

  1. Paste your JSON in the box, or press Open a file.
  2. Type the Name of the main type.
  3. Press Copy or Save as a .ts file.

Good to know

How are optional fields decided?

A name missing from some objects in a list is marked with a question mark. Matching shapes share one interface.

More like this