不上传 · 浏览器内处理
JSON 转 TypeScript
从 JSON 数据推断出 TypeScript 接口,可直接粘贴进类型文件。
收藏后可在首页快速找到
How to use it
1Step 1Paste your text into JSON input to start
2Step 2Press Convert and the result appears below
3Step 3Use the copy button to take the result anywhere
If the result looks off
The result looks cut off
Use the copy button to get the full result.
My input disappeared
It is saved on this device. Clearing browser storage removes it too.
常见问题
Does it mark optional fields?
Keys missing from some array items are inferred as union types. Adjust required/optional by hand after generating.