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.
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
- Salvages all chapter and resource entries even if the ZIP Central Directory is missing.
- Places an uncompressed mimetype entry first to satisfy the EPUB OCF specification.
- Sanitizes every internal XHTML, OPF, and NCX file and rebuilds a clean EPUB archive.
Exact Error Codes & System Messages Fixed
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
Repair interrupted API exports, broken Jupyter Notebooks, trailing commas, and garbled CSV files instantly in your browser.
Repair garbled encoding, malformed timestamps, inverted end times, and broken numbering so VLC, Premiere, and CapCut import cleanly.
Inspect and losslessly strip GPS coordinates, camera EXIF, MP4/MOV device tags, MP3/FLAC ID3 tags, Word/Excel authors, and PDF metadata across 15 formats.
Repair corrupted SQLite 3 headers, pad truncated pages, extract sqlite_master schema, and carve readable records from active B-tree & freelist pages.