How to Validate EPUB Files Before You Publish
A finished manuscript can look flawless in your editor and still fail as an ebook. A missing navigation document, an invalid image reference, or a broken table of contents can create retailer upload errors or a poor reading experience after publication. Knowing how to validate EPUB files is the final production check that confirms your ebook is packaged correctly before it reaches readers.
For an independent author or lean publishing team, validation is not busywork. It is quality control. Your EPUB is a structured publication package, not simply a document saved with a different extension. It contains XHTML content files, CSS styling, metadata, images, navigation, and a manifest that tells reading systems how those pieces fit together. Validation checks whether that package follows the EPUB standard closely enough to open reliably across major devices and storefronts.
What EPUB Validation Actually Checks
An EPUB validator examines the technical structure of the file. It looks for errors such as files listed in the package but missing from the archive, images used in a chapter but absent from the manifest, invalid markup, broken internal links, and metadata problems. It can also identify accessibility-related issues, including missing image descriptions or an incomplete navigation structure.
The most widely recognized technical validator is EPUBCheck. Many retailer systems use related checks during upload, even when they do not expose every underlying rule in the same way. Passing a validator does not guarantee that every page looks perfect on every e-reader. It does mean the EPUB is structurally sound enough to move into visual review with far less risk.
That distinction matters. Validation finds code and packaging problems. Device testing finds presentation problems. A professional release process needs both.
How to Validate EPUB Files Step by Step
Start with the final EPUB export, not a working draft. If you make changes to the manuscript, layout, chapter files, or cover after validation, export and validate again. Treat the validated EPUB as a specific release artifact, just as you would treat a print-ready PDF as the approved file for print production.
1. Export a Standard EPUB File
Use an EPUB export built for commercial distribution, preferably EPUB 3 unless a specific distributor requires another format. Avoid renaming a ZIP archive to .epub or assembling files manually unless you understand the package specification. EPUB files have strict internal requirements, including archive order and uncompressed files in particular locations.
A production tool that exports validated EPUBs can reduce this friction, but the author or publisher should still retain a final review step. Automation should remove repetitive formatting work, not remove ownership of the finished reading experience.
2. Run the File Through EPUBCheck
Submit the exported file to EPUBCheck through a trusted implementation or run the validator locally if your team has a technical workflow. Save the results with the release files. A clean validation report is useful evidence that the exact ebook package you approved was checked before distribution.
Read every message carefully. Validators generally separate findings into errors, warnings, and informational notices. Errors require correction. Warnings may not block retailer delivery, but they should not be dismissed automatically. A warning about deprecated markup may be acceptable in a legacy backlist title; a warning tied to navigation, metadata, or accessibility deserves investigation.
If the report identifies a file path and line number, open that precise XHTML or CSS file in an EPUB editor or code editor. Do not make random formatting changes in the hope that the error disappears. Identify the referenced element, correct the cause, export or repackage the EPUB, then run validation again.
3. Confirm the Navigation and Table of Contents
A reliable table of contents is one of the first things readers notice when it fails. In EPUB 3, the navigation document should include the book's meaningful reading structure: front matter when appropriate, chapters, parts, endnotes, acknowledgments, and other major sections.
Check that every navigation entry opens the right location. A chapter title that points to the previous chapter is technically a link, but it is still a production failure. For nonfiction, test links to notes, appendices, resources, and index entries. For fiction, make sure scene-break conventions, parts, and bonus chapters appear as intended without creating clutter.
Also inspect the reading order in the package document. A valid EPUB can contain all the right files while presenting them in the wrong sequence if the spine is misconfigured. Your title page should not appear after Chapter 1, and an author's note should not interrupt the final chapter unless that is a deliberate editorial choice.
4. Review Metadata and Cover References
Metadata controls how the book identifies itself inside reading apps and, in some cases, during retailer ingestion. Confirm the title, contributor names, language, publisher information where applicable, publication date, and unique identifier. Pay particular attention to subtitle punctuation and author bylines. Small inconsistencies between your cover, retailer listing, copyright page, and EPUB metadata create avoidable confusion.
Your cover image needs its own check. Verify that it is included in the EPUB package, correctly identified as the cover, and sized clearly enough for thumbnail displays. The ebook cover does not need the same dimensions as a paperback or hardcover wrap, but it should be a polished front-cover image with no spine or back-cover elements.
5. Check Accessibility Before You Call It Finished
Validation and accessibility overlap, but they are not identical. An EPUB can pass a technical validator while remaining difficult to use with assistive technology. Review headings, image descriptions, tables, language declarations, and reading order with real readers in mind.
Use heading levels to communicate hierarchy rather than styling ordinary paragraphs to look like headings. Give meaningful images concise alternative text when the image carries information. If an image is decorative, mark it accordingly so screen-reader users are not interrupted by filenames or irrelevant descriptions.
Tables require special care. A simple table with labeled headers can work well. A complex, visually designed table may become confusing on a small screen or with a screen reader. When the content allows it, consider presenting the information in a simpler structure. The goal is not merely to satisfy a rule. It is to preserve the author's meaning across reading modes.
Common EPUB Validation Errors and What They Mean
Some errors appear repeatedly in independent publishing workflows. Knowing the likely cause speeds up correction.
A missing manifest item usually means the EPUB references a font, image, stylesheet, or chapter file that was not declared in the package. A broken hyperlink often comes from a renamed chapter file or an anchor ID that no longer exists. Invalid XHTML commonly results from unclosed tags, improperly nested elements, or special characters pasted from another application.
CSS errors can be more subtle. A validator may flag unsupported properties, malformed declarations, or values that do not meet the EPUB profile. Not every styling preference translates consistently to every e-reader anyway. When you face a choice between elaborate formatting and dependable rendering, dependable rendering is usually the stronger commercial decision.
Font issues are another frequent source of trouble. Embedded fonts must be correctly licensed, declared, and included. Many narrative ebooks do not need them at all. Reader-selected fonts improve comfort and accessibility, while custom fonts may be justified for certain illustrated, poetry, or highly designed books. It depends on the book's purpose, not on whether the file can technically include a font.
Validate First, Then Test Like a Reader
Once the EPUB passes validation, open it in more than one reading environment. Test a phone app, a tablet, and an e-reader previewer if possible. Change font size. Switch to dark mode. Move through the navigation. Search for a phrase. Follow footnotes and return to the text. Check that chapter openings, indents, scene breaks, images, and page-break behavior remain intentional.
This review is where creator control matters most. A validator cannot tell you whether a memoir's photo captions feel detached from the images, whether a novel's ornamental scene break disappears in dark mode, or whether a nonfiction callout box becomes unreadable at a larger font size. Those are publishing decisions, not merely technical defects.
For teams producing recurring titles, build validation into the release checklist: approved manuscript, final cover, EPUB export, validator report, device review, retailer upload, and archived release package. The process becomes faster with repetition because you are preventing the same class of error before it reaches distribution.
A clean EPUB should be quiet. Readers should not notice its package structure, navigation logic, metadata, or code because each element simply supports the book. Validate the file, test the reading experience, and release an ebook that keeps the attention where it belongs: on your work.
Last updated September 18, 2026
← All posts