Match the report title.
Look for "Invalid EPUB file" or the closest title above. Keep the original EPUBCheck, KDP, or Kindle Previewer wording if it differs.
EPUB error guide
Use this when an EPUB file is called invalid, corrupt, damaged, not a valid EPUB, or unreadable by KDP, Kindle Previewer, EPUBCheck, or a publishing platform.
Scan when the message does not name the affected path. The report shows affected paths and repair decisions, not manuscript text.
Fixed-layout, DRM, or source-workflow issue? Check unsupported or review-first EPUB cases.
Match these report titles
Use this guide when
Your message matches "Invalid EPUB file" or one of the report titles above.
Upload if
You have the exported reflowable .epub and need the affected path, file, field, or repair decision before editing.
Handle outside this tool
Use the source tool or publishing workflow for DOCX, PDF, KPF, KCB, fixed-layout, comics, image-first books, DRM, visual design, or KDP listing and approval problems.
Read the scan report
Use the report label, affected file, and repair decision together. A matching title alone is not enough if the file path or EPUB structure points to a different problem.
Look for "Invalid EPUB file" or the closest title above. Keep the original EPUBCheck, KDP, or Kindle Previewer wording if it differs.
Use the Affected area, Source file, Target file, or Problem type rows before editing OPF, nav, XHTML, CSS, or image paths.
Repairable means one clear structural change. Needs review or Not supported means use the named file, source project, or platform step.
Copy these fields from the report instead of rebuilding the fix from memory.
1. Example report output
The first useful answer is whether the EPUB wrapper can be repaired or whether the file needs a clean export.
Wrapper check
Is this a readable ZIP package with the EPUB mimetype entry?
Container map
Does META-INF/container.xml exist and point to a real OPF file?
OPF rootfile
Does the rootfile path match the actual package location?
Decision
Repair wrapper, inspect package path, re-export source, or unsupported.
If the package map is broken but one OPF target is obvious, repair may be safe. If the file is damaged or encrypted, use the source export instead.
2. Next step
Invalid EPUB messages are often package-level, but not every damaged file is repairable.
Package check
Mimetype order, compression, and root folder layout are common causes after manual archive edits.
OPF check
A repair can be safe when one real OPF file exists and the rootfile path is just wrong.
Clean export
Return to the source project and export a fresh EPUB instead of inventing required package content.
3. Concrete path example
The file can contain the book, but container.xml points readers to the wrong OPF path.
Validator: EPUB is invalid: OPF file could not be found. Report: container.xml rootfile path: OEBPS/package.opf Actual OPF file: EPUB/content.opf Decision: safe only if EPUB/content.opf is the single real package file
If several OPF files exist or the ZIP cannot be opened, stop and re-export from the source project.
Quick decision
Some invalid EPUB files only need a wrapper fix. Others are not safe to repair because required package files are missing.
Good fit
Mimetype, container.xml, OPF rootfile, and simple ZIP ordering issues can be checked and sometimes repaired.
Manual fit
The report can name the candidates, but a person should choose the intended package file.
Not this tool
Use the original source export or a proper backup instead of trying to patch missing core files.
Start here
Invalid EPUB often means the package wrapper cannot be opened correctly. Start with mimetype, ZIP structure, META-INF/container.xml, and the OPF rootfile path before touching book content.
An EPUB is a ZIP package with a required wrapper and a package map. If the wrapper or map is broken, validators may reject the file before checking chapters, images, or links.
EPUB Fixer can help when the wrapper mistake is clear, such as mimetype order, container.xml pointing to one obvious OPF file, or a simple package-root mismatch.
Confirm the file extension and source: it should be a real .epub exported by a publishing or formatting tool.
It cannot safely repair a deeply corrupted archive, encrypted EPUB, DRM file, non-EPUB input, missing OPF package, missing book content, or unclear package layout with several competing targets.
Common situations
Start with the first package layer that fails.
Manual ZIP tools often package EPUB folders in the wrong order.
Rebuild the wrapper only when the rest of the EPUB package is intact.
EPUB readers need container.xml to find the package document.
Repair the rootfile path only when one real OPF target is clear.
A renamed folder, damaged upload, encrypted file, or wrong source file can look like an EPUB but fail package checks.
Go back to the source tool and export a fresh EPUB.
Invalid EPUB file: corrupt EPUB, damaged EPUB, not a valid EPUB, mimetype, container.xml, OPF rootfile, or ZIP package error.
KDP, Kindle Previewer, EPUBCheck, Apple Books, Google Play Books, or a reader app says the EPUB is invalid, corrupt, damaged, unreadable, not a valid EPUB, or cannot find the package file.
What it means
An EPUB is a ZIP package with a required wrapper and a package map. If the wrapper or map is broken, validators may reject the file before checking chapters, images, or links.
Common causes include zipping the parent folder instead of the EPUB contents, compressing or misplacing the mimetype file, missing META-INF/container.xml, a wrong OPF rootfile path, damaged ZIP data, encrypted content, or a file that is not really an EPUB.
Before you edit
A broken ZIP wrapper, missing mimetype, missing container.xml, or wrong OPF rootfile path can stop validation before deeper content errors are visible.
Why KDP checks it
The EPUB ZIP wrapper must point readers to the OPF file through META-INF/container.xml and keep packaged resources at the paths the book references.
EPUBCheck checks EPUB 2 and EPUB 3 files against the official rules and reports package, markup, link, and file-reference problems.
KDP supports EPUB files that meet Kindle Publishing Guidelines and recommends checking the file with Kindle Previewer before upload.
Can this be fixed safely?
EPUB Fixer can help when the wrapper mistake is clear, such as mimetype order, container.xml pointing to one obvious OPF file, or a simple package-root mismatch.
It cannot safely repair a deeply corrupted archive, encrypted EPUB, DRM file, non-EPUB input, missing OPF package, missing book content, or unclear package layout with several competing targets.
Before: container.xml points to OEBPS/package.opf, but the only OPF is EPUB/content.opf. After: update the rootfile path only when that is the intended package file. Before: the ZIP cannot be opened; export the EPUB again.
Ready to retry?
Upload the EPUB when it is not encrypted and still looks like a normal reflowable EPUB package. The report will stop early when the file is outside scope.
Upload EPUB to scanFAQ
Often the ZIP wrapper or package map is broken. Check mimetype, container.xml, and the OPF rootfile path before editing chapters.
Only when the package mistake is clear and the core files still exist. A damaged, encrypted, or incomplete archive should be exported again.
No. The ZIP has to follow EPUB packaging rules, including a correct mimetype entry and container.xml package map.
No. DRM-protected or encrypted EPUBs are outside this scanner.