iloveepub
Menu
PL

2026-11-04 · 8 min czytania

How to Fix a Broken EPUB: A Complete Troubleshooting Guide

A book that won't open is usually broken packaging, not broken text. Match your symptom to the failing layer — archive, container, TOC or content — then apply the right repair, and know which cases no tool can fix.

EPUBTroubleshootingRepair


An EPUB that refuses to open is one of the more alarming everyday file problems: the book is right there, and the reader just shrugs. The reassuring truth, once you have seen a few hundred of them, is that the text inside is almost always intact. What breaks is the packaging around it — the ZIP archive rules, the pointer files, the table of contents — and packaging is repairable.

Books break for undramatic reasons: an exporter with a buggy ZIP writer, a download that stopped halfway, a cloud-sync conflict that stitched two copies of an archive together, someone re-zipping a book with the wrong tool. Readers enforce the EPUB rules strictly, so a one-byte defect in the plumbing can get the whole book refused while every chapter sits inside, unharmed.

This guide works backwards from what you see on the screen: match your symptom, find the layer that failed, fix that layer — and know in advance which cases no tool can fix.

The short answer

Most broken EPUBs are broken packaging, and packaging can be rebuilt. The map from symptom to fix:

  • The book won't open at all — the reader calls it invalid or refuses it outright. That is structural damage: the container, the mimetype entry, broken internal references. A structural repair like Fix My EPUB or Repair EPUB fixes it in minutes.
  • The book opens, but the table of contents is missing or wrong — rebuild it from the book's own chapter list with Fix EPUB TOC.
  • The shelf shows a filename and a blank tile instead of a title and cover — not corruption. Missing metadata and a missing cover declaration, fixable in about a minute.
  • The book opens, but the layout is a mess — not a broken file at all. That is an editing problem, not a repair problem.
  • The file is a truncated download or DRM-protected — genuinely unfixable, and each has a correct next action that is not "try another converter".

Four layers, four kinds of breakage

An EPUB is a ZIP archive full of web pages plus bookkeeping files. Picture it in four layers, and every repair maps to one of them:

  1. The archive — the ZIP container itself.
  2. The plumbing — the rules that tell a reader where things are: the mimetype entry, META-INF/container.xml, and the package document (the OPF) with its manifest and spine.
  3. The navigation — the table-of-contents documents: nav.xhtml for EPUB 3, toc.ncx for EPUB 2, and often both.
  4. The content — the XHTML chapters, CSS and images you actually read.

Readers validate from the top down: they check the archive and the plumbing before reading a single word. That is why a defect in layer two can kill the entire book while the text in layer four is untouched — and why "won't open" is the most fixable symptom of all.

Symptom: the book won't open at all

The most common single defect is the mimetype entry. The spec requires it to be the very first record in the archive, stored uncompressed, with one exact content string. Many repackaging tools get this wrong — they compress it, or file it after other entries — and several readers refuse the whole book on that basis alone. The same tier holds container.xml, the shipping label that tells the reader where the package document lives; if it is missing or malformed, the reader cannot find the book inside the archive. One layer deeper, the manifest may reference documents and images that do not exist, or the spine may point at files that were never declared.

All of this is deterministically repairable. A structural repair rebuilds container.xml if needed, restores the mimetype entry to its required first position, clears the dead references, and hands you back a cleanly packed file. Repair EPUB is the single-purpose version of that job. Fix My EPUB wraps it in a fuller loop: a health check runs first and names what is wrong, the structural fixes apply automatically, and the same check runs again on the result before you download it — a repair you can verify, not just a success page.

If you are the hands-on type, rename the .epub to .zip, unpack it and look around; everything described above is visible in a file manager. The trap is the way back. Re-zipping the book with a regular archive tool is precisely how many books break: the tool compresses every entry and buries the mimetype, recreating the defect you were trying to fix.

Symptom: the book opens, but the table of contents is broken

