← All tools

JSON / TypeScript Converter

Convert between JSON and TypeScript data formats with interface/type generation and type inference.

This tool runs entirely in your browser. Your input is never uploaded.

JSON input
TypeScript output

Your processed result will appear here.

JSON and TypeScript conversion

Convert between JSON and TypeScript in both directions. Generate TypeScript interfaces or type aliases from JSON data, or convert TypeScript declarations back to JSON.

JSON to TypeScript

Paste a JSON object to generate TypeScript declarations with nested object types, arrays, quoted keys, and inferred primitive types. Choose interface for extendable object declarations or type for type aliases.

Mixed arrays become union arrays, empty arrays use unknown[], and identical object shapes are reused.

TypeScript to JSON

Paste TypeScript interface or type declarations to generate sample JSON data. The converter resolves nested interfaces, inline object types, array properties, union types (uses the first type), and type aliases.

Both directions support nested structures and preserve the data model relationships.

All processing happens locally in your browser. Your data is never uploaded.

Related tools

A growing collection of browser-only tools. Your data stays on your device whenever the browser can handle the task.