Skip to content

JSON to TypeScript

Generate TypeScript interfaces from any JSON — nested types named, object arrays merged — on your own device.

A .json file — or paste below · converted on your device, nothing uploaded

JSON in

TypeScript out

Infers interfaces from your JSON — nested objects become named interfaces, arrays of objects are merged (keys missing in some become optional). Runs in your browser.

Runs in your browser. Files are never uploaded — you can go offline after the page loads.

How to use the JSON to TypeScript

  1. Paste JSON or drop a .json file.
  2. Name the root interface.
  3. Copy the TypeScript or download a .ts file.

Easy to use

Drop files, pick options, download. Whole folders at once, no signup, no daily limit.

Best quality

The same engines the professionals use — SVGO, resvg, MozJPEG, libwebp, libavif — compiled to run in your browser.

Private & secure

Files are processed on your device and never uploaded. Close the tab and nothing remains anywhere.

JSON into typed interfaces

Paste a JSON sample — an API response, a config, a fixture — and get TypeScript interfaces for it. Nested objects become their own named interfaces, arrays of objects are merged so a key missing from some elements is marked optional, and null values are typed so you can tighten them later.

Name the root interface, then copy the result or download a .ts file. It all runs in your browser. To tidy the JSON first, use the JSON Formatter.

Frequently asked questions

How are optional fields decided?

When an array contains objects that don’t all share a key, that key is marked optional (?). A null value is typed as null so you can tighten it later.

Does it handle nested structures?

Yes — each nested object becomes its own named interface (from the key name), referenced from the parent, so the output is clean and reusable.

Is my JSON uploaded?

No — inference runs entirely in your browser.

Your files never leave your device

Most online converters upload your file to a server. InfyTool ships the actual encoders to your browser as WebAssembly instead, so processing happens inside your tab — faster for batches, and nothing to delete afterwards.

  • No upload, ever. Turn off Wi-Fi after the page loads and every tool keeps working.
  • No limits. No file-size cap, no queue, no watermark, no account.
  • Runs on your CPU. Batches use several cores in parallel; nothing is throttled.

More free tools

Need icons or SVGs to start from?

InfyTool is built by the same team as these free libraries.