Empty chapter menu, entries that lead nowhere, duplicated chapters, a TOC that stops halfway. The usual suspects are hand editing, buggy exporters and format conversions: anchors pointing at files someone deleted, an empty navigation document, an NCX that a converter silently mangled.

It helps to know that two tables of contents live in every EPUB — the EPUB 3 nav.xhtml and the EPUB 2 toc.ncx, and many books carry both for compatibility. A reader that finds one of them broken or empty shows no chapters at all, or worse, entries that go nowhere.

The robust fix does not patch the broken TOC; it rebuilds from the book's spine — the reading order the publisher declared — with one entry per chapter, titled after each chapter's own heading, written into both nav.xhtml and toc.ncx so whichever document your reader trusts, it gets a working TOC. Fix EPUB TOC does this and shows you a preview before writing anything.

Two honest limits. The rebuilt TOC is flat — one entry per chapter; deeply nested volume-and-part structures are flattened, which is the price of a TOC that works everywhere. And a print-style TOC page rendered inside a chapter is ordinary content, not navigation; rebuilding the navigational TOC does not rewrite that page.

Symptom: filename on the shelf, blank cover tile

A book that shows up as great_american_novel_final.epub with a gray tile is not corrupt. Library apps read exactly two things when they lay out a shelf: the cover declaration in the package metadata, and the dc:title and dc:creator elements. When either is missing, the reader improvises — the filename for a title, a generic tile for a cover — and owners assume the worst. Usually the book was simply published incomplete, or an earlier conversion stripped the metadata.

The fix takes a minute: fill in the real title and author, and declare a cover image. Use a dedicated metadata editor and a cover swap, or do it in one pass as part of Fix My EPUB, which treats shelf presentation as part of the book's health.

One gotcha eats more time than the fix itself: readers cache metadata at import time. After editing, remove the book from the reader and import the fixed file again. Skip that step and the shelf keeps showing the old information, and you will conclude — reasonably but wrongly — that the edit did nothing.

Symptom: it opens, but the text looks wrong

The last category is not a broken file; it is an unloved one. Tiny fixed font sizes, margins that ignore your settings, forced line breaks, styling that fights the reader. Repair tools will not help here, by design: they move chapters, styles and images through the archive byte-for-byte and rewrite only the broken structure.

What works is editing. Replacing or stripping the embedded fonts lets your reader's own typography take over; a CSS pass fixes margins and font sizes; a full EPUB editor handles chapter structure and stylesheets in one place. A useful diagnostic clue: if the book looks equally wrong in every reader, the book's own CSS is the culprit; if it looks wrong only on one device, suspect that device's quirks first.

What no honest tool can fix

Three failures are beyond repair, and it is better to know them by name:

  • A truncated or byte-corrupted archive. A download that stopped halfway is missing bytes, and no tool can invent them. The fix is to fetch the file again from the original source.
  • A book with no readable chapters inside. If the archive opens but contains nothing readable, there is nothing to rescue.
  • DRM. Store-protected books are encrypted by design. No browser tool can process them, removing the protection is not legal in most places, and the honest path is the store's or library's own app.

One more thing worth insisting on: a repair you cannot verify is a guess. Desktop tools hand you a fixed file and trust you to try it; upload-based services show a success page even when the book still fails validation. Prefer a repair that re-checks its own result before you download it.

A sane repair workflow

  1. Diagnose before touching anything. A health check that names the failing layer turns guesswork into a decision.
  2. Fix structure only. Chapters, images and stylesheets should move through the repair byte-for-byte; only the broken structural files get rewritten.
  3. Re-check the result. The same inspection that found the damage should pass the repaired file before you trust it.
  4. Keep the original. Work on a copy, and a repair that preserves your source file can never make things worse.

The privacy angle is not decoration here, either. A broken book is exactly the file you least want to hand to a server you cannot audit — it may be the only copy of something. Every tool linked above runs entirely in your browser; the file never leaves your device, which you can watch in the network inspector while it works.

