EPUB MIME Type

Learn what application/epub+zip identifies, how EPUB books are packaged, which readers open them, and how Poly previews and indexes them.

MIME type details for application/epub+zip

In active use
MIME typeapplication/epub+zip
Extensions
.epub
Magic number50 4B 03 04 (mimetype at byte 30; application/epub+zip at byte 38)
First standardized2007
Created byInternational Digital Publishing Forum
Browser support
Example applicationsApple Books, calibre
Poly supportYes. Poly recognizes .epub files and converts them into a PDF representation for processing. Encrypted or malformed books may fail conversion.
Indexed by PolyYes. Poly indexes the converted PDF's page text, OCR fallback, and page-level visual similarity. It does not index the EPUB container as a collection of native resources.
Preview in PolyYes. Poly shows a paginated converted copy in its PDF viewer, not a native reflowable EPUB reading experience.
Poly agentYes. The Poly agent can read and reason about the converted book's page text and images. Native EPUB interactivity and container files are not exposed.

What does application/epub+zip mean?

The application/epub+zip media type identifies an EPUB publication packaged as an Open Container Format (OCF) ZIP file. A typical .epub holds XHTML or SVG content, CSS, images, fonts, metadata, navigation, and sometimes audio, video, or scripts. Its package document supplies the manifest, reading order, and publication metadata that an EPUB reading system needs.1

The +zip suffix is literal: the outer container follows ZIP rules, with additional EPUB requirements. That does not make EPUB interchangeable with an ordinary .zip archive. A reader expects a specific internal structure, including META-INF/container.xml, which locates the package document.1

EPUB usually uses a reflowable layout. The reader can repaginate text for a different screen, font size, or accessibility preference. EPUB also supports fixed-layout publications for comics, children's books, magazines, and other designs whose page geometry matters.2

How can you identify an EPUB file?

The registered extension is .epub. The IANA registration gives a more specific signature than ZIP's opening bytes:3

OffsetExpected bytes or textMeaning
050 4B 03 04ZIP local-file header
30mimetypeName of the first archive entry
38application/epub+zipContents of that entry

The mimetype entry must be first, uncompressed, unencrypted, and contain exactly application/epub+zip in US-ASCII, without padding, a byte-order mark, or extra header fields.1 Those rules let software distinguish an EPUB from another ZIP-based format without scanning the entire archive.

Renaming book.zip to book.epub does not create a valid publication. Use EPUBCheck to validate the container, package, navigation, and content rules before distributing a book.4

History and standardization

EPUB grew from the Open eBook Publication Structure. The Open eBook Forum approved OEBPS 1.0 in 1999, and the organization later became the International Digital Publishing Forum (IDPF). The IDPF approved the single-file OCF container in 2006 and introduced the EPUB name with its 2.0 work in 2007.5

EPUB 3.0 followed in 2011. It aligned the format more closely with HTML, added richer CSS and global-language support, MathML, scripting, media overlays, and stronger accessibility capabilities. EPUB 3.3 later became the first EPUB 3 revision published as a W3C Recommendation.5

The IANA registration is controlled by W3C and identifies the media type as common and in wide use for ebook distribution. It defines no required or optional media type parameters.3

How to open an .epub file

Use a dedicated reading system rather than expecting a browser tab to render the file directly. Browser-based readers exist, but the reader application or extension is interpreting EPUB; ordinary browser image and PDF support does not imply native EPUB support.

Common choices include:

  • Apple Books on Apple devices. The Books app can import many EPUB files obtained outside its store.6
  • calibre on Windows, macOS, and Linux. Its ebook viewer supports EPUB, search, bookmarks, read-aloud, paged reading, and continuous-flow reading.7
  • A hardware ereader or the reading app supplied by an ebook store or library.

Books protected by a store's digital rights management may open only in an authorized app and account. A valid .epub extension and media type do not guarantee that every reader can decrypt the publication or implement every optional EPUB feature.

Support in Poly

