JSON to TypeScript
Infer TypeScript types from a JSON example.
How it works & limits
How to use this tool
Infer TypeScript types from a JSON example.
Paste or enter your content. The result updates as you type. Choose an option only when you need to change the default.
Types are inferred from a single example. This cannot prove optionality, all union variants or a production schema; review generated types before use.
Example input
{"project":"Nav Tools","version":1,"tools":["JSON","Base64","Regex"],"local":true}Local processing
Your input stays in this browser. Drafts are kept in page memory while switching tools, and disappear on reload.
Text is limited to 1 million characters. Regex runs in a worker, capped at 200,000 characters, 1,000 matches and 1.5 seconds. Inputs above 100,000 characters use manual refresh.
The first page load and on-demand modules require network access. A complete offline cache is not included.