Przejdź do treści

JSON to TypeScript Interface & Type Generator

Generate TypeScript interfaces or type aliases from JSON online. Handles nested objects, arrays, null and optional fields, and runs in your browser.

Converted in your browser. Null stays a value type; ? marks a field missing from some objects in an array. Empty arrays use unknown elements.

Load an example (replaces your input)

JSON

TypeScript

How to use this converter

  1. Paste your source data into the input editor or select a local file.
  2. Review available settings and check the generated output for errors.
  3. Copy the result and verify it in your project before using it.

Szczegóły i ograniczenia

Some converters process data on a server. Avoid confidential input unless you have checked how the selected tool works. Input may remain in this tab between tools; clear it when using a shared device.