Translate an EPUB or PDF
The online translator is a Microsoft service. The text of the book goes from this browser to Microsoft, which translates it; Microsoft’s terms apply. Nothing needs to be downloaded first. If Microsoft stops answering, the rest of the book is translated on this device. Choose On this device to keep the book private.
Machine translation. It helps you understand a book; it is not a literary translation. For a better translation with DeepL or AI, use the Mix a Lingo app.
Keep this tab open. If your phone locks the screen or closes the tab, come back to this page and tap Continue.
The whole book in the new language.
Each sentence of the original with its translation above it, the way the Mix a Lingo app shows Translation above original.
Each paragraph in the original, with its translation under it.
Want a better translation, or to learn the language?
The Mix a Lingo app for iPhone translates the book with DeepL or AI. Move the slider all the way left and every sentence is translated whole, or show each translation above its sentence.
Keep the book in the original and let the app translate only the parts above your level (A1 to C2, or JLPT N5–N1+, HSK 1–6 or TOPIK 1–6 in Japanese, Chinese and Korean; how A1–C2 compares with ACTFL and other scales). Tap a word for its translation and save it as a flashcard.
Free: the first 10,000 words of each book. Whole books with a subscription or Lifetime.
With the translator on this device, the book is read and translated in this browser and is never uploaded. Only the translation model is downloaded (20–70 MB per language direction, two directions when it goes through English), and the browser keeps it for next time. So you can continue after an interruption, this browser keeps a copy of your last book and its translation until you translate another one or tap Discard. The same 21 languages as the Mix a Lingo app; between two languages other than English it translates through English.
Open-source licenses
- Bergamot translation engine and translation models (Firefox Translations, Mozilla): MPL 2.0 · source code
- PDF.js (Mozilla): Apache 2.0 · source code
- JSZip: MIT · source code
- whatlang (language detection): MIT · source code
- PDFKit (writes the PDF files): MIT · source code
- Libraries bundled in PDFKit (fontkit, linebreak, png-js, fflate and others): MIT and others · source code
- Noto Serif font in the PDF files (Latin, Cyrillic, Greek): SIL OFL 1.1 · source code
- Noto Serif CJK fonts in the PDF files (Japanese, Chinese, Korean): SIL OFL 1.1 · source code
You have a novel as a DRM-free EPUB, maybe from Project Gutenberg or a shop that sells files without copy protection. It is in Spanish and you want to read it in English tonight, on your e-reader or in Apple Books.
The free EPUB & PDF translator on this page translates the whole book, or only the chapters or pages you choose, in your browser. You get a translated EPUB and two bilingual EPUBs, one with the translation above each sentence and one with it under each paragraph, and each of them as a PDF. It also takes a PDF and returns it as an EPUB and as a new PDF. With the translator on this device, the default, nothing is uploaded: the book is read, translated and written again on your own device. If you choose the online translator instead, the text goes to Microsoft to be translated.
How it works
Three steps, all in your browser
- Choose the file
An EPUB or a PDF with real text, free of DRM. The language is detected from the book, or you pick it. Under What to translate you can tick chapters of an EPUB or set a page range of a PDF.
- Translate
On this device, the browser first downloads the translation model for your languages, then translates every chapter itself. With the online translator nothing is downloaded and the text is translated online.
- Download EPUB or PDF
A translated EPUB and two bilingual EPUBs, one with the translation above each sentence and one with it under each paragraph, each also as a PDF on A5 pages. Images, links and chapters stay in the EPUBs. Each file holds only what you chose to translate.
On your device
Where the translation runs
In your browser. The page opens the EPUB file in the browser tab and hands the text to a translation engine that runs in the background of the same tab (Web Workers). The engine and its models are neural machine translation compiled to WebAssembly, so they run like any other part of the page.
Only the engine and the model are downloaded. The first time you translate between two languages, the browser downloads the engine (about 5 MB) from this website and the model for that direction (20 to 70 MB) from models.mixalingo.app, our file storage. The browser keeps them, so the next book in the same languages starts without the download.
Microsoft only if you choose it. Its security policy (Content-Security-Policy) lets the page connect only to mixalingo.com and models.mixalingo.app, which only serve files to the browser, and to Microsoft, whose translator it calls only when you pick the online translator. We have no upload address for a book to go to.
Several workers on a computer, one on a phone. On a computer the translator runs up to four translation workers at the same time, depending on the processor and memory. On a phone or tablet it uses one, which keeps memory use low.
How it works
What happens to an EPUB, step by step
1. The file is checked
A book with DRM is refused, and so is a fixed-layout EPUB such as a comic or picture book, whose pages would break once the text changes length. Fonts that the publisher only obfuscated do not count as DRM.
2. You choose what to translate
Under What to translate, an EPUB lists its chapters with their word counts, and a PDF shows its number of pages. Leave it closed and the whole book is translated; tick some chapters or enter a page range and only that part is.
3. The language is found
The book says its language in its own data; a language detector checks it against the text. You can also choose the language yourself.
4. The text is cut into sentences
Chapters are read in reading order. Every paragraph, list item and table cell is cut into sentences; headings and the table of contents stay whole. Code blocks, formulas and pictures are left as they are, and the small reading aids above Japanese characters (furigana) are not sent for translation.
5. The sentences are translated
On this device, up to 32 sentences and 2,500 characters go to the engine at a time. Italics, bold, links and footnote marks travel with the words they belong to.
6. The files are written
Images, styles, links and the chapter structure stay; the table of contents and the book title are translated. Chapters you did not choose are left out, together with their entries in the table of contents. Each file gets its own identifier (a book with obfuscated fonts keeps the original one), so a reader app does not mix it up with the original, and a last page says that the book was machine-translated.
Three files
The translated EPUB, the two bilingual EPUBs and their PDFs
Translated EPUB
The book, or the part you chose, in the new language, marked in its data as written in that language. To correct a sentence of the translation or the book’s title, open the file in our EPUB editor.
Bilingual EPUB, sentence by sentence
Each paragraph is broken into its sentences, and every sentence gets two lines of its own: the translation on top in smaller, lighter type, the original under it. The Mix a Lingo app shows a book the same way with Translation above original. Headings get their translation above them too, and paragraphs keep a gap between them.
Bilingual EPUB, paragraph by paragraph
Every paragraph and heading stays in the original and is followed by its translation in slightly lighter italics. In list items and table cells the translation sits under the original inside the same item, so numbered lists and tables keep their shape.
Each file laid out on A5 pages with a margin on every side, the book’s pictures, a title page, page numbers and the note about the translation at the end; the sentence-by-sentence one keeps its furigana. PDF downloads the file like the EPUBs. The first PDF also downloads the fonts it needs from our file storage: up to 2 MB for European languages, and 6 to 12 MB more for each of Japanese, Chinese and Korean.
Bilingual books
Make a bilingual book from your EPUB
Parallel text, sentence by sentence. Both bilingual files are parallel text, the layout of dual-language editions, with the original and its translation together on the page. In the sentence-by-sentence book the translation sits right above its sentence, as in an interlinear translation, so you can check one line without losing your place. The paragraph-by-paragraph book suits reading a whole paragraph in the original first and its translation after it.
Any two of the 21 languages. The original can be in any of the 21 languages and the translation in any other, so one novel can become Spanish with English, or German with Russian. With the translator on this device, a book between two languages other than English is translated through English.
Furigana for a Japanese book. When the book is in Japanese, the sentence-by-sentence file has a Furigana box. Tick it and the file is written again with the reading in hiragana over the kanji of the original: the translation on top, the readings in the middle, the Japanese text below. The readings never go into the translation, so a Chinese translation stays without them. The first time, the browser downloads a Japanese dictionary of about 17 MB, the same one our furigana converter uses. It gives the most common reading, so names and some words can come out wrong. An EPUB 2 book comes back as EPUB 3, because EPUB 2 has no markup for readings.
A PDF if you prefer. Every file also has a PDF button that downloads it as a PDF on A5 pages. Each chapter starts on a new page, every page keeps a margin, and the pictures and the furigana come along. The PDF is made in your browser, so the book stays on your device for this step too.
An ordinary EPUB. Both bilingual books keep the chapters, images and links of the original. Each line also ends with a line break in the text itself, so a reading app that ignores the book’s styles still shows the translation and the original one under the other. In our tests, every file the translator writes passes epubcheck, the W3C’s EPUB checker.
Quality
What the translation is like
Good enough to follow a story. It is machine translation, sentence by sentence. In our test, Oscar Wilde’s “The King’s son was going to be married, so there were general rejoicings” came out in Slovak as “Kráľov syn sa mal zosobášiť, takže tam boli všeobecné radosti”: correct meaning, stiff wording.
Names and wordplay suffer. The donkey in Juan Ramón Jiménez’s “Platero y yo” is called Platero, a word that also means silversmith, and the title came out as “Silversmith and I”. Expect the same with idioms and literary style.
Small fixes before the engine. English titles such as Mr., Mrs. and Dr. would cut a sentence in two, so the dot is dropped before translating. Headings written in capitals are translated in normal case and turned back into capitals.
Through English between two other languages. Spanish to German, for example, goes Spanish → English → German with two models, which loses more than a direct pair.
For a better translation, use the app. The Mix a Lingo app translates with DeepL or AI, which read the sentences around each one. See offline and AI translation.
PDF files
A PDF has no paragraphs, only lines placed on a page. The translator reads the text in your browser and puts it back together into paragraphs, headings and chapters with the same rules the Mix a Lingo app uses when you import a PDF: chapters follow the PDF’s outline when it has one, and a word split across two lines with a hyphen is joined again. The result is an EPUB and a new PDF of the translation, not the original page layout. To translate part of a PDF, enter its first and last page: only those pages are read.
A scanned PDF without a text layer cannot be translated here; the iPhone app reads scanned pages with text recognition (book scanner). A PDF that needs a password, or whose author does not allow copying its text, is refused too. To get an EPUB of a PDF in its own language, without a translation, use the PDF to EPUB converter.
Speed
How long it takes, and phones
A short book in seconds on a computer. In our tests on a Mac, a 19,716-word book (Oscar Wilde’s “The Happy Prince and Other Tales”) took 12 to 17 seconds in Safari, Chrome and Firefox. One translation worker does about 330 to 430 words a second, so a 100,000-word novel takes a few minutes.
On a phone, keep the tab open. A phone uses one worker and is slower. While it translates, the page asks the phone to keep the screen on where the browser allows it. If the phone still locks the screen or closes the tab, the finished part is saved: come back to this page and tap Continue.
What stays in the browser. So that you can continue, the browser keeps a copy of your last book and its translation until you translate another book or tap Discard.
Languages
Languages
The translator offers the same 21 languages as the Mix a Lingo app: Czech, Danish, Dutch, English, Finnish, French, German, Hungarian, Italian, Japanese, Korean, Polish, Portuguese, Romanian, Russian, Slovak, Spanish, Swedish, Turkish, Ukrainian and Chinese, in both Simplified and Traditional characters. Every language has its own model to and from English.
Compared
The free translator or the Mix a Lingo app
This page
Any device with a modern browser. A whole EPUB or PDF in one go, or only the chapters or pages you choose; machine translation, three EPUBs and their PDFs to download, free and without an account.
The app on iPhone and iPad
Reads your book with you instead of returning a file. It translates chapter by chapter with Apple, Offline AI, DeepL or AI translation: every sentence, the translation above each line, or only the parts above your level. Free for the first 10,000 words of each book; whole books with a subscription or Lifetime. See your own books in Mix a Lingo.
Troubleshooting
When a book does not translate
“This EPUB is protected with DRM”. The file comes from a store with copy protection. Only DRM-free files can be read.
“This is a fixed-layout EPUB”. Comics and picture books keep their text in fixed places; translating it would break the pages.
“This PDF has no text layer”. The PDF holds pictures of pages. The iPhone app reads them with text recognition.
“The translation model couldn’t be downloaded”. The connection dropped during the first download. Try again; files that finished downloading are kept.
“The translator stopped”. On a phone this usually means it ran out of memory. Close other tabs, reload this page and tap Continue; what was already translated is kept.
Questions
About the free translator
Is the EPUB & PDF translator on this page really free?
Yes. There is no account, we set no limit on how long a book can be (a PDF is read up to about 16 million characters), and every file, the translated EPUB, the two bilingual EPUBs and their PDFs, is free. The translation runs in your browser, so it costs us nothing per book.
How good is the translation?
It is machine translation, either on your device or online with the online translator (Microsoft), whichever you choose. It is good enough to follow a book, but it makes mistakes with names, idioms and literary style. For a better translation, the Mix a Lingo app translates with DeepL or AI.
Is my book uploaded anywhere?
Not with the translator on this device, which is the default: the file is read and translated in your browser. Only the translation model is downloaded, and the browser keeps it for next time. If you choose the online translator, the text of the book goes from your browser to Microsoft to be translated; it never passes through us. So you can continue after an interruption, the browser also keeps a copy of your last book and its translation until you translate another book or tap Discard.
Which languages can it translate?
The same 21 languages as the Mix a Lingo app: Chinese, Czech, Danish, Dutch, English, Finnish, French, German, Hungarian, Italian, Japanese, Korean, Polish, Portuguese, Romanian, Russian, Slovak, Spanish, Swedish, Turkish and Ukrainian. Chinese works in both Simplified and Traditional characters. Between two languages other than English, for example Spanish to German, the translator on this device goes through English, which takes two models and is less accurate.
How long does a book take?
In our test on a Mac, one translation thread did 330 to 430 words a second, so a 100,000-word novel takes a few minutes on a computer. A phone is slower. If the phone locks the screen or closes the tab, come back to this page and tap Continue: the translation picks up where it stopped.
Can I translate only some chapters or pages?
Yes. After you choose the file, open What to translate. For an EPUB, tick the chapters you want; for a PDF, enter the first and last page. The files you download then hold only that part. If you later translate more chapters of the same EPUB into the same language in this browser, the chapters already done are not translated again.
What happens with a PDF?
The text of the PDF is put back together into paragraphs, headings and chapters, the same way the Mix a Lingo app imports a PDF. You get the result as an EPUB, and as a new PDF laid out on A5 pages. The original page layout is not kept. A scanned PDF without a text layer can’t be translated here; the iPhone app reads scanned pages with text recognition.
Can I translate Kindle or Apple Books purchases?
Only files without DRM. Books bought in the Kindle or Apple Books store are protected, and the translator stops with a message instead of reading them. EPUB files from DRM-free shops and Project Gutenberg work.
How do I make a bilingual book from an EPUB?
Choose the EPUB here, pick the two languages and translate it. Then download the bilingual EPUB sentence by sentence, where each sentence of the original has its translation on the line above it, or the bilingual EPUB paragraph by paragraph, where the translation follows each paragraph. A PDF works too and comes back as an EPUB.
Can I get the bilingual book as a PDF?
Yes. Tap PDF next to the file you want and the PDF downloads, laid out on A5 pages with the translation above each sentence or under each paragraph. Like the EPUBs, it is made in your browser.
Can a bilingual Japanese book have furigana?
Yes. For a book in Japanese, tick Furigana on the bilingual EPUB sentence by sentence. The reading in hiragana then sits over the kanji of the original, between the translation and the Japanese text.
The iPhone app
Read the book at your level instead
Reading in your language
Mix a Lingo for iPhone translates the book with DeepL or AI, sentence by sentence, or shows each translation above its sentence.
Learning the language
Keep the book in the original and let the app translate only what is above your level (A1 to C2, or JLPT N5–N1+, HSK 1–6 or TOPIK 1–6 in Japanese, Chinese and Korean; how A1–C2 compares with ACTFL and other scales), with tap-to-translate and flashcards.
How the app opens your EPUB, PDF and other files: your own books in Mix a Lingo.