Toolmanor

JSON to TypeScript

Paste sample JSON and get the matching TypeScript interfaces — no more typing out every field by hand when working with API data.

How to generate TypeScript interfaces from JSON

  1. Paste your sample JSON on the left and the TypeScript declarations appear on the right.
  2. Change the name of the outermost type in the "Root type name" box if you like, for example ApiResponse.
  3. Use the copy button and paste it into your code.

Frequently asked questions

More JSON tools