Skip to content

Instantly convert JSON to TypeScript interfaces. Paste your JSON, click convert, and get ready-to-use TypeScript types in seconds. Built with Next.js, React, and Tailwind.

License

Notifications You must be signed in to change notification settings

Yasir-Rafique/json2ts

Repository files navigation

JSON2TS

Vercel MIT License

Instantly convert JSON objects into TypeScript interfaces.
Paste JSON. Click Convert. Copy ready-to-use TypeScript!



✨ Features

  • 🚀 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

📸 Screenshots

Convert JSON to TypeScript instantly!
Screenshot of JSON2TS UI

🛠️ Usage

  1. Paste your JSON into the left textarea
  2. Click Convert
  3. Copy the generated TypeScript code from the right box

👨‍💻 Local Development

git clone https://github.com/Yasir-Rafique/json2ts.git
cd json2ts
npm install
npm run dev

⭐️ Contributing

PRs, issues, and feature requests are welcome! If you want to improve or expand the converter logic, just fork and submit a pull request.


📢 Credits

Made with 💙 by Muhammad Yasir Rafique


📄 License

MIT


If you like this project, please ⭐️ star the repo and share with your friends!

About

Instantly convert JSON to TypeScript interfaces. Paste your JSON, click convert, and get ready-to-use TypeScript types in seconds. Built with Next.js, React, and Tailwind.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published