Offline engine (processed locally)TYPESCRIPT v1.0.0 Spec

JSON to TypeScript

v1.0.0

Convert your sample JSON into precise TypeScript interfaces and type aliases. This free tool handles optional properties, arrays, unions, and nested objects, perfect for adding type safety to your frontend or Node.js apps. No sign-up, works entirely in your browser.

—ms
JSONInput (JSON)
lines: 5chars: 115Size: 115 BUTF-8
TYPESCRIPTOutput (TYPESCRIPT)
Converted output will appear here
lines: 0chars: 0Size: 0 BUTF-8
Size change: -100.00%TOML compliant: v1.0.0

Tool guide

Type definitions

JSON structure is converted to TypeScript interfaces or types.

Private processing

Your sample data stays in your browser.

Quick integration

The generated code is ready to copy into your project.

Read the result in your project

export interface ServerConfig {\n  host: string;\n  port: number;\n}\n\nexport interface AppConfig {\n  server: ServerConfig;\n}