Free JSON to TypeScript Converter
Paste JSON, get clean TypeScript interfaces — and a matching Zod runtime schema in the same click.
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.
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.
| Feature | Free | Pro |
|---|---|---|
| Characters per paste | Up to 200,000 | Unlimited |
| TypeScript interfaces | Yes | Yes |
| Zod runtime schema | Yes | Yes |
| Array merging & optional fields | Yes | Yes |
| Date detection | Yes | Yes |
| Batch convert multiple files | — | Yes |
| Save & reuse conversion presets | — | Yes |
| Export as .d.ts declaration file | — | Yes |
| Ads | Shown on page | Ad-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.