What is an EPUB file, and why does it have no fixed pages?
What is inside an EPUB, why e-books reflow instead of keeping pages, how reading time is estimated, and what DRM means for opening a book.
Open the E-book reader Free, in your browser, nothing uploaded.
EPUB is the most common e-book format, but few readers know that an EPUB is really a small website packed into a zip file. Knowing that explains why the text reflows to your screen, why there are chapters and no page numbers, and why some books will not open outside a store’s app. This article walks through the format and how the E-book reader shows it, for students, library borrowers and anyone with free classics on their phone. To listen to a chapter instead, paste it into read aloud; to count the words in an extract for an essay, use the word counter; and for extra spacing and reading aids, try the dyslexia-friendly reader.
What it is
An EPUB is a zip archive with a fixed layout inside. Rename book.epub to book.zip and you can open it. Inside are:
- a file called
mimetypethat saysapplication/epub+zip; META-INF/container.xml, which points to the package file (oftencontent.opf);- the package file, which lists every file in the book (the manifest) and the reading order of the chapters (the spine), plus the title and author;
- the chapters themselves, written in XHTML, the same kind of markup as a web page, with pictures and style sheets beside them;
- a contents list: in EPUB 3 a
navpage, in older EPUB 2 books anncxfile.
Why no fixed pages? Because each chapter is a web page, its text wraps to whatever width and text size you choose. A “page” on a phone at 24 px holds far fewer words than a page on a tablet at 16 px, so page numbers would change every time you changed a setting. Instead, the book is split into the parts listed in the spine.
Reading time is estimated from words, not pages. The reader counts the words in the part you are on and divides by 238 words a minute, an average silent reading speed for adults reading non-fiction in English from a large review of studies:
minutes = words ÷ 238, rounded to the nearest whole minute (at least 1)
DRM (digital rights management) is copy protection. A protected EPUB has its chapters encrypted, and a file called encryption.xml says how. The reader looks at that file: if it shows only font obfuscation, a light scrambling that some publishers use on embedded fonts, the book opens; any other encryption means the chapters are locked, so the reader stops and says so. fibub never removes copy protection.
How to use it
- Press Choose an EPUB book to read, or drop the file on the box. The title and author appear, with the first part of the book.
- Press Contents to open the chapter list and jump to any entry.
- Move with Previous and Next, or the left and right arrow keys on a keyboard.
- Use A- and A+ to change the text size, and pick a Theme (light, dark or sepia) and a Font.
- Tick Remember my place and settings on this device if you want to come back to the same spot later; press Clear to forget it.
- Press Open another book to start again.
A worked example
You download a public-domain novel of about 85,000 words. Its spine has 24 parts, and chapter 7 holds 4,100 words.
- This part: 4,100 ÷ 238 = 17.2, so the line under the title says about 17 min.
- The whole book: 85,000 ÷ 238 = 357 minutes, which is just under 6 hours of reading, or about 21 sittings of 17 minutes.
- Text size: the page starts at 18 px. Three presses of A+ give 24 px; the size goes from 12 to 36 px in steps of 2, so there are 13 sizes to choose from.
If the next book you open gives a message about copy protection, it came from a store that locks books to its own app, and it has to be read there.
Checked with the tools
The reading times above were run in Node through the reader’s own readingStats() function in src/lib/docs/epub.ts: 4,100 words gave 17 minutes, and 85,000 words gave 357. The page itself uses the same sum, Math.max(1, Math.round(words / 238)), in its Tool.astro. The chart, drawn by scripts/blog-figures/ebook-reader-guide.mjs, shows how the minutes line grows with the length of a part.
A 2,000-word part shows 8 minutes and a 10,000-word part 42 minutes. The estimate is a guide: fiction is often read faster than 238 words a minute, and textbooks slower.
Where it is used
- Public libraries and classics. Project Gutenberg and many university presses publish free EPUBs, and library apps lend them.
- Self-published books. Writers export EPUBs from word processors to send to readers or reviewers.
- Study. Students reading set texts on a shared or school computer can open the file without installing anything.
- Accessibility. Reflowing text means large print is just a bigger text size, with no zooming sideways.
Common mistakes
- Expecting page numbers to match a printed copy. Use chapter names when citing, or the printed edition if a teacher needs page numbers.
- Trying a store-bought book with DRM. It will not open here. Read it in the store’s own app.
- Thinking the book is saved. Only your place and settings are kept, and only if you tick the box. Keep the file itself somewhere safe.
- Renaming a PDF to .epub. A PDF has fixed pages and a different structure; renaming it does not convert it.
Questions people ask
Are EPUB and MOBI the same? No. MOBI and AZW are older formats from one e-reader maker. EPUB is the open standard published by the W3C.
Why do some books look plain here? The reader removes the book’s own style sheets and scripts for safety, so every book uses the same clean layout.
Can an EPUB contain audio or video? EPUB 3 allows it, but this reader removes media for safety and shows the text and pictures only.
Sources
- EPUB 3 and EPUB 2 books are read as described in the EPUB specifications of the W3C (the contents list comes from the book's nav document or its NCX file). The file is unzipped in your browser with fflate (MIT). Reading speed uses 238 words a minute (Brysbaert, 2019).
If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.