Offline JSON → TypeScript Interface Free
Generate TypeScript interfaces and types from any JSON object.
Runs offline in Devy, a desktop app with 234 developer tools for Windows, macOS and Linux. Free in Devy Tools, with no account and no time limit.
What the JSON → TypeScript Interface is for
Paste a sample API response and get TypeScript interfaces for it, instead of typing them by hand. Nested objects become their own interfaces, and arrays get the type of their items.
Devy lets you name the root interface and make every field optional.
Example
JSON
{
"id": 42,
"name": "Alice",
"active": true,
"tags": ["developer", "ai"],
"address": { "city": "San Francisco", "zip": "94102" }
} TypeScript
interface Root {
id: number;
name: string;
active: boolean;
tags: string[];
address: Address;
}
interface Address {
city: string;
zip: string;
} Why use it offline
Count tokens, generate types and shape prompts without sending your prompts or data to another service first.
- Nothing you paste or open is uploaded
- Works on a plane, behind a VPN or with no network
- No ads, no sign-up, opens in a second
How to use the JSON → TypeScript Interface
- Download Devy for Windows, macOS or Linux and open it.
- Search for “JSON → TypeScript Interface” on the home screen, or open the AI Tools category.
- Paste your input or open a file, then copy or save the result.
Good to know
- Types are inferred from one sample. A field that is sometimes null or missing needs a sample where that happens, or a manual | null.
- An empty array in the sample gives no clue about its item type; add an example item first.
- Need runtime validation as well as types? Devy's JSON → Zod Schema generator does both.
More ai tools tools in Devy
Questions
Can it generate types for other languages?
Yes. Devy also generates Python dataclasses, Pydantic models, Go structs, C#, Java, Kotlin, Rust, Swift, Dart and Prisma models from JSON.
Is the JSON → TypeScript Interface free?
Yes. The JSON → TypeScript Interface is one of the 45 tools in Devy's free plan. There's no account, no trial to run out and no limit on use.
Does it send my data anywhere?
No. The JSON → TypeScript Interface runs inside the Devy desktop app on your computer. What you paste or open isn't uploaded, logged or shared, and it works with no internet connection.
Which computers does it run on?
Windows, macOS and Linux. Download Devy from this site or install it from the Microsoft Store.