.EPUB

EPUB File

Electronic Publication
Ask a question
QUICK ANSWER

An EPUB file is an open-standard e-book (Electronic Publication) that stores text, images, and metadata in a ZIP archive. On Windows and Linux, open it with Calibre or Thorium Reader; on Mac with Apple Books or Calibre; on iPhone with Apple Books; on Android with Google Play Books. If you want to read it on a Kindle, just use Send to Kindle - Amazon has accepted EPUB directly since late 2022, so manual conversion to MOBI is no longer needed.

Developer: W3C (originally IDPF; merged into W3C in February 2017) Category: eBook Files Open standard MIME: application/epub+zip
OPENS ON Windows macOS Linux Android iOS Web
Related: .ACSM · .AZW3 · .DJVU · .FB2

On this page

19k+ extensions indexed
Last reviewed Jun 26, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the EPUB file format?

Files with the .epub extension contain electronic publications - Electronic PUBlication - compressed using the ZIP compression method and stored in an open format based on XML and XHTML. Within the file there is also metadata describing the publication; the format also enables full-text searching.

Such a file may include:

  • Book content, with the ability to change the font size and the option to display it with no division into pages (reflowable layout)
  • Raster or vector graphics
  • Copy-protection via DRM (Digital Rights Management)
  • CSS stylesheets controlling typography and layout
  • Audio and video media (supported from .epub 3.x onward)
  • Interactive JavaScript-powered elements (.epub 3.x)

.epub files substituted the previous Open eBook format, introduced by the International Digital Publishing Forum - IDPF - in 2007. Currently, alongside .mobi and .pdf formats, .epub is the most popular standard used for distributing electronic books and other publications on dedicated e-readers, mobile devices, and computers equipped with compatible software.

Internally, an .epub file is a ZIP archive containing .xhtml pages, .css files, images, and an XML-based package document (content.opf) that declares the book's structure and metadata. A special uncompressed entry named mimetype - always the first file in the archive - contains the string application/epub+zip, allowing tools to identify the format reliably. The current standard, EPUB 3.3, became a W3C Recommendation in May 2023, adding improved accessibility, MathML 3 support, and refined scripting rules.

Security & safety

RISK: LOW

EPUB is a data format and generally safe. Caveats: EPUB 3 allows JavaScript in content, and reader vulnerabilities (e.g. path-traversal or XSS in older EPUB.js/reader apps) have occasionally allowed malicious books to misbehave - keep reader apps updated and prefer books from reputable sources. Pirated EPUB download sites are the bigger practical risk (bundled adware/fake downloads). DRM-protected files are not dangerous, just restricted.

Format details

in a nutshell
FULL NAMEElectronic Publication
DEVELOPERW3C (originally IDPF; merged into W3C in February 2017)since 2007 (EPUB 2.0, IDPF); current version EPUB 3.3, W3C Recommendation May 2023
CATEGORYeBook Files
MIME TYPEapplication/epub+zip
TYPEZIP-based e-book container (XHTML/CSS content, XML metadata)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
504B0304
ASCII
PK··
Reliable secondary check: the first ZIP entry must be an uncompressed file named "mimetype" containing "application/epub+zip" - so the ASCII string "mimetypeapplication/epub+zip" appears at offset 30.

Programs that open EPUB files

Windows5 apps
Calibre Open-source Add the file to the library (drag & drop) and double-click to read; also converts to/from 20+ formats and manages e-reader devices.
FBReader Freemium Open the EPUB directly; lightweight reader with cloud sync.
Adobe Digital Editions Free Required for Adobe-DRM library/store books: authorize with an Adobe ID, then open the EPUB.
Sigil Open-source EPUB editor - open the file to edit XHTML/CSS and metadata rather than just read.
Thorium Reader Open-source Import the EPUB and read; best-in-class accessibility and LCP DRM support (v3.4, April 2026).
macOS4 apps
Calibre Open-source Drag the file into the library and read or convert.
Adobe Digital Editions Free For Adobe-DRM books: authorize with an Adobe ID, then open.
Apple Books Built-in Double-click the EPUB - it opens and is added to your Books library (syncs to iPhone/iPad via iCloud).
Thorium Reader Open-source Import and read; supports LCP-protected library books.
Linux4 apps
Calibre Open-source Available in all major repos; add the file and read/convert.
Okular Open-source Opens EPUB directly (epub backend installed by default on most distros).
Foliate Open-source Modern GTK e-book reader - open the file directly; the nicest pure-reading experience on Linux.
Thorium Reader Open-source AppImage/deb available; import and read.
Android4 apps
FBReader Freemium Open directly from storage.
Google Play Books Free Use 'Upload files' in the app (or play.google.com/books on desktop) - the EPUB joins your library and syncs across devices.
Moon+ Reader Freemium Open the EPUB from the file manager or the app's library scan.
Libby (library books) Free For library lending - borrow and read in-app; replaced the retired OverDrive app (May 2023).
iOS2 apps
Apple Books Built-in Tap the EPUB in Files/Mail and choose 'Open in Books'.
Libby Free Library lending in-app; successor to OverDrive Media Console.
Web1 app
Google Play Books (web reader) Free Upload the EPUB at play.google.com/books and read in the browser.

