VS Code Extension

Google Translate, but for code.

Developers speak different coding languages, just like people speak different languages. Our tool instantly translates code between them, so nothing gets lost in translation.

main.py → main.ts Codepreter
Pythonmain.py
def get_active_total(orders):
    return sum(
        o.price * o.qty
        for o in orders
        if o.is_active
    )
                            
TypeScriptmain.ts
function getActiveTotal(orders: Order[]): number {
    return orders
        .filter(o => o.isActive)
        .reduce((sum, o) =>
        sum + o.price * o.qty, 0
    );
}
                            

Try it out yourself

Trusted by more than 5,000+ developers

"Codepreter gave me a TypeScript version in seconds. I actually understood the code for the first time."

- Michael O. (Frontend Engineer, Google)

Three steps. That's it.

01

Open any file in VS Code

Select the file you want to translate using any one of our supported languages.

02

Choose your target language

Pick from our supported language pairs directly from the command palette.

03

Get syntactically valid code, instantly

Your translated file appears in just seconds. Ready to review, refine, and ship.

Supported languages

PythonTypeScript
TypeScriptPython
JavaScriptTypeScript
TypeScriptJavaScript

More language pairs added based on demand — vote for yours →

Built for real situations

The Tasked Developer

Your lead just asked you to rewrite a module in Python. You know JavaScript. You've never written Python in your life.

What we do

Translate the file, get a working starting point, and learn as you refine.

The New Team Member

You just joined a company whose entire codebase is in TypeScript. You're a Python developer.

What we do

Translate files you're working on so you can contribute on day one while you ramp up.

The Tech Debt Migrator

You've inherited 50 files of legacy code in a language nobody on the team uses anymore.

What we do

Translate file by file, at your own pace, without a costly rewrite project.

What this tool is — and what it isn't

Is

  • Fast, syntactically valid starting point in your target language
  • Learning reference for understanding how your original logic maps to a new syntax
  • Productivity tool that removes the blank page problem

Is not

  • Guarantee of production-ready code; always review the output
  • Replacement for understanding the target language
  • Full project migration tool; this tool works file by file, by design

Simple, honest pricing

Free

$0/month
  • 50 translations per month
  • All supported language pairs
  • VS Code extension
Get started — it's free

Team

Coming soon
  • Seat-based pricing
  • Centralized billing
  • Team usage dashboard
  • Dedicated support

LLM inference costs are included in all plans — no surprise bills.

Common questions

Is the translated code production-ready?+

It's syntactically valid and a strong starting point, but like Google Translate, you should always review and refine the output before shipping.

What languages are supported?+

We launch with core language pairs and expand based on community demand. Vote for your language pair on our GitHub.

How is this different from asking ChatGPT?+

We're purpose-built for this workflow, which means no copy-pasting, no tab-switching, and every output is validated for syntactic correctness before you see it. ChatGPT gives you raw output with no signal on whether it runs.

Do you store my code?+

Your code is never stored beyond the duration of the request. We process and discard. Privacy by design.

What happens when I hit my free tier limit?+

You'll be prompted to upgrade to Pro. No translations are lost, you just pause until the next billing cycle or upgrade.

Stop rewriting.
Start translating.

Install the extension and translate your first file in under a minute.