Skip to content
EPUB

Document format

EPUB

EPUB packages a publication so a reading system can present its chapters, navigation and resources together. Its best-known use is a reflowable ebook: the reader changes text size and the page breaks adapt.

Learn more

What is the format?

EPUB packages a publication so a reading system can present its chapters, navigation and resources together. Its best-known use is a reflowable ebook: the reader changes text size and the page breaks adapt. EPUB also permits fixed layouts, so the extension alone does not guarantee that a book will reflow.

Technical profile

Extensions
.epub
Storage
ZIP package
Document model
XHTML, resources and reading order
MIME
application/epub+zip
Universal Text Conversion Engine (UTCE)
Source and target
Scope
Format properties ≠ converter coverage

The cards describe the file format. Conversion boundaries are explained below.

History and evolution

EPUB emerged from the Open eBook publishing work and the IDPF standards process. EPUB 2 established the ZIP-based publication model; EPUB 3 brought a stronger HTML-based platform, multimedia and accessibility features. IDPF joined W3C in 2017. EPUB 3.3 became a W3C Recommendation in 2023, continuing the format as a web-standards publication container rather than a proprietary reader format.

  1. 2017

    IDPF / W3C

    IDPF joined W3C in 2017.

  2. 2023

    EPUB 3.3

    EPUB 3.3 became a W3C Recommendation in 2023, continuing the format as a web-standards publication container rather than a proprietary reader format.

Related formats

Compare document models and their uses.

Technical architecture

The Open Container Format wraps a ZIP archive containing a mimetype declaration, container metadata and package documents. The package manifest lists resources; the spine specifies reading order. XHTML content documents carry prose, CSS describes presentation and a navigation document provides a table of contents. Fonts, images and metadata can be packaged locally. Some publications use encryption or font obfuscation, which are separate from ordinary ZIP compression.

Reading order, navigation and chapter boundaries

The spine defines the publication’s reading sequence; navigation supplies labelled access points. These are related but not identical. A navigation hierarchy can link to locations inside a chapter, while a resource in the package need not belong to the ordinary reading sequence. Good conversion follows the declared spine, resolves internal links across chapter files and treats notes and cover resources according to their roles. Alphabetically sorting filenames is not a substitute for the package reading order.

Reflow is a publishing choice

Reflowable content lets a reading system choose line lengths and page breaks. This supports user preferences but means a visual arrangement dependent on exact coordinates may not survive. Fixed-layout content records a different design intent. Neither mode alone guarantees accessibility: meaningful heading hierarchy, usable links and descriptions still matter. A converter that projects both modes into ordinary prose must disclose the layout transformation rather than calling the result an exact book reproduction.

Real-world applications

Publishers distribute novels, manuals and educational books in EPUB because one text can adapt to several screen sizes. A well-authored book uses real headings, usable navigation, image descriptions and language metadata. Mathematical notation, media overlays and interactive content depend on the publication profile and reading-system support; they should be tested on the intended devices.

Advantages and limitations

Reflow improves small-screen reading and lets users choose type size. It also changes pagination: a citation to page 42 may not identify the same passage on another device. Fixed-layout EPUB solves different publishing problems but loses much of that flexibility. A valid package can still have poor navigation or inaccessible prose; structural validation and reading quality are different checks.

Compatibility and software

EPUB reading applications and dedicated readers support different subsets of CSS, scripting and media. EPUBCheck verifies many package and markup rules, but not the full reading experience. For preservation, retain the original package and its resources. A vendor’s DRM-wrapped delivery should not be treated as equivalent to an ordinary unencrypted EPUB.

Conversion considerations

UTCE reads bounded EPUB 2/3 XHTML spine content and writes an EPUB 3 package with navigation, resources and cover roles. It preserves admitted semantic prose and references, while CSS, scripting, complex navigation and fixed rendition are not broadly preserved. Encrypted and font-obfuscated sources reject. PDF export typesets new pages; DOCX export does not retain every ebook-specific role.

Frequently asked questions

How is EPUB different from PDF?

Reflowable EPUB arranges prose for the current viewport. PDF describes finished pages. Choose by reading needs, not by assuming one is universally better.

Does a valid EPUB guarantee accessibility?

No. Navigation, semantics, alternative text and accessibility metadata require their own review. Package validity is only one part of quality.

Sources and specifications