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.
JSON
TypeScript
How to use this converter
- Paste your source data into the input editor or select a local file.
- Review available settings and check the generated output for errors.
- Copy the result and verify it in your project before using it.
Details en beperkingen
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.