Skip to content
All tools
English

Translate subtitles offline

English ↔ Arabic, French and Spanish. The translation model runs in your browser, so your subtitles never leave your device.

Your files never leave your device

Add a subtitle file

or drag and drop it here

SRT, VTT or ASS. The file is read on your device.

Model
Model

How to use it

  1. Add one subtitle file

    SRT, VTT or ASS. We detect the language and the text encoding.

  2. Pick the languages and press Translate

    The first time, the browser downloads the translation model once (about 110 to 370 MB). Next time it starts straight away, even offline.

  3. Review, edit, download

    Every line is shown next to the original and can be corrected before you download the file with the same timings.

How the offline translation works

The page loads an open translation model (Helsinki-NLP Opus-MT, the same family used by many offline translators) and runs it with WebAssembly inside your browser. Your subtitle file is read and translated in memory on your device; it is never sent to a server. The model files are downloaded once from the Hugging Face model hub and kept in your browser's storage, so later translations start immediately and also work without a connection.

What is kept from the original file

  • Timings and numbering stay exactly the same, so the file stays in sync with your video.
  • Sentences split over two or three subtitles are translated as one sentence, then spread back over the same subtitles. Translating each piece alone gives much worse results.
  • Italics around a whole subtitle, position tags like {\an8}, ASS styles and the "- " dashes of two-speaker lines are kept. Formatting on single words inside a line is removed.
  • Long lines are re-wrapped into two balanced lines. For Arabic, invisible RLM marks keep punctuation on the correct side in players (you can turn this off).

How good is it?

Good enough to understand a video and to start a translation you then correct, but not at the level of a professional translator or a large online service. We measured the models on our own test lines before publishing: English to Arabic uses the larger tc-big model, which got about 2 of our 53 test lines clearly wrong, against 7 for the lighter model. Jokes, slang, names and very short lines ("Fine." or "Promise?") are where it fails most, so read the result before you share it. You can edit every line on this page.

Speed and device

On a recent laptop expect roughly half a second per subtitle line, so a 45-minute episode (about 600 lines) takes a few minutes. Phones are slower and the larger model needs a few hundred MB of free memory. If your browser supports WebGPU you can try the graphics card option; it is experimental.

Models and licences

Translation models by the Language Technology Research Group at the University of Helsinki (Helsinki-NLP): opus-mt-tc-big-en-ar (CC BY 4.0) and opus-mt-en-ar, ar-en, en-fr, fr-en, en-es, es-en (Apache 2.0), converted to ONNX by the Transformers.js community. They run with Transformers.js (Apache 2.0). We did not change the model weights.

Please translate only subtitles you have the right to use, for example your own videos, lectures or public-domain films.

Frequently asked questions

Is my subtitle file uploaded?
No. The file is read and translated inside your browser. The only download is the translation model itself, from the Hugging Face hub, the first time you use a language pair.
Does it really work offline?
Yes, once the model for your language pair has been downloaded. After that you can disconnect and keep translating files; the model stays in your browser until you clear its site data.
Which languages are supported?
English to Arabic, French and Spanish, and Arabic, French and Spanish to English. For other pairs, translate through English in two steps.
Why is the English to Arabic model so large?
The 370 MB tc-big model is clearly more accurate for Arabic than the 110 MB one, so it is the default. Choose "Smaller download" on a slow or metered connection; it is less accurate and, on our tests, not faster.
Can I translate Egyptian or other Arabic dialects?
The models are trained mostly on Modern Standard Arabic. Dialect input often comes out wrong, and the Arabic output is always standard Arabic.
The translated lines are out of sync. Why?
Timings are copied exactly from your file, so the original was probably already off. Fix it with the subtitle sync tool.