Blog · EPUB

Common EPUB Conversion Problems and Their Solutions

Start with one question

Is the problem in the conversion, or in the book? Open the original in the EPUB Reader or another app. If the book already looks wrong there, converting it will not help; repair the book first. If it looks right there, the problem is in the target format or its settings.

Symptoms and causes

SymptomLikely causeWhat to do
Letters like “é” instead of “é”Text opened with the wrong encodingOpen the TXT as UTF-8. The output is UTF-8; the viewer is guessing wrong.
Squares instead of Arabic, Hebrew or CJKNo system font for the scriptInstall a font that covers it, or switch viewer.
Arabic letters appear disconnected or reversedViewer does not support complex text layoutUse a viewer that does; for PDF, use the browser print route which does.
Some chapters are absentChapters exist in the archive but not in the reading orderValidate; use the repair tool to re-link chapters that navigation still lists.
Conversion fails immediatelyNot a ZIP, truncated, or unsafe archiveDownload again. Files with unsafe paths or extreme compression are refused on purpose.
Output is gibberishDRM-encrypted contentThese tools cannot decrypt protected books.
Images missing in PDFImage path not found in the archive, or image over 4 MBValidate for missing resources; shrink very large images.
Tab crashes or freezesLarge book exceeds device memoryUse a desktop browser, close other tabs, or split the book.
Strange characters like   in textDouble-escaped entities in the bookRun the repair tool, or find and replace after conversion.
Headings missing structure in TXTPlain text has no heading levelsConvert to Markdown instead.

Diagnose in this order

  1. Validate. The EPUB Validator takes seconds and removes whole classes of guessing.
  2. Repair. If it reports errors, run the repair tool and convert the repaired copy.
  3. Try another target. If TXT is fine but PDF is wrong, the book’s content is intact and the issue is layout or fonts.
  4. Try another device. Memory problems are device problems. The same book often converts on a computer.

Large files

EPUB tools in the browser hold the whole archive and its expanded contents in memory. A book with hundreds of high-resolution images can need many times its file size. The tools refuse files over 100 MB, archives with more than 8,000 entries, or ones that would expand beyond 500 MB, so a problem cannot become a frozen browser. If you hit a limit with a legitimate book, shrink the images with an image tool or split the book.

What these tools do not try to do

When something fails and the message is not helpful, check the file with W3C EPUBCheck. It reports the exact rule and file, and that information is what you need to fix the book or to ask for help.

Reading the tool’s messages

MessageMeaningNext step
This is not an EPUB/ZIP fileThe file does not start with a ZIP signatureCheck it is really an EPUB; re-download. A web page saved as .epub is a common cause.
The archive is damaged or uses an unsupported ZIP featureThe ZIP structure could not be readRe-download. Encrypted ZIP entries are not supported.
Contains an unsafe file pathAn entry tries to escape the book’s folder (for example ../)The file was refused on purpose. Obtain a clean copy.
Would expand to an unsafe sizePossible decompression bombRefused on purpose. If the book is legitimate, split or recompress its images with another tool.
No readable package documentcontainer.xml or the package file is missing or brokenRun the repair tool.
Declares encrypted or obfuscated resourcesDRM or font obfuscationThese tools do not process such books.

When to stop trying

If the validator reports a damaged archive, the repair tool finds nothing to repair, and the book was downloaded from a source you cannot re-download from, the file is probably beyond rescue. A truncated ZIP lost its central directory, and no amount of tooling brings the missing data back. Ask the seller or publisher for a new file, or restore from a backup.

Preventing the problems