Eternalsix

JSON to TypeScript

Turn a JSON sample into TypeScript interfaces — instantly.

How to use

Paste a JSON sample and the inferred TypeScript interfaces appear below. Click Copy to grab them.

About this tool

Paste a JSON object or array and get clean TypeScript interfaces inferred from its shape, including nested objects and arrays. Great for typing API responses fast. It runs entirely in your browser — your JSON is never uploaded.

What you can use JSON to TypeScript for

Frequently asked questions

How are types inferred?

The tool walks your JSON: objects become interfaces, arrays become typed arrays, and primitive values map to string, number, boolean, or null. Keys missing from some array items are marked optional.

Does it handle nested objects and arrays?

Yes. Nested objects generate their own named interfaces, and arrays of objects merge their keys into one element interface.

Is my JSON sent anywhere?

No — inference happens entirely in your browser.

More tools

Browse all →
Base64 Encode / Decode
Encode text to Base64 or decode it back — instantly, in your browser.
Basic Auth Header Generator
Turn a username and password into a Basic Authorization header.
Binary to Text Converter
Convert text to binary and binary back to text.
Case Converter
Convert text between camelCase, snake_case, kebab-case, and more.
Color Converter
Convert colors between HEX, RGB, and HSL — with a live swatch.
Cron Explainer
Decode a cron expression into plain English and see its next runs.