Overview
EPUB is the most widely adopted open standard for reflowable digital books and publications. Maintained by the World Wide Web Consortium (W3C) since 2017 (previously by the International Digital Publishing Forum, IDPF), EPUB packages XHTML content, CSS stylesheets, images, fonts, and metadata into a single ZIP archive that e-readers, tablets, and reading applications can render with text that reflows to fit any screen size.
Unlike fixed-layout formats such as PDF, EPUB is designed for comfortable reading on devices ranging from small smartphones to large desktop monitors. Readers can adjust font size, typeface, line spacing, margins, and background color to suit their preferences, and the text repaginates accordingly. This reflowable nature makes EPUB the preferred format for novels, nonfiction, textbooks, and periodicals distributed through digital bookstores including Apple Books, Google Play Books, Kobo, and most library lending platforms.
EPUB also supports fixed-layout mode for content where spatial arrangement is essential, such as children's picture books, comics, and cookbooks with precise image-text integration. Accessibility is a first-class concern: EPUB 3 integrates with the WCAG guidelines, supporting semantic markup, ARIA roles, text-to-speech hints via SSML, and media overlays that synchronize narrated audio with highlighted text.
History
The EPUB format evolved from the Open eBook Publication Structure (OEBPS), first released in 1999 by the Open eBook Forum (later renamed IDPF). OEBPS defined an XML-based content vocabulary but lacked a packaging standard. EPUB 2.0, published in 2007, combined XHTML content documents with an OPF (Open Packaging Format) manifest and an OCF (Open Container Format) ZIP wrapper, creating the complete ebook format recognized today.
EPUB 3.0, released in 2011, was a major overhaul that replaced the XHTML subset with full HTML5 and CSS3, added support for SVG, MathML, JavaScript interactivity, and media overlays for synchronized audio-text playback. In 2017, the IDPF merged with the W3C, and EPUB 3.3 (published as a W3C Recommendation in May 2023) is the current version, refining accessibility requirements and aligning the specification more closely with web standards.
Technical Details
An EPUB file is a ZIP archive that must contain a mimetype file as its first entry (stored without compression) with the value application/epub+zip. The META-INF/container.xml file points to the OPF package document, which serves as the manifest and spine (reading order) of the publication. Content documents are XHTML5 files styled with CSS; the spec supports a substantial subset of CSS3 including media queries, web fonts via @font-face, and multi-column layout.
The navigation document (nav.xhtml) replaces the NCX table of contents from EPUB 2 and uses the HTML5 nav element with epub:type attributes for semantic identification. Media overlay documents are SMIL (Synchronized Multimedia Integration Language) files that pair audio segments with text fragments for read-aloud functionality. DRM is not part of the EPUB specification itself but is typically applied as a wrapper — Adobe DRM and Apple FairPlay are the most common schemes used by commercial distributors.
Pros & Cons
Pros
- Reflowable text adapts to any screen size and reader-customizable typography
- W3C-maintained open standard based on familiar web technologies (HTML, CSS)
- Strong accessibility support including media overlays and semantic markup
- Supported by virtually all e-readers, tablets, and reading applications
- Fixed-layout mode available for visually complex publications
Cons
- Rendering differences between reading systems can alter the intended design
- JavaScript support is inconsistent and sandboxed in most readers
- DRM implementations are proprietary and fragment the ecosystem
- Complex page layouts (multi-column, sidebars) are harder to achieve than in PDF
- Some older e-readers only support EPUB 2 and cannot handle EPUB 3 features
Common Use Cases
- Publishing and distributing novels, nonfiction, and textbooks through digital bookstores
- Creating accessible educational materials with synchronized audio narration
- Producing interactive children's books with embedded audio and animations
- Distributing corporate training manuals that readers can customize for comfort
- Self-publishing authors packaging manuscripts for platforms like Apple Books and Kobo
- Libraries lending digital books through OverDrive, Libby, and similar platforms