JSON to TypeScript types
Turn sample JSON into TypeScript interfaces, with nested types and optional fields.
Paste a JSON sample. Arrays with several objects give the most accurate types.
- 1Paste a JSON sample.
- 2Name the root type and pick interface or type.
- 3Copy the TypeScript.
- Does my data leave my device?
- No. Everything you paste or open is processed in your browser and stays on your device.
- Does it work offline?
- Yes. Once this page has loaded, it keeps working without an internet connection.
- Is there a size limit?
- No limits from us. Very large inputs can be slow because the work uses your device's memory.
Related tasks
Ready-made settings for common jobs.
Other tools
More tools for everyday coding.