My Local Translator

Translate text and documents — entirely in your browser.

My Local Translator runs neural machine-translation models directly in your browser with transformers.js. Paste text or drop a .txt, .md, .pdf or .docx file, pick a direction, and translate.

It uses lightweight Opus-MT models (Helsinki-NLP) — small, fast, and friendly to ordinary laptops. Nothing is ever uploaded; all translation happens on your own device.

Free Private No sign-up On-device AI

User Manual

Overview

My Local Translator is a single-page tool that performs machine translation locally using transformers.js. When you translate for the first time with a given engine, the model weights are downloaded once from the Hugging Face Hub and then cached in your browser, so subsequent translations work offline. The text you enter, the files you open, and the translations produced never leave your device — there is no server involved.

Getting Started

Choosing a direction

Entering text

Translating

Saving the result

First-run tip: the first translation in a given direction needs an internet connection to download that model (~40–80 MB). After that it is cached in your browser and works offline.

The Toolbar

ControlAction
DirectionSelects the translation direction (a fixed-pair Opus-MT model). Your choice is remembered.
⇄ SwapSwitches to the reverse direction when one is available.
📂 Open fileOpens a text, Markdown, PDF or Word file and loads its text into the Source pane.
TranslateTranslates the Source text into the Translation pane.
ClearEmpties both panes.
Copy / Download .txtCopies or saves the translation.

Languages & Directions

The app uses Helsinki-NLP's Opus-MT models — small, fast translators each trained for one direction. It ships with the most widely used directions to and from English: French, German, Spanish, Dutch, Italian, Russian, Chinese and Arabic, in both directions.

Opus-MT models are direction-specific. To translate the other way, pick the reverse direction from the menu, or use the button.

Working with Documents

PDF text is extracted with pdf.js and Word text with mammoth.js. Only the text is extracted — original layout, images, tables and styling are not preserved. The translation is plain text that you can copy or download as .txt.

Scanned/image-only PDFs contain no selectable text, so nothing can be extracted from them. Use a PDF with real text.

Keyboard Shortcuts

ShortcutAction
Ctrl/Cmd + EnterTranslate
Ctrl/Cmd + OOpen file

Privacy

My Local Translator processes everything locally in your browser. No data is transmitted to any server — not the text you type, not the files you open, not the translations produced. The only network activity is the one-time download of model weights from the Hugging Face Hub (and the CDN script files), after which everything is cached and runs offline. Your engine and language choices are stored in localStorage on your device.

Supported File Types

.txt  ·  .md  ·  .pdf  ·  .docx

Troubleshooting

About this tool

Technologies used:

transformers.js Opus-MT (Helsinki-NLP) ONNX Runtime (WebAssembly) pdf.js mammoth.js File API Clipboard API localStorage Vanilla JS

Built with:

Claude Opus 4.8

← Back to Bunka.be