Developer
JSON to TypeScript
Infer a TypeScript type from a sample JSON document, including nested objects and unions.
Processed on your device
Loading tool…
How to use JSON to TypeScript
- 1Enter your source or choose a local file when supported.
- 2Adjust the controls and run the tool.
- 3Review the result, then copy it or download the generated file.
Before you start
What does this tool do?
Infer a TypeScript type from a sample JSON document, including nested objects and unions.
Is the input uploaded?
Source text and files are processed in this browser. Code, token values and file contents are excluded from MakePip tool statistics.
What should I review?
Types are inferred from the supplied sample; unseen fields and values need manual review.