JSONKittJSONKitt

Data to class

JSON to TypeScript

Infer TypeScript interfaces from a JSON sample.

Drop a .json or .txt file on the editors. Max 5 MB. UTF-8. Ctrl/Cmd+Enter formats, Ctrl/Cmd+K clears, Ctrl/Cmd+S downloads.

Input
Output

About JSON to TypeScript

Infer TypeScript interfaces from a JSON sample.

Frequently asked questions

How are TypeScript interfaces inferred?
The tool walks the JSON sample and emits interfaces for objects and arrays. Optional fields appear when values are missing on some items. Always review generated types before shipping.

Related JSON tools