Paste JSON
Drop in an API payload, fixture, or config object. Nothing is uploaded.
Turn JSON payloads into TypeScript interfaces or type aliases. Nested objects, arrays, and optional fields are inferred in your browser.
Turn JSON payloads into TypeScript interfaces or type aliases. Nested objects, arrays, and optional fields are inferred in your browser.
Developer tool
Turn JSON payloads into TypeScript interfaces or type aliases. Nested objects, arrays, and optional fields are inferred in your browser.
Current input
Generated
JSON shape
Type workspace
Ready to generate types.
Drop in an API payload, fixture, or config object. Nothing is uploaded.
Choose a root name, interfaces or type aliases, and whether types are exported.
Review inferred nested types and optional fields, then copy the result into your project.
No. Parsing and type generation run locally in your browser.
When an array contains objects with different keys, missing keys become optional. Null values are typed as null and unioned with the other observed types.
Yes. A root array becomes a type alias such as Root = User[], plus interfaces for nested objects.
No. It only emits TypeScript types. Use it for models, API clients, and fixtures, then add a validator if you need runtime checks.