JSON → TypeScript Interface
Generate TypeScript interfaces automatically from any JSON object. Handles nested objects, arrays, nullable values, and optional fields. Paste JSON and get ready-to-use TypeScript.
Free Runs in your browser Developer Tools
How to use
- 1 Paste any JSON object (or click "Load example") into the input field on the left.
- 2 Set an interface name, choose whether fields should be optional, and toggle semicolons.
- 3 The TypeScript interface generates instantly on the right — click "Copy TypeScript" to use it.
Key features
- Generates TypeScript interfaces instantly from any JSON object — no configuration needed
- Handles nested objects: creates separate named interfaces for each nested level
- Supports arrays, null values, booleans, numbers, and strings with correct TS types
- Optional fields toggle: adds ? to all properties for flexibility
- Semicolon toggle and custom interface name — copy with one click