JSON to TypeScript Type & Interface Generator
Load Sample
Clear
Root Interface Name:
Use 'type' instead of 'interface'
Mark all fields as optional (?)
Prepend 'export'
Input JSON
{ "userId": 1042, "username": "alex_vance", "email": "alex@skibidi-tools.com", "isVerified": true, "profile": { "displayName": "Alex Vance", "avatarUrl": "https://tools.skibidi-tools.com/og/default.png", "reputationScore": 99.8, "tags": ["engineer", "security", "web3"] }, "roles": [ { "roleId": "admin", "permissions": ["READ", "WRITE", "DELETE"] } ] }
TypeScript Definitions
Download .ts
Copy TypeScript