The bottom line

Work from the symptom to the layer, and from the layer to the fix: won't-open means structural repair; a broken TOC means rebuild from the spine; a nameless shelf tile means metadata; ugly-but-openable means editing. The genuinely dead cases — truncation, empty archives, DRM — announce themselves early, and the right response is a re-download or the seller's app, not a fifth converter. Most of the time, the book you thought you lost is a two-minute repair away.

Darmowe narzędzia, bez wysyłania

EPUB → smaller EPUBZmniejsz rozmiar pliku EPUB, przekodowując obrazy i usuwając zbędne dane — prosto w przeglądarce.Otwórz narzędzie →EPUB + EPUB → EPUBPołącz wiele książek EPUB w jeden plik z ujednoliconym spisem treści.Otwórz narzędzie →EPUB → EPUB × NPodziel EPUB na osobne książki według rozdziałów, zachowując pełną poprawność każdej części.Otwórz narzędzie →EPUB → PDFZamień EPUB na stronicowany PDF do druku lub udostępniania.Otwórz narzędzie →PDF → EPUBKonwertuj książki z PDF na płynne pliki EPUB, które możesz przeskalować na każdym czytniku.Otwórz narzędzie →EPUB → KEpubKonwertuj EPUB na rozszerzony format KEpub Kobo — w całości w Twojej przeglądarce.Otwórz narzędzie →EPUB → TXTWyodrębnij pełny tekst EPUB do czystego pliku tekstowego.Otwórz narzędzie →EPUB → MarkdownKonwertuj EPUB na uporządkowany plik Markdown z zachowanymi nagłówkami i listami.Otwórz narzędzie →TXT → EPUBZamień zwykły plik TXT w poprawnie sformatowany e-book EPUB z rozdziałami.Otwórz narzędzie →EPUB → HTMLZamień EPUB na jeden samowystarczalny plik HTML z wbudowanymi obrazami i stylami.Otwórz narzędzie →DOCX → EPUBZamień dokument Word na książkę EPUB z płynnym tekstem — nagłówki stają się rozdziałami.Otwórz narzędzie →EPUB → DOCXZamień książkę EPUB na edytowalny dokument Word (.docx).Otwórz narzędzie →EPUB ReaderOtwieraj i czytaj pliki EPUB bezpośrednio w przeglądarce — nic do instalowania.Otwórz narzędzie →EPUB → word countPolicz słowa, znaki, rozdziały i czas czytania dowolnego EPUB.Otwórz narzędzie →EPUB → audioSłuchaj dowolnego EPUB dzięki darmowej syntezie mowy przeglądarki — bez wysyłania i instalacji.Otwórz narzędzie →Fix My EPUBZdiagnozuj, napraw i ponownie sprawdź uszkodzony EPUB — lokalnie w Twojej przeglądarce.Otwórz narzędzie →EPUB EditorEdytuj tekst, CSS, metadane i okładki EPUB bezpośrednio w przeglądarce.Otwórz narzędzie →EPUB → new coverZamień obraz okładki EPUB na własny — z podglądem przed zapisaniem.Otwórz narzędzie →EPUB → new metadataEdytuj tytuł, autora, ISBN i inne metadane EPUB — lokalnie, bez wysyłania.Otwórz narzędzie →Repair EPUBNapraw pliki EPUB, które się nie otwierają — kontener, mimetype i odwołania, w Twojej przeglądarce.Otwórz narzędzie →EPUB → new TOCPrzebuduj uszkodzony lub brakujący spis treści EPUB na podstawie prawdziwej listy rozdziałów.Otwórz narzędzie →EPUB → no imagesUsuń wszystkie obrazy z EPUB — mniejsze pliki na czytniki e-ink i starsze urządzenia.Otwórz narzędzie →EPUB → new fontsUsuń osadzone czcionki EPUB lub podmień je na własne — mniejsze, czystsze pliki.Otwórz narzędzie →