Transform code between 30+ programming languages using advanced AI models like DeepSeek Coder, GPT-4, Claude, and Gemini. Free, unlimited, no registration required.
🌐 Live Demo: https://codetrans.dev
- 🤖 AI-Powered: Uses DeepSeek Coder, GPT-4 Turbo, Claude 3.5 Sonnet, and Gemini 2.0 Flash
- 🔍 Auto-Detection: Automatically detects source code language
- 🌍 30+ Languages: JavaScript, TypeScript, Python, Java, C#, C++, C, Go, Rust, PHP, Ruby, Swift, Kotlin, Scala, Dart, R, MATLAB, Perl, Lua, Shell, PowerShell, SQL, HTML, CSS, JSON, XML, YAML, Markdown, and more
- 🆓 Free & Unlimited: No registration required, unlimited conversions
- 🎨 Beautiful UI: Dark and light themes with responsive design
- ⚡ Fast & Accurate: Quick conversions with high accuracy
- 📱 Mobile-Friendly: Works perfectly on desktop and mobile devices
- 🔒 Privacy-First: No data storage, all processing happens in real-time
- JavaScript ↔ TypeScript, Python, Java, C++, Go, Rust
- Python ↔ JavaScript, Java, C++, Go, Rust, R, MATLAB
- Java ↔ C#, Kotlin, Scala, JavaScript, Python
- C++ ↔ C, Rust, Go, Java, Python
- Go ↔ Rust, C++, Java, Python, JavaScript
- Rust ↔ C++, Go, C, Java, Python
- HTML, CSS, JavaScript, TypeScript
- JSON, XML, YAML
- C, C++, Rust, Go, Zig
- Swift (iOS), Kotlin (Android), Dart (Flutter)
- Python, R, MATLAB, Julia
- Shell, PowerShell, Perl, Lua
- Node.js 18+
- At least one AI model API key
-
Clone the repository: ```bash git clone https://github.com/harvestsure/codetrans.git cd codetrans ```
-
Install dependencies: ```bash npm install ```
-
Set up environment variables: ```bash cp .env.example .env.local ```
-
Add your AI model API keys to
.env.local: ```env
DEEPSEEK_API_KEY=your_deepseek_api_key_here OPENAI_API_KEY=your_openai_api_key_here ANTHROPIC_API_KEY=your_anthropic_api_key_here GOOGLE_GENERATIVE_AI_API_KEY=your_google_ai_api_key_here
NEXT_PUBLIC_SITE_URL=http://localhost:3000 ```
-
Run the development server: ```bash npm run dev ```
-
Open your browser and visit http://localhost:3000
- Visit DeepSeek Platform
- Create an account and get your API key
- Add
DEEPSEEK_API_KEY=your_key_hereto your.env.local
- Visit OpenAI Platform
- Create an account and get your API key
- Add
OPENAI_API_KEY=your_key_hereto your.env.local
- Visit Anthropic Console
- Create an account and get your API key
- Add
ANTHROPIC_API_KEY=your_key_hereto your.env.local
- Visit Google AI Studio
- Create an account and get your API key
- Add
GOOGLE_GENERATIVE_AI_API_KEY=your_key_hereto your.env.local
- Push your code to GitHub
- Connect your repository to Vercel
- Add environment variables in Vercel dashboard
- Deploy!
The app can be deployed to any platform that supports Next.js:
- Netlify:
- Railway: Deploy on Railway
- Render: Deploy on Render
- AWS, Google Cloud, Azure
- Framework: Next.js 14 with App Router
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Radix UI
- AI Integration: Vercel AI SDK
- Theme: next-themes
- Icons: Lucide React
- Notifications: Sonner
- ✅ Comprehensive meta tags and Open Graph
- ✅ JSON-LD structured data
- ✅ XML sitemap generation
- ✅ Robots.txt configuration
- ✅ Semantic HTML structure
- ✅ Accessibility optimizations
- ✅ Mobile-first responsive design
- ✅ Fast loading with optimized assets
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- DeepSeek for their excellent code-focused AI models
- OpenAI for GPT-4 and API access
- Anthropic for Claude AI models
- Google for Gemini AI models
- Vercel for the AI SDK and hosting platform
- 🐛 Bug Reports: GitHub Issues
- 💡 Feature Requests: GitHub Discussions
- 📧 Email: [email protected]
- 🐦 Twitter: @codetrans