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

FileSizeWhat it catchesDownload
broken-container.epub1.5 KBReaders 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.epub2.1 KBEreaders 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.

Other formats

Sample MP3, WAV and MP4 filesSample GeoJSON, GPX and KML filesSample HTML, CSS and JS filesSample EML and MSG email filesLarge test files (1 KB to 2 GB)Sample PSD, DXF, STL and OBJ filesSample 7z, TAR and GZIP filesSample CSV file