JSON to TypeScript

Convert JSON objects to TypeScript interfaces and types

Share this tool

Report a problem

Describe the problem without including private input or files.

How useful was this tool?

How useful was this tool?

Input & options

Quick presets & examples

Your inputs are never uploaded or stored.

Results

Enter your values to see the result.

Free Online JSON to TypeScript Converter

Our JSON to TypeScript converter transforms raw JSON data into properly typed TypeScript interfaces or type aliases in seconds. Paste any JSON object or array, click "Convert," and receive clean, production-ready TypeScript definitions that you can drop straight into your codebase. The tool handles nested objects, arrays with mixed types, null values, and deeply recursive structures automatically.

Customizable options give you full control over the output. Toggle between interface and type alias syntax, mark all properties as optional, apply the readonly modifier, add export keywords, and set a custom root interface name. Nested interfaces are automatically named based on parent keys and intelligently singularized, producing readable type names like "Project" from a "projects" array.

Paste a REST API response you need to type, a fixture from a JavaScript project moving to TypeScript, or a payload you have to document for your team, and this JSON to TypeScript tool eliminates tedious manual type-writing. Your JSON is never uploaded, so it is safe to use with proprietary API responses and sensitive payloads.