9 min read

What Is an EPUB File? (And How to Open or Convert One)

An EPUB file (.epub) is the open-standard format behind most of the world's e-books — a reflowable, accessible, ZIP-based bundle of XHTML, CSS, and metadata that any modern reading app can open. This guide explains what an EPUB file actually is, how it works under the hood, how to open one on every device you own (Windows, Mac, iPhone, iPad, Android, Linux, and even a Kindle), and how to convert it to PDF, MOBI, Markdown, or JSON when you need a different shape.

Official Websitefilemarkd.com
Explore Platform
#EPUB#E-book#.epub File#How to Open#Convert EPUB#Digital Publishing#Calibre
What Is an EPUB File? (And How to Open or Convert One)

1. What Is an EPUB File?

An EPUB file (short for "electronic publication" and written with the .epub extension) is a free, open-standard e-book format maintained by the W3C since 2017. It is the file behind the vast majority of trade e-books, indie novels, K-12 textbooks, library lending catalogs, corporate documentation, and long-form web articles sold or distributed today — including everything from Project Gutenberg classics to modern self-published Kindle Direct Publishing titles before they reach a Kindle.

Unlike a PDF, which is a fixed-page snapshot of how a document looks on a printed page, an EPUB is a reflowable package. The text reshapes itself to fit the screen, font, and reading preferences of whoever opens it. That single design choice is why EPUB became the format of choice for accessibility, mobile reading, and any use case where the device, font size, or reader's vision changes between sessions.

1.1 The Short Definition

In one sentence: an EPUB file is a ZIP archive containing XHTML content, CSS stylesheets, fonts, images, and metadata, packaged together so any EPUB reader can extract, lay out, and present the book to a human reader.

If you have ever renamed a .epub file to .zip and opened it, you have already seen the structure. The fact that the format is just a renamed ZIP is a feature, not a limitation — it is the reason EPUB files are easy to inspect, debug, and convert with free tools.

1.2 A Brief History of the EPUB Standard

EPUB was first published in 2007 by the International Digital Publishing Forum (IDPF). The original EPUB 2 spec was a simple, well-defined container of XHTML and OPF metadata that any publisher could produce in minutes.

EPUB 3 arrived in 2011 and added the modern web stack to the format: HTML5, CSS3, MathML for scientific equations, embedded audio and video, scripted interactivity, vertical writing modes for Japanese and Chinese, and rich metadata that libraries and search engines could rely on. In 2017 the W3C absorbed the IDPF and took over stewardship of the standard, with EPUB 3.3 ratified as a W3C Recommendation in May 2023.

Today, EPUB 3.3 is the only EPUB version that matters. Any modern device or reading app — Apple Books, Google Play Books, Kobo, PocketBook, Calibre, Thorium, and the open-source Foliate — implements EPUB 3. EPUB 2 is still readable everywhere but is officially deprecated.

1.3 Who Actually Uses EPUB Files?

