Free EPUB sample, test and dummy files
The open standard for reflowable e-books: a ZIP package of XHTML, CSS and images. Download valid EPUB test files in 18 exact sizes, from 5 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.
- Extension
- .epub
- MIME type
- application/epub+zip
- Kind
- Binary
- Category
- Ebooks
Create a EPUB file of any size
Choose any size from 3,072 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.
EPUB files by size
Every file below is a valid EPUB e-book file of exactly the stated size. Open a file's page for its checksum and contents. EPUB files cannot be displayed by a browser, so their pages show the file's details instead of a preview.
| File | Size | Contents | Download |
|---|---|---|---|
| 5 KB EPUB samplesample-epub-5kb.epub | 5 KB5,120 bytes | Chapters: 1 | Download EPUB |
| 10 KB EPUB samplesample-epub-10kb.epub | 10 KB10,240 bytes | Chapters: 1 | Download EPUB |
| 25 KB EPUB samplesample-epub-25kb.epub | 25 KB25,600 bytes | Chapters: 12 | Download EPUB |
| 50 KB EPUB samplesample-epub-50kb.epub | 50 KB51,200 bytes | Chapters: 12 | Download EPUB |
| 100 KB EPUB samplesample-epub-100kb.epub | 100 KB102,400 bytes | Chapters: 12 | Download EPUB |
| 200 KB EPUB samplesample-epub-200kb.epub | 200 KB204,800 bytes | Chapters: 12 | Download EPUB |
| 500 KB EPUB samplesample-epub-500kb.epub | 500 KB512,000 bytes | Chapters: 12 | Download EPUB |
| 1 MB EPUB samplesample-epub-1mb.epub | 1 MB1,048,576 bytes | Chapters: 12 | Download EPUB |
| 2 MB EPUB samplesample-epub-2mb.epub | 2 MB2,097,152 bytes | Chapters: 12 | Download EPUB |
| 3 MB EPUB samplesample-epub-3mb.epub | 3 MB3,145,728 bytes | Chapters: 12 | Download EPUB |
| 5 MB EPUB samplesample-epub-5mb.epub | 5 MB5,242,880 bytes | Chapters: 12 | Download EPUB |
| 10 MB EPUB samplesample-epub-10mb.epub | 10 MB10,485,760 bytes | Chapters: 12 | Download EPUB |
| 15 MB EPUB samplesample-epub-15mb.epub | 15 MB15,728,640 bytes | Chapters: 12 | Download EPUB |
| 20 MB EPUB samplesample-epub-20mb.epub | 20 MB20,971,520 bytes | Chapters: 12 | Download EPUB |
| 25 MB EPUB samplesample-epub-25mb.epub | 25 MB26,214,400 bytes | Chapters: 12 | Download EPUB |
| 30 MB EPUB samplesample-epub-30mb.epub | 30 MB31,457,280 bytes | Chapters: 12 | Download EPUB |
| 50 MB EPUB samplesample-epub-50mb.epub | 50 MB52,428,800 bytes | Chapters: 12 | Download EPUB |
| 100 MB EPUB samplesample-epub-100mb.epub | 100 MB104,857,600 bytes | Chapters: 12 | Download EPUB |
What is an EPUB file?
An EPUB is a website in a box. Chapters are XHTML documents styled with CSS, and a package file lists every resource and the reading order. Reading systems reflow the text to fit any screen.
The container is a ZIP archive with one special rule: its first entry must be an uncompressed file named "mimetype" containing application/epub+zip, so that the format can be recognised from the first bytes.
How to recognise an EPUB file
Software recognises an EPUB file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.
| Extension | .epub |
|---|---|
| MIME type | application/epub+zip |
| Standard | W3C EPUB 3.3 |
| Container | ZIP (OCF) |
| Content | XHTML, CSS, SVG, images, fonts |
| Navigation | XHTML nav document |
What to test for
These are the behaviours that most often go wrong when software handles EPUB files.
- Re-zipping an EPUB with a generic tool usually compresses or reorders the mimetype entry, which makes strict readers reject the book.
- EPUB content is HTML, so a reading system that renders it in a web view needs the same script protections as a browser.
Strengths of EPUB
- Text reflows to fit any screen and any font size.
- An open W3C standard built on web technologies.
Limitations of EPUB
- Rendering varies between reading systems.
- Fixed layouts such as textbooks and comics are poorly served.
Typical uses of EPUB test files
- Testing e-book upload and ingestion
- Checking reading-system rendering
- Testing conversion to other formats
Software that opens EPUB
- Apple Books, Kobo and Google Play Books
- Calibre and Thorium Reader
- EPUBCheck validator
Specifications
Related
EPUB sample files: questions
- Do the sample e-books have DRM?
- No. They are unencrypted EPUB 3 files with a navigation document, a stylesheet and one image.
- What is the MIME type of an EPUB file?
- The MIME type is application/epub+zip. The file extension is .epub.
- Is a sample EPUB file the same as a dummy or example EPUB file?
- Yes. Sample, test, dummy and example EPUB files are different names for the same thing: an EPUB file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy EPUB file.