The EPUB Format Explained: What It Is, How to Read It, and How to Convert It
EPUB is the open standard behind most ebooks. Learn what an EPUB file actually is, why it reflows to fit any screen, how to open one, and how to convert EPUB to PDF.
You download a book, a manual, or a long report and it arrives as a .epub file. Your PDF viewer shrugs. Your document editor won't open it. So what is an EPUB, and why does the publishing world lean on it so heavily? The short answer: EPUB is the open, standard format for ebooks: designed from the ground up to make text look good on any screen, from a phone to a large monitor. This guide explains what's actually inside an EPUB, why it behaves so differently from a PDF, how to read one, and how to convert it when you need a fixed-layout copy instead.
What an EPUB actually is
Here's the part that surprises people: an EPUB file is really a website in a box. If you rename an .epub to .zip and unpack it, you'll find HTML files for the chapters, CSS for styling, images, fonts, and a manifest that lists everything and defines the reading order. EPUB is maintained as an open standard by the W3C, which is why it isn't locked to any one company's app.
That architecture is the whole point. Because a book's content is stored as HTML and CSS rather than as fixed pages, an EPUB reader can reflow the text to fit whatever screen it's on: exactly the way a responsive web page rearranges itself on your phone versus your laptop.
Reflowable vs. fixed layout: the key idea
This is the single most important thing to understand about EPUB, because it explains both its strengths and its frustrations.
Reflowable (the default and the norm)
In a reflowable EPUB, there's no such thing as "page 42." The text flows continuously, and the reader software decides where lines and pages break based on your screen size and chosen font size. Bump the font up for tired eyes and the book simply reflows, more, shorter pages, but every word still readable without pinching and panning. This is fantastic for novels, essays, and any prose-heavy reading.
Fixed layout
EPUB also supports a fixed-layout mode where each page is pinned in place like a PDF, used for children's picture books, comics, cookbooks, and anything where the exact position of text and image matters. But the format's heart is reflow, and that's what makes it feel different from the document formats you're used to.
EPUB vs. PDF: choosing between them
People constantly ask which is "better." Wrong question, they're built for opposite goals.
| EPUB | |||
|---|---|---|---|
| Layout | Reflows to fit the screen | Fixed: looks identical everywhere | |
| Font size | Reader adjusts freely | Fixed unless you zoom the whole page | |
| Best for | Long-form reading on any device | Print fidelity, forms, exact layout | |
| On a phone | Comfortable, no pinch-and-zoom | Often requires zooming and panning | |
| Page numbers | Dynamic, device-dependent | Stable and consistent |
A PDF preserves an exact page, perfect for a contract, an invoice, or anything meant to print identically for everyone. An EPUB throws away fixed pages on purpose so the reading experience adapts. If you've ever wrestled a full-page PDF on a small phone, you already understand why ebooks chose reflow. (For a deeper look at when fixed layout wins, our comparison of PDF vs DOCX covers the fixed-versus-editable trade-off in the office-document world.)
How to read an EPUB
You have three easy routes:
- A dedicated reading app. Most e-readers and phone reading apps open EPUB natively and let you adjust fonts, margins, themes, and bookmarks.
- Your web browser or OS. Some browsers and operating systems now open EPUB directly, since the format is built on web technology anyway.
- A no-install online viewer. If you just want to open a file quickly without adding software, our EPUB viewer renders the book right in your browser. The file is read locally, so nothing is uploaded. You just read.
For a book you'll spend hours in, a dedicated reader with font and theme controls is worth it. For a quick look at a file someone sent you, an online viewer is the fastest path.
How to convert an EPUB (and when you should)
Reflow is wonderful for reading and occasionally inconvenient for everything else. The usual reasons to convert an EPUB:
- You need to print it with predictable, consistent pages.
- You want a fixed layout to email or archive, where "page 12" means the same thing for everyone.
- A system or workflow requires PDF, which is still the lingua franca for documents you attach and file.
For all of these, converting EPUB to PDF is the answer. It takes the reflowable content and lays it out into stable, printable pages. You can do it in the browser with our EPUB to PDF converter: drop in the file, get a paginated PDF back, with the file processed locally so your book or document stays on your device.
One honest caveat: converting a reflowable format to a fixed one is inherently a layout decision. The converter picks a page size and font, so the result is a reasonable printable version rather than a pixel-perfect reproduction of how the book looked in your reading app, because in a reflowable book, there was no single "correct" look to begin with. That's a property of EPUB, not a flaw in the conversion.
A quick decision guide
- Just want to read it, right now? Open it in the EPUB viewer.
- Reading a long book on a phone or tablet? EPUB in a proper reading app is the comfortable choice: reflow is doing exactly what you want.
- Need to print, archive, or submit a fixed copy? Convert EPUB to PDF.
- Deciding which format to distribute your own writing in? Ship EPUB for readers, PDF for print: many authors offer both.
A web page dressed as a book
EPUB isn't a mysterious rival to PDF. It's a web page dressed as a book, engineered so text reads beautifully on any screen by reflowing to fit. That reflow is its defining strength for reading and the reason you convert to PDF when you need fixed, printable pages instead. Once you know an EPUB is really zipped HTML and CSS, its behavior stops being confusing and starts making perfect sense.
Got an EPUB in front of you? Open it in the EPUB viewer to read it now, or run it through the EPUB to PDF converter if you need a fixed, printable copy: both work in your browser with nothing uploaded.
Opening one proves the point
The claim that an EPUB is a website in a zip is checkable in your browser: our EPUB viewer unpacks the file locally and renders the XHTML chapters directly, no install, no upload. Watching it reflow as you resize the window is the whole format explained in one interaction, and it is exactly why page numbers are a fiction in reflowable books. When you need fixed pages instead, that is the moment to convert to PDF, accepting frozen layout as the price of universal printability.
Sources
- EPUB 3.3 (W3C Recommendation): the current specification
Written by
Chandrabhan Shekhawat
Founder of Gigai Kripa Services. Builds the 250+ privacy-first browser tools on this site and writes the guides that go with them.
Never miss a guide
New tools and how-to articles land regularly. Follow along however you like. No inbox required.
Keep reading
document-tools
How to Add Page Numbers to a PDF: Positions, Formats, and Ranges Explained
Add page numbers to a PDF the right way (choose position, format, starting number, and which pages to number) for reports, contracts, and long documents.
6 mins readdocument-tools
How to Extract Text from a PDF (Including Scanned Ones with OCR)
Need the words out of a PDF? Learn how text extraction works, why some PDFs copy cleanly while scans give you nothing, and how OCR rescues the text from image-only documents.
6 mins readdocument-tools
How to Add a Watermark to a PDF: Text and Image Watermarks Done Right
Add a text or image watermark to a PDF (DRAFT, CONFIDENTIAL, or a logo) with practical advice on placement, opacity, tiling, and when watermarks actually help.
6 mins read
Explore related tools
Problems we solve
Definitions
From the blog
- How to Convert Markdown to PDF: Turn Plain Text Into a Polished Document
- How to Convert Excel to PDF: Keep Your Spreadsheet Readable When You Share It
- The Complete Guide to Transparent PNGs
- How to Convert CSV to JSON: Headers, Types, and Nesting Done Right
- What Is an SVG and Why Use It? Vector vs Raster, Explained