---
title: "AI Code Translator"
description: "Use GPT-4 to translate code from one programming language to another."
url: "https://vercel.com/templates/next.js/ai-code-translator"
links:
  repository: "https://github.com/mckaywrigley/ai-code-translator"
  demo: "https://github.com/mckaywrigley/ai-code-translator"
  deploy: "https://vercel.com/new/clone?demo-title=AI+Code+Translator&demo-description=Use+GPT-4+to+translate+code+from+one+programming+language+to+another.&demo-url=https%3A%2F%2Fgithub.com%2Fmckaywrigley%2Fai-code-translator&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F3MGNdrNhk7hCU5asbw9CqJ%2F126dc4a9c732f1fc52d3d234bf8e76bd%2Fscreenshot.png&project-name=AI+Code+Translator&repository-name=ai-code-translator&repository-url=https%3A%2F%2Fgithub.com%2Fmckaywrigley%2Fai-code-translator&from=templates&skippable-integrations=1&env=OPENAI_API_KEY&envDescription=Get+an+OpenAI+API+Key%3A&envLink=https%3A%2F%2Fplatform.openai.com%2F"
---

# AI Code Translator

Use GPT-4 to translate code from one programming language to another.

# AI Code Translator

Use AI to translate code from one language to another.

![AI Code Translator](https://github.com/mckaywrigley/ai-code-translator/blob/main/public/screenshot.png?raw=true)

## Running Locally

**1. Clone Repo**

```bash
git clone https://github.com/mckaywrigley/ai-code-translator.git
```

**2. Install Dependencies**

```bash
npm i
```

**3. Run App**

```bash
npm run dev
```

## Contact

If you have any questions, feel free to reach out to me on [Twitter](https://twitter.com/mckaywrigley).

## Related Templates

### [Chatbot](https://vercel.com/templates/next.js/chatbot)

A full-featured, hackable Next.js AI chatbot built by Vercel

### [Chatbot UI](https://vercel.com/templates/next.js/chatbot-ui)

A ChatGPT clone for running locally in your browser.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
