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
Scan when an EPUB is invalid, corrupt, unreadable, or contains duplicate ZIP entries. Check whether the wrapper can be repaired before replacing the whole export.
Best fit
Upload when the file is still a reflowable .epub and you need to know whether the wrapper, container.xml, OPF path, or mimetype entry is blocking validation.
Report shows
The scan checks ZIP readability, repeated paths, root mimetype, META-INF/container.xml, and the OPF rootfile before deeper link or chapter errors.
Stop when
Use the source project or backup when the ZIP cannot be opened, core package files are gone, DRM is present, or several OPF targets compete.
Scan when the message does not name the affected path. The report shows affected paths and repair decisions, not manuscript text.
Need fixed-layout, DRM, or source-file help? 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.
A useful report does not stop at the error name. It connects the message to an internal file and a next action.
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?
Duplicate paths
Does one internal path appear more than once, and are those copies identical or different?
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, duplicate paths, 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, ZIP ordering, and identical duplicate entries 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.
A checked repair is possible when the wrapper mistake has one exact result, such as mimetype order, container.xml pointing to one OPF, a package-root mismatch, or duplicate ZIP entries whose bytes are identical.
Confirm the file extension and source: it should be a real .epub exported by a publishing or formatting tool.
It cannot choose between duplicate entries with different content or repair a deeply corrupted archive, encrypted EPUB, DRM file, non-EPUB input, missing OPF package, missing book content, or several competing package 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.
The repeated entries may be identical copies or different versions of the same internal file.
Keep one copy only when the bytes are identical. If the copies differ, choose the correct source version manually and rebuild the EPUB.
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, duplicate ZIP entry, damaged EPUB, invalid 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, a corrupted ebook, 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, duplicate internal paths, compressing or misplacing mimetype, missing 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, duplicate path, 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?
A checked repair is possible when the wrapper mistake has one exact result, such as mimetype order, container.xml pointing to one OPF, a package-root mismatch, or duplicate ZIP entries whose bytes are identical.
It cannot choose between duplicate entries with different content or repair a deeply corrupted archive, encrypted EPUB, DRM file, non-EPUB input, missing OPF package, missing book content, or several competing package targets.
Before: the ZIP contains two identical copies of OEBPS/nav.xhtml. After: repack with one copy and validate again. Before: two copies differ or the ZIP cannot be opened; choose the correct source file manually or 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.
Only when every repeated entry at that path has identical content. If the copies differ, the report stops because choosing the correct file changes the book and requires the source project or an EPUB editor.
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.