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.
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.
Ctrl/Cmd + O) and pick a
.txt, .md, .pdf or .docx file.Ctrl/Cmd + Enter).translation.txt.| Control | Action |
|---|---|
| Direction | Selects the translation direction (a fixed-pair Opus-MT model). Your choice is remembered. |
| ⇄ Swap | Switches to the reverse direction when one is available. |
| 📂 Open file | Opens a text, Markdown, PDF or Word file and loads its text into the Source pane. |
| Translate | Translates the Source text into the Translation pane. |
| Clear | Empties both panes. |
| Copy / Download .txt | Copies or saves the translation. |
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.
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.
| Shortcut | Action |
|---|---|
Ctrl/Cmd + Enter | Translate |
Ctrl/Cmd + O | Open file |
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.
.txt · .md · .pdf · .docx
Technologies used:
Built with: