Sample EPUB file: free download
What is an EPUB file?
An EPUB is an e-book packaged as a ZIP archive. Its first entry must be an uncompressed file named mimetype containing application/epub+zip, and META-INF/container.xml points to the package document that lists the book's chapters, images and reading order.
A valid EPUB ebook with the correct uncompressed mimetype entry first in the archive, plus one with a deliberately broken container.
2 ready-made EPUB test files
| File | Size | What it catches | Download |
|---|---|---|---|
| broken-container.epub | 1.5 KB | Readers that trust container.xml without checking the target resolves. A correct reader reports a broken book; a fragile one throws an unhandled error deep in parsing. | download |
| valid.epub | 2.1 KB | Ereaders and ingestion pipelines. EPUB has the same stored-first mimetype rule as ODF, plus a container.xml indirection to the package document - two things naive ZIP handling gets wrong. | download |
Every file is generated from source (no third-party copyright) and each has its own page with a published SHA-256 you can verify after download.
Questions
Where can I download a sample EPUB file?
The valid EPUB below opens in Calibre, Apple Books and most e-readers.
Why must the EPUB mimetype entry be first and uncompressed?
The spec requires it so a reader can identify the format by reading the first bytes without unzipping. Both files here keep that rule. The broken one fails later, the way real books often do: its container.xml points at a package document that is not in the archive.