filerepair
All Tools ▾
Kindle / Kobo · Private & Free

Repair Corrupted EPUB E-Book Files

Fix EPUB files rejected by Kindle, Apple Books, or Kobo — repairs broken mimetype compression, missing ZIP directories, and truncated XHTML chapters.

Drop your EPUB E-Book file here
Drag & drop anywhere or press⌘V·100% on-device · never leaves your browser
Try a sample:

Common Issues Handled

  • "Kindle / Apple Books / Calibre refuses to open corrupted EPUB"
  • "EPUB mimetype entry is compressed or not the first ZIP entry (OCF spec error)"
  • "Unclosed XHTML or OPF XML tags inside e-book chapters"

How It Works

  1. Salvages all chapter and resource entries even if the ZIP Central Directory is missing.
  2. Places an uncompressed mimetype entry first to satisfy the EPUB OCF specification.
  3. Sanitizes every internal XHTML, OPF, and NCX file and rebuilds a clean EPUB archive.

Exact Error Codes & System Messages Fixed

Amazon Send to Kindle
E999 — Send to Kindle Internal Error / Invalid EPUB document
Apple Books / Kobo
Cannot open e-book — mimetype file must be uncompressed and first in archive
EPUBCheck (Validator)
PKG-006 / RSC-005: Missing mimetype entry or malformed XHTML chapter markup

Why EPUB Files Fail Send to Kindle & Apple Books (OCF Spec)

The EPUB Open Container Format (OCF) specification is much stricter than a normal ZIP file: the very first entry in the archive must be named "mimetype", must contain "application/epub+zip", and must be stored completely uncompressed (Store method 0) with no extra field.

Many converters, re-zippers, and interrupted downloads either compress mimetype, move it out of first position, or leave unclosed XHTML tags inside chapter files — triggering Amazon Send to Kindle E999 errors. FileRepair rewrites the archive strictly per OCF rules and sanitizes every XHTML/OPF file.

What Can Be Repaired

  • Compressed or misplaced mimetype entries causing Send to Kindle E999 errors
  • Missing ZIP Central Directories in truncated .epub downloads
  • Illegal XML control bytes and unclosed tags in XHTML, OPF, and NCX files

Honest Limitations

  • DRM-protected e-books (Adobe ADEPT, Apple FairPlay, Kindle KFX)

Frequently Asked Questions

Does this remove DRM from encrypted e-books?

No. FileRepair only repairs structural corruption in DRM-free EPUB files.

Will this fix Amazon Send to Kindle E999 errors?

In most cases, yes. Send to Kindle E999 is commonly caused by a non-compliant mimetype entry, invalid UTF-8/XML characters in chapter XHTML, or broken ZIP headers — all fixed automatically here.

Related File Tools