Technical details

deep spec
Container formatZIP archive; a valid .zip file that can be unpacked with any standard ZIP tool
MIME typeapplication/epub+zip
Magic bytes50 4B 03 04 (ZIP header) at offset 0; uncompressed mimetype entry at offset 30 contains the ASCII string application/epub+zip
Content markupXHTML 1.1 in EPUB 2; HTML5 in EPUB 3
Stylesheet supportCSS 2.1 subset in EPUB 2; CSS Snapshot 2017 subset in EPUB 3
Package document`content.opf` - XML file declaring the book's manifest, spine order, and Dublin Core metadata
Navigation document`toc.ncx` in EPUB 2; `nav.xhtml` in EPUB 3
Reflowable layoutText and layout adapt dynamically to the reader's screen size, font size, and user preferences
Fixed layoutOptional fixed-layout (FXL) mode for comics, children's books, and graphic novels (EPUB 3)
DRM supportOptional; AES-128 encryption; common schemes include Adobe ADEPT and Apple FairPlay
Audio and videoHTML5 `<audio>` and `<video>` elements supported within EPUB 3 spine documents
ScriptingJavaScript supported at spine-level and container-level in EPUB 3; absent in EPUB 2
AccessibilityEPUB Accessibility 1.1 specification; ARIA landmark roles; WCAG 2 compliance metadata in OPF
MathML supportMathML 3 supported natively in EPUB 3.3
Metadata standardDublin Core elements (dc:title, dc:creator, dc:language) required in the OPF package document
Standard bodyW3C (IDPF merged into W3C in February 2017); EPUB 3.3 became a W3C Recommendation in May 2023
Released2007 (EPUB 2.0, IDPF); current version EPUB 3.3, W3C Recommendation May 2023
Open standardYes · royalty-free
Specificationwww.w3.org

EPUB conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with EPUB files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about EPUB files.

Frequently asked questions

How do I read an EPUB on a Kindle?
Send it via Send to Kindle - the web uploader, desktop/mobile app, or e-mailing the file to your @kindle.com address. Amazon converts it automatically (supported since late 2022). Copying the EPUB over USB does not work; for USB sideloading convert to AZW3 in Calibre.
What's the best free program to open EPUB on Windows?
Calibre (reader + library + converter) or Thorium Reader (cleaner pure-reading app with strong accessibility). Both are free and open-source. Microsoft Edge dropped its built-in EPUB reader in 2019.
Why won't my EPUB open / asks for an Adobe ID?
It's DRM-protected (typical for store purchases and library loans). Open it in Adobe Digital Editions authorized with the same Adobe ID the book was issued to, or in the vendor's own app. Generic readers can only open DRM-free EPUBs.
EPUB or PDF - what's the difference?
EPUB reflows text to fit any screen and font size, like a website; PDF reproduces fixed printed pages. For reading on phones/e-readers EPUB is better; for preserving exact layout (forms, scans) PDF is.
How do I convert EPUB to PDF for free?
Calibre, offline: add the book, click Convert, choose PDF output. Avoid uploading purchased books to random online converters.
Can I open an EPUB on iPhone?
Yes - Apple Books is built in: tap the file and choose Open in Books. iBooks has supported EPUB since 2010; the app was renamed Apple Books in iOS 12 (2018).
Is EPUB a ZIP file?
Yes - rename .epub to .zip and any archive tool shows the XHTML chapters, images and metadata inside. The first entry must be an uncompressed 'mimetype' file, which is how software distinguishes EPUB from a plain ZIP.

References

1W3C - EPUB 3.3 Recommendationwww.w3.org
2W3C - EPUB 3 Overviewwww.w3.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BCBitComet Incomplete Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.CRDOWNLOADChrome Partial Download File
6.BINCD/DVD Disc Image (BIN/CUE)
7.MDMarkdown Document
8.RPMSGRestricted Permission Message
9.AVIFAV1 Image File Format (AVIF)
10.NOMEDIAAndroid No-Media Marker File

Related extensions

.ACSMAdobe Content Server Message
.AZW3Kindle Format 8 (KF8) e-book
.DJVUDjVu Document
.FB2FictionBook 2.0 eBook
.MOBIMobipocket eBook
.OPFOpen Packaging Format (EPUB package document)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z