JSON to TypeScript
Generate basic TypeScript interfaces from a JSON object or array.
How it works
Paste a JSON object or an array of objects and write the name of the main interface. The tool infers basic types and creates additional interfaces for nested objects.
Frequently asked questions
Does it detect all the complex types of TypeScript?
No. It provides a quick starting point with strings, numbers, booleans, arrays, objects, and null.
What if the array contains different objects?
The tool mainly uses the first representative element to infer the array structure.