Loading...
Loading...
Generate TypeScript interfaces and types from JSON data — instantly.
Enter or paste your JSON data
Choose interface vs type, set root name, toggle export and optional nulls
Click Generate to create TypeScript definitions
Generate either interface declarations or type aliases
Automatically creates separate types for nested objects
Optionally mark null-valued fields as optional properties
Add export keyword to all generated types
Yes. It infers the item type from the first element and generates a typed array.
Mixed arrays generate union types like (string | number)[].