• Publishers and self-publishers: every major trade publisher (Penguin Random House, HarperCollins, Hachette, Wiley, O'Reilly) and every self-publishing platform (Smashwords, Draft2Digital, Apple Books for Authors) ships EPUB as the master delivery format.

• Libraries and schools: OverDrive, Libby, Hoopla, and the Internet Archive all distribute books in EPUB because the format is accessible, reflowable, and DRM-friendly (or DRM-free).

• Standards bodies and governments: the European Union, the U.S. Department of Education, and many national libraries require EPUB for accessibility compliance.

• Developers and writers: anyone producing long-form documentation, internal training, or research papers appreciates that EPUB is a single ZIP that can be built, version-controlled, and published without proprietary tooling.

Did You Know?

An EPUB file is literally a ZIP archive. Rename `book.epub` to `book.zip`, double-click it, and you can browse the same XHTML, CSS, and image files that every EPUB reader on Earth uses to render the book. This open design is why EPUB has survived every format war of the last 20 years.

2. EPUB vs PDF vs MOBI: What's the Difference?

Choosing between EPUB, PDF, and MOBI used to be a religious question. Today the answer is mostly settled: EPUB is the default for everything except page-faithful print replicas and legacy Kindle devices. The table below summarizes the differences that actually matter to a reader or a publisher.

PropertyEPUBPDFMOBI
StandardW3C EPUB 3.3 (open)ISO 32000 (open)Proprietary (Amazon, deprecated)
LayoutReflowable (text reshapes to screen)Fixed (one page = one snapshot)Reflowable (subset of EPUB)
Best forLong-form reading, accessibilityPrint replicas, forms, contractsLegacy Kindle devices only
File sizeSmall (often 200 KB – 2 MB)Large (often 1 MB – 50 MB)Small, similar to EPUB
AccessibilityExcellent (semantic HTML, ARIA)Limited (tagged PDFs only)Inherited from EPUB
Text-to-speechNative (via SMIL or media overlays)Requires OCR/embedded audioInherited from EPUB
EditabilityEasy (XHTML + CSS in any editor)Difficult (binary or complex XML)Easy (limited subset of HTML)
Re-flow on phoneYes — designed for itNo — you zoom and panYes — behaves like EPUB
Open source readersCalibre, Thorium, Foliate, many moreAdobe Acrobat, Foxit, OkularCalibre (with conversion)
Future-proofYes — W3C standardYes — ISO standardNo — Amazon sunset in 2023

3. How EPUB Files Work Under the Hood

If you have ever been curious about what is actually inside an .epub file, this section is for you. EPUB is one of the few "binary" formats in daily life that a curious human can fully inspect in five minutes with nothing but a text editor.

3.1 The EPUB File Structure

Every EPUB 3 file is a ZIP archive with a specific internal layout. The three required pieces are:

• `mimetype` — a single 20-byte file at the archive root that contains the literal text `application/epub+zip`. The presence of this file is what tells every reader "this is an EPUB, not a random ZIP."

• `META-INF/container.xml` — the entry point. It points the reader to the package document that describes the book.

• `OEBPS/content.opf` (or any path the container points to) — the "package document." This XML file lists every chapter, image, stylesheet, and font in the book, declares the author and language, and tells the reader the reading order.

Beyond the three required files, an EPUB usually contains `OEBPS/nav.xhtml` (the interactive table of contents), one XHTML file per chapter, CSS stylesheets, image assets (cover, figures), and optionally embedded fonts and audio.

3.2 The Package Document (content.opf)

The package document is the EPUB's manifest. It is a small XML file that declares every asset in the book and the order in which the reader should present them. If you are building EPUB files programmatically — for a documentation site, an internal knowledge base, or a self-publishing pipeline — this is the one file you must produce correctly.

Pro Tip

Because every EPUB file is a ZIP, you can hand-edit a purchased book: change the title in `content.opf`, swap the cover image, or fix a typo in a chapter. Just edit the XHTML inside, re-zip, and rename back to `.epub`. The reader will treat it as a fresh book.

4. How to Open an EPUB File on Any Device

EPUB is one of the most universally supported formats in the world. No matter what device you are holding right now, there is at least one free, well-maintained app that will open the file in under a minute. The subsections below cover the most common combinations.

4.1 Windows 10 and Windows 11

Windows does not ship a native EPUB reader, so you will need to install one. The two best free options in 2026 are:

• Calibre (calibre-ebook.com) — the gold-standard open-source library manager. It opens, edits, converts, and syncs EPUBs to every reading device ever made. It is heavyweight, but it is the only tool most power users ever need.

• Thorium Reader (thoriumreader.com) — a lighter, more modern alternative from the European Digital Reading Lab. If you only want to read EPUBs and do not need library management, Thorium is faster and prettier than Calibre.

To open: install one of the two, then double-click any .epub file. Windows will route it to the new app. To make Calibre or Thorium the permanent default, right-click the file → "Open with" → "Choose another app" → check "Always use this app."

4.2 macOS (MacBook, Mac Mini, Mac Studio)

macOS does ship a native EPUB reader: Apple Books. Just double-click any .epub file (or drag it onto the Books app icon) and it will open in your library, ready to read. Your progress syncs across all your Apple devices via iCloud.

If you want more features — annotations export, advanced typography, or ePub editing — install Calibre, Thorium, or the lightweight Foliate for macOS. For K-12 and academic use, the free Vitalsource Bookshelf app is also excellent.

4.3 iPhone and iPad (iOS 17 and iPadOS 17 or later)

Every modern iPhone and iPad has Apple Books built in. To open an EPUB:

1. Save the .epub file to the Files app (via AirDrop, email attachment, Safari download, or iCloud Drive).

2. Long-press the file in Files → "Share" → "Books." The book is added to your Apple Books library and opens immediately.

Alternatively, install the free Google Play Books app or the KyBook 3 reader for a non-Apple reading experience that syncs across iOS, Android, and the web.

4.4 Android Phones and Tablets

Most modern Android devices ship with no EPUB reader pre-installed, but Google Play Books (free from the Play Store) handles EPUB files natively: open the file from your Downloads, email, or Drive, and choose "Open with Google Play Books." Your library syncs across every device you sign into.

For an ad-free, offline-first alternative, the open-source Librera Reader and the modern ReadEra app are both excellent and free. Both support EPUB, PDF, MOBI, and several other formats.

4.5 Amazon Kindle (the One Exception)

Amazon's Kindle e-readers do NOT open EPUB files directly. Kindles expect either the proprietary .azw/.azw3 format or, on newer devices, the older .mobi format. This is a deliberate choice on Amazon's part to keep readers inside the Kindle ecosystem.

To read an EPUB on a Kindle, you have two free options:

• Email the file to your Send-to-Kindle address with the subject "convert" — Amazon will automatically convert the EPUB to .azw3 and sync it to your device, usually in under a minute.

• Convert the file yourself with Calibre to .azw3 or .mobi, then side-load the result over USB.

If you only need to read an EPUB once and your Kindle has Wi-Fi, the Send-to-Kindle email trick is the fastest path.

4.6 Linux (Ubuntu, Fedora, Arch)

Linux users have two first-class open-source readers:

• Foliate — a beautiful, modern GTK reader that ships as a Flatpak on Flathub. Just `flatpak install flathub com.github.johnfactotum.Foliate`.

• Calibre — the same heavyweight manager that works on Windows and macOS. Install via your package manager (`sudo apt install calibre`) and double-click any .epub.

For command-line workflows, the `ebook-meta` and `epub2txt` utilities from the Calibre suite can read EPUB metadata and extract plain text without launching a GUI.

4.7 In a Web Browser (No Installation)

Need to read an EPUB right now without installing anything? Two free services handle it in seconds:

• Readium Playground — the official W3C/EPUB testbed. Drag an EPUB into the page and it opens in a clean in-browser reader.

• Google Play Books (web) — sign in, click "Upload" in the My Books tab, and read the file in your browser. Your highlights and notes sync to the mobile app automatically.

5. How to Convert an EPUB File (PDF, MOBI, Markdown, or JSON)

Sometimes you do not want to read an EPUB — you want to use it. Maybe you need it as a PDF for a print job, as Markdown so you can paste it into a CMS, or as JSON so an AI agent can ingest its structure. Each of those conversions has a tool that does it well.

5.1 Convert EPUB to PDF (for Print or Sharing)

PDF is the right output when you need a fixed-layout snapshot — for print-on-demand, legal filings, or sharing with someone who refuses to install a reading app. The fastest free path is:

• Calibre: open the book → "Convert books" → output format "PDF." The default settings produce a clean, print-ready file in seconds.

• Online: if you do not want to install Calibre, cloudconvert.com and Zamzar handle one-off conversions. Do not use them for confidential or copyrighted books — they upload your file to a third-party server.

5.2 Convert EPUB to MOBI or AZW3 (for Older Kindles)

Modern Kindles accept EPUB over the Send-to-Kindle email service, so you rarely need MOBI/AZW3 files in 2026. If you do (for a Kindle device that has been disconnected from Wi-Fi for years, or for an older app), Calibre will convert EPUB to either format with one click. Choose "AZW3" if you want modern features like embedded fonts; choose "MOBI" only for the oldest Kindles.

5.3 Convert EPUB to Markdown (for AI, CMS, or Editing)

EPUB to Markdown is the conversion that has exploded in 2025 and 2026. Every team building an AI knowledge base, a RAG pipeline, or a content-repurposing workflow needs to turn published e-books into clean, structured Markdown so a language model can ingest them without choking on XHTML, span soup, or hidden CSS.

• FileMarkd handles this end-to-end: drop an EPUB, get back CommonMark-flavored Markdown with the table of contents preserved as headings, images extracted, and footnotes flattened into references. It is the same engine that powers PDF to Markdown and Word to Markdown, so the output is consistent across formats.

• For a free, offline alternative, the `ebook-convert` CLI from Calibre produces reasonable Markdown: `ebook-convert book.epub book.md`. The output is usable but loses some structure (footnotes, captions) that FileMarkd's vision model preserves.

5.4 Convert EPUB to JSON (for Metadata, Search Indexes, or AI Tools)

If you only need the metadata — title, author, ISBN, chapter list, cover URL — every EPUB exposes it via the `content.opf` package document. The Calibre CLI is the fastest way to extract it: `ebook-meta book.epub` prints a clean summary. For a structured JSON dump, pipe that into `jq` or use the FileMarkd XML to JSON workflow on the package document directly.

For an LLM-ready JSON representation of the full book (chapters, paragraphs, images, footnotes as separate keys), FileMarkd outputs that shape as well. The same EPUB input produces both Markdown and structured JSON, so you can pick the representation your downstream pipeline needs.

6. The Best EPUB Readers in 2026

If you are going to read EPUBs regularly, pick one of these and stop shopping. Every reader on this list is free, actively maintained, and handles EPUB 3.3 correctly.

6.1 Calibre (Windows, macOS, Linux, Android, iOS via web)

The 800-pound gorilla of e-book management. Calibre does everything: library management, conversion, metadata editing, syncing to every reading device ever made, and a built-in reader. The UI is dated and the install is heavy, but you will not outgrow it.

6.2 Apple Books (macOS, iOS, iPadOS)

Pre-installed on every Apple device, beautifully designed, syncs across the whole ecosystem via iCloud. If you live inside Apple's walled garden, you do not need anything else.

6.3 Google Play Books (Android, iOS, Web)

The default on Android, also excellent on iOS and the web. Reads EPUB, syncs everywhere, and has a particularly good search-in-book feature.

6.4 Thorium Reader (Windows, macOS, Linux)

A modern, accessible, EPUB 3.3 native reader from the European Digital Reading Lab. If Calibre feels too heavy and Apple Books is not an option, Thorium is the best pure-reader choice.

6.5 Foliate (Linux, macOS via Homebrew)

A clean GTK reader that is the most pleasant native experience on Linux. Foliate is small, fast, and respects your system theme.

7. Troubleshooting Common EPUB Issues

EPUB is a well-defined format, but real-world files still go wrong. Here are the four issues you are most likely to hit and how to fix them without a developer.

7.1 "My EPUB File Won't Open"

Three common causes, in order of likelihood:

1. The file is actually a renamed PDF or MOBI. Right-click → "Get Info" (Mac) or "Properties" (Windows) to confirm the "Kind" or "Type" is "EPUB document."

2. The file is DRM-protected (Adobe Digital Editions or Apple FairPlay). You will need the original purchase account and an authorized reader to unlock it.

3. The EPUB is corrupted. Open it in Calibre — Calibre will show you exactly which XHTML file failed to parse. If the file came from a publisher, contact them for a fresh copy.

7.2 "The Cover Image or Table of Contents Is Missing"

This is almost always a missing `<meta name="cover">` or `properties="cover-image"` in the package document. Re-open the EPUB in Calibre, right-click → "Edit book," and re-add the cover through the Calibre UI. Calibre will rewrite the package document for you.

7.3 "Text Looks Wrong / Fonts Are Off"

EPUB 3 can embed fonts, but not all readers honor them. If a publisher-supplied font is missing on your device, your reader falls back to a system font — which is why headings or italics look different. Solution: in Calibre, "Edit book" → "Embed fonts" and re-save. Or strip the embedded fonts to force a clean, accessible fallback (often better for accessibility).

7.4 "The File Refuses to Convert"

Calibre's conversion log will tell you exactly which file failed. The most common culprit is a malformed `content.opf` (the package document). Open it in a text editor, validate the XML with any online validator, and re-zip. The FileMarkd converter is more forgiving — it accepts slightly broken EPUBs by running an XHTML repair pass before the conversion.

8. Frequently Asked Questions

Short answers to the questions that show up most often in search results for "what is an EPUB file" and "how to open an EPUB file."

8.1 Is an EPUB the same as a PDF?

No. A PDF is a fixed-layout snapshot of a printed page — the text does not reflow when you change the font or screen size. An EPUB is a reflowable bundle of XHTML and CSS that reshapes itself to your screen, font, and reading preferences. For long-form reading on a phone, tablet, or e-reader, EPUB is almost always the better choice. PDF is better for print replicas, forms, contracts, and any document where the exact page layout must be preserved.

8.2 Can I open an EPUB on a Kindle?

Not directly. Kindles do not accept EPUB files. You can either email the file to your Send-to-Kindle address (Amazon will convert it for you, free) or convert it to AZW3/MOBI with Calibre and side-load over USB. Both methods take under a minute.

8.3 Are EPUB files safe?

Yes — EPUB files are inert ZIP archives. They cannot run code on your device. The only theoretical risk is the same as any downloaded file: a malicious publisher could embed an exploit in a font or image. For this reason, only open EPUB files from publishers and stores you trust, and keep your reader up to date.

8.4 How do I make an EPUB file?

You have three options, in increasing order of polish:

1. Hand-write the XHTML and CSS, zip them, and write the package document by hand. Surprisingly fast for a short book.

2. Use the open-source Sigil editor (Windows, macOS, Linux). It is the closest thing to Microsoft Word for EPUBs and is what most indie authors use.

3. Use a word processor with an EPUB export plugin: Scrivener, Vellum (Mac), Atticus, or the Pandoc command-line tool all produce clean EPUBs from a manuscript.

8.5 What is the best free EPUB reader?

It depends on your device. For Windows and Linux, Calibre or Thorium. For macOS and iOS, Apple Books (pre-installed). For Android, Google Play Books. For the open-source purist, Foliate on Linux is hard to beat.

8.6 Why won't my EPUB open?

Nine times out of ten, the file is actually a renamed PDF, MOBI, or DOCX. Check the file extension and the "Kind" in your file manager. If the extension is correct, the file is most likely DRM-protected or corrupted — see section 7.1 above for the full troubleshooting checklist.

8.7 Is EPUB 3 the same as EPUB?

Yes, in 2026. EPUB 2 was deprecated years ago, and EPUB 3.3 (W3C, 2023) is the only version that modern readers ship. When someone says "an EPUB" today, they mean EPUB 3.

9. Conclusion: Why EPUB Still Wins

The EPUB format has outlived every e-book format war of the last two decades. It survived Amazon's MOBI push, the PDF-only era of the early 2010s, and the closed-ecosystem phase of every major reading app. The reason is structural: EPUB is built on open web standards (XHTML, CSS, ZIP), maintained by the W3C, and trivial for any developer to produce, inspect, and convert.

If you are publishing an e-book, EPUB should be your master format — everything else (PDF, MOBI, AZW3) is a derivative output. If you are reading an e-book, EPUB is the format that respects your device, your eyes, and your reading preferences. And if you are building an AI knowledge base or a content pipeline, converting your EPUB library to clean Markdown is the single highest-leverage cleanup you can do.

For more on the open formats that power modern knowledge work, see our guides to what a Markdown file is and how to open a JSON file.