Skip to content
IEDE Data processing & engineering
  1. Home
  2. Tools
  3. JSON to TypeScript
Runs in your browserData

JSON to TypeScript interfaces

Paste a JSON sample; the types are inferred in your browser.

Runs locally — nothing is uploaded
Result
Nothing yet — enter data or press Example.

How to use

  1. 1Paste a JSON sample, ideally with several array items.
  2. 2Name the root type.
  3. 3Choose interface or type alias.
  4. 4Copy the generated declarations.

When it is missing in some objects of the same array. A key that is present but null gets “| null” instead.

After their key in PascalCase (owner → Owner); array items use the singular (orders → Order). Identical shapes with the same name are reused, different ones get a number.

An empty array becomes unknown[] and an empty object Record<string, unknown>, because the sample shows no structure.

No, everything runs in your browser.

Messy data?

Send a sample — we reply within one business day with an approach and a quote.