Instantly convert JSON objects into TypeScript interfaces.
Paste JSON. Click Convert. Copy ready-to-use TypeScript!
- 🚀 Instant conversion: Paste your JSON, get interfaces in seconds
- 🧩 Handles nested objects & arrays
- 🎯 Type-safe: Outputs valid, clean TypeScript code
- 🖱️ One-click “Copy Output”
- 🪄 Simple, intuitive UI (built with Next.js, React & Tailwind)
- 💻 100% free & open source
Convert JSON to TypeScript instantly! |
---|
![]() |
- Paste your JSON into the left textarea
- Click Convert
- Copy the generated TypeScript code from the right box
git clone https://github.com/Yasir-Rafique/json2ts.git
cd json2ts
npm install
npm run dev
PRs, issues, and feature requests are welcome! If you want to improve or expand the converter logic, just fork and submit a pull request.
Made with 💙 by Muhammad Yasir Rafique
MIT