Free JSON to TypeScript Converter

Paste JSON, get clean TypeScript interfaces — and a matching Zod runtime schema in the same click.

Privacy Level 1 — 100% local: your files never leave your browser
Free plan: up to 200,000 characters per paste. Need more? JSON to TypeScript Pro removes all limits.

Unlike converters that only emit types, this tool gives you both: strict TypeScript interfaces for your editor and a Zod schema to validate the same data at runtime. It merges array items (keys missing in some records become optional), detects ISO dates, and turns mixed values into unions.

0 / 200,000 characters Your JSON never leaves your browser — conversion runs entirely on this page.

Conversion options

Something not working?

Tell us what went wrong — it helps us fix the tool. Only what you type below is sent; your JSON never leaves your device.

Need more power? Meet JSON to TypeScript Pro

One-time payment. Yours forever. No subscription.

$29
single payment · lifetime updates included
FeatureFreePro
Characters per pasteUp to 200,000Unlimited
TypeScript interfacesYesYes
Zod runtime schemaYesYes
Array merging & optional fieldsYesYes
Date detectionYesYes
Batch convert multiple files—Yes
Save & reuse conversion presets—Yes
Export as .d.ts declaration file—Yes
AdsShown on pageAd-free
Updates—Lifetime free updates

Frequently asked questions

Is my JSON uploaded to your servers?

No. Your JSON is parsed and converted entirely inside your browser using JavaScript. It never leaves your device. You can verify this in your browser's network panel — or simply disconnect from the internet after the page loads and keep converting.

How does the converter handle arrays of objects?

It merges every item in the array into a single interface. Keys that appear in only some items become optional (marked with ?), and keys with different value types across items become unions such as string | number. Keys that are sometimes null get | null.

What is the Zod schema for?

TypeScript types only exist at compile time — they cannot check data at runtime. The Zod tab gives you a matching runtime schema (built with z.object, z.array, z.union and friends) so you can validate real API responses against the same shape your types describe.

Is there a size limit?

The free version handles pastes up to 200,000 characters. JSON to TypeScript Pro ($29 one-time) removes all limits and adds batch conversion, saved presets and .d.ts export.

Can I use the output in my project?

Yes. Copy the TypeScript tab into a .ts file, or download it directly. The Zod tab needs the zod package installed (npm install zod) — the import line is included at the top.