Poly recognizes both application/epub+zip and the .epub extension as an ebook document. During indexing it passes the EPUB to calibre's ebook-convert, stores the resulting PDF representation, and processes that copy through the same page pipeline used for PDFs. A repository integration test exercises an EPUB fixture and verifies its converted PDF, page text, page embedding, and thumbnails.

That processing provides:

  • A first-page thumbnail and rendered page thumbnails.
  • A paginated preview in Poly's PDF viewer.
  • Extracted page text, with OCR fallback for rendered pages that need it.
  • Filename, full-text, and page-level similarity search.
  • A PDF representation that the Poly agent and poly file read can read page by page.

The conversion changes the reading model. Poly's preview does not preserve native font controls, responsive reflow, scripted interaction, media overlays, or direct access to the files inside the EPUB container. Layout and page numbers can also differ from another reading system because reflowable content has no universal pagination.

Poly's document pipeline accepts files up to 1 GiB and indexes at most 1,024 converted pages. Conversion can fail for a damaged book, unsupported content, or encryption that calibre cannot process.

If exact EPUB behavior matters, open the original in an EPUB reader. Poly's converted view is optimized for consistent preview, search, and agent access.

EPUB compared with PDF

EPUB and PDF both distribute finished publications, but they solve different layout problems:

PropertyEPUBPDF
Normal layoutReflowable, with fixed-layout supportFixed pages
Main content modelXHTML or SVG, CSS, and packaged resourcesPage-description format
Reader controlsFont, spacing, theme, and pagination often adjustableZoom and page display, with layout preserved
Best fitNovels, textbooks, and accessible digital readingForms, print-ready work, and exact page geometry
MIME typeapplication/epub+zipapplication/pdf

Converting EPUB to PDF freezes one rendering into pages. That is helpful for consistent sharing or printing, but it gives up EPUB's screen-responsive layout. Converting PDF to EPUB is less predictable because software has to infer reading order, headings, columns, and image placement from fixed pages.

Inspecting or converting an EPUB

Because EPUB uses ZIP, an archive tool can expose its internal files for inspection. Work on a copy, and do not repackage it with arbitrary ZIP settings. The first-entry and uncompressed-mimetype requirements are easy to break.

Choose a conversion according to the destination:

  • PDF for printing or stable pages.
  • HTML for extracting and adapting web-native content.
  • AZW3 or another reader-specific format only when a target device requires it.
  • EPUB again after editing when responsive reading and accessibility are priorities.

calibre can read, edit, and convert EPUB files. For production work, validate the final .epub with EPUBCheck after every repackaging or conversion step.47

Treat an EPUB from an unknown source as active, untrusted content. EPUB can include scripts, remote resources, external links, forms, and multiple embedded media types. The W3C threat model warns about tracking, phishing, malicious replacement of remote resources, and attempts to reach local data. Readers should validate archive sizes and paths, isolate scripts, and apply the same care used for untrusted web content and ZIP files.18

Is EPUB just a ZIP file?

No. Every packaged EPUB is a constrained ZIP container, but most ZIP files are not EPUB publications. A conforming EPUB adds the mimetype entry, META-INF/container.xml, a package document, a manifest, a spine, navigation, and content that follows EPUB's processing rules.1

Changing .epub to .zip can make inspection convenient, but changing an arbitrary .zip to .epub does not supply that structure. Servers should send an EPUB as application/epub+zip, not the generic application/zip.

Footnotes

  1. World Wide Web Consortium. EPUB 3.3. See the publication model, Open Container Format requirements, and media type registration. 2 3 4 5
  2. World Wide Web Consortium. EPUB 3 Overview: Layouts. Describes reflowable and fixed-layout publications.
  3. Internet Assigned Numbers Authority. application/epub+zip Media Type Registration. 2
  4. World Wide Web Consortium and DAISY Consortium. EPUBCheck. The conformance checker supports EPUB 2 and EPUB 3. 2
  5. World Wide Web Consortium. EPUB Revision History. 2
  6. Apple. Import Books, Audiobooks, or PDFs in Books on Mac.
  7. calibre. The E-book Viewer. 2
  8. World Wide Web Consortium. EPUB Reading Systems 3.3: Security and Privacy.
© Poly Corp. 2026