25 / Convert · EPUB → HTML

EPUB to HTML converter

Your book as one offline file.

Convert an EPUB into one HTML file that opens directly in a browser. Keep the chapter sequence, nested contents and embedded images without managing a companion resource folder. This creates a reading copy from a DRM-free book; scripts, media, embedded fonts and some styling are removed, so review layout-sensitive material after export.

  • DRM-free EPUB 2 or 3, up to 100 MB
  • No upload: the book stays in this tab
  • One .html file, nothing left to fetch
All tools
Opening your workspace…

At a glance

EPUB to HTML quick specs

Verified
Input
DRM-free EPUB 2 & EPUB 3 (.epub)
Output
One standalone .html file with inline styles, TOC & data-URI images
Scope & limit
Up to 100 MB per book
Processing
Local in your browser — files never upload
Price & account
Free; no sign-up or install required
Key boundary
Large image-heavy books produce larger single HTML files due to base64 embedding

From file to finished

How to convert an EPUB to a single self-contained HTML file

  1. Drop an .epub on the page or press Choose an EPUB. The picker accepts .epub files up to 100 MB; Try a sample opens the bundled four-chapter book if you only want to see the output first.

  2. Wait for the side panel to show the title, author, chapter count, image count and contents depth, then press Export single-file HTML. Progress names the chapter being read and the count reads N / total.

  3. Read the summary that replaces the progress panel: chapters, contents and levels, images embedded, media removed, scripts removed, fonts dropped, file size, source size and build time. Open the warnings block if one appears.

  4. Press Download HTML. The button is disabled until a build succeeds; the file is named after the book title, saves with a .html extension, and the page says it is ready on this device.

  5. Open the downloaded file directly in a browser. No server, folder or network connection is needed; chapter links and the browser’s find work across the single file, online or offline.

Formats and inputs

Supported EPUB formats and inputs

EPUB packages separate chapters and resources; a standalone HTML export combines them into one document. Embedded data images make that file portable but can increase its size. This is not an MHTML archive or a preserved website, and browser rendering differs from an EPUB reading system. EPUB 2 and EPUB 3 navigation can supply contents, while fixed-layout and interactive books need additional review.

InputSupportWhat to expect
A DRM-free EPUB 2 or 3 bookBest fitThe normal case: container.xml, an OPF spine and XHTML chapters. All chapters export in reading order with a nested contents list and embedded images.
A book with a multi-level nav or NCXBest fitNesting is preserved with depths clamped to eight. The summary reports entries and levels, for example “5 · 3 levels”, so you can confirm the depth that was written.
A right-to-left Hebrew or Arabic bookWorksA spine with page-progression-direction="rtl" produces <html lang="he" dir="rtl">. Text direction is kept; the layout is this tool’s simple reading column, not the publisher’s design.
A fixed-layout comic or picture bookPartialChapters export as text and images, but fixed positioning and page spreads are not reproduced. A book whose pages are single large images can produce a very large HTML file.
A book with scripts, audio or videoPartialThe export succeeds, but scripts, audio, video, iframes, objects and forms are removed and counted. An interactive or media-led title loses the part that made it work.
A DRM-protected or encrypted EPUBNot supportedThe opener refuses reading content encrypted in META-INF/encryption.xml with a message naming DRM. There is no removal step and no partial export.
A scanned, image-only EPUBPartialThe text is whatever the page images contain, so a scan exports as a file of pictures with little readable text. The summary counts images but cannot add words that are not there.
A PDF, MOBI or AZW3 renamed to .epubNot supportedThe archive check fails because there is no EPUB container or package document. Convert the file to a real EPUB first; renaming the extension is not enough.

What it can do

What EPUB to HTML can do

One file, nothing left to fetch

Images become data: URIs, the book styles are merged into one <style> block and font files are dropped, so the exported page renders with the network off. The file carries its own content-security-policy meta tag that allows inline styles and data images only, and makes no request for a stylesheet, a font or a picture.

Contents that keep their nesting

The EPUB navigation is rebuilt as nested ordered lists, with depths clamped to eight so a damaged book cannot recurse forever, and every entry links to an anchor such as #ch-3-note inside the same file. The export summary reports how many entries and levels it wrote, or says None when no usable navigation exists.

A summary of what changed

After the build the page lists chapters, contents entries and levels, embedded images, audio and video removed, scripts removed, fonts dropped, output size, source size and build time. A warnings block appears when images were skipped, media was stripped or external stylesheets were dropped, so nothing disappears without a line of explanation.

Built for long books and early exits

A 20 MB, 50-chapter book exported in about 1.5 seconds in testing, with progress naming the chapter being read and a count of the total. Cancel export aborts the read at once — 0.06 seconds after the click in the same test — and Download HTML stays disabled, so a change of mind never leaves a partial file behind.

A filename you can send

The download is named from the book title: characters such as slashes, colons and question marks become spaces, runs collapse, the stem is capped at 120 characters, Windows device names get a “ book” suffix, an empty title falls back to book.html and the extension is always .html.

Right-to-left books keep their direction

When the EPUB spine declares page-progression-direction="rtl", the output keeps the language and writes dir="rtl" on its <html> element. A Hebrew or Arabic book therefore reads in the expected direction in the exported page, without a setting to find or a class to add.

After you run it

What you get from EPUB to HTML

The result is one .html file plus a summary in the side panel. These are the parts to check before you rely on the file or pass it on.

What you getWhat it means
One .html named after the bookThe title is normalised: illegal characters become spaces, runs collapse, the stem is capped at 120 characters, reserved Windows names get a “ book” suffix, and a missing title falls back to book.html.
Chapters in reading orderEach spine chapter becomes a section with an anchor such as #ch-1; a fragment link inside a chapter becomes #ch-3-note. The visible heading is the chapter’s own text, not the navigation label.
A nested contents listNavigation entries render as nested ordered lists. The summary reports entries and levels, for example “4 · 1 level” for the bundled sample or “5 · 3 levels” for a three-level book, or None when nothing usable was found.
Images embedded, with the cost shownEach readable image becomes a data: URI, and the notes report the base64 overhead: 34% on the bundled sample and 36% on a photo-heavy sample. Images over 50 megapixels are skipped and listed in the warnings.
Removal counts you can verifyMedia removed reads “1 audio · 1 video” when both were present, Scripts removed counts script elements, and Fonts dropped counts @font-face rules. A three-chapter test book reported exactly those figures, plus one skipped image.
A size, a build time and a success lineThe summary shows output size, source size and build time, such as 20.1 MB in 1.5 s for a 50-chapter book. Success is “HTML ready — 11.9 KB with 1 embedded image.” plus an enabled Download HTML button.
A file that makes no requestsThe output carries a CSP meta tag and has no external link for styles, fonts or images. Turning the network off and reopening the file is the simplest end-to-end check that the packaging is complete.

When people reach for it

Common EPUB to HTML use cases

Standalone HTML suits a reading handoff to someone with a browser rather than an ebook app. Check whether the book relies on media, specialized fonts or fixed layout before treating the simplified document as a complete replacement.

If you need to…What this tool does
Send a chapter to someone without a readerAttach the .html to an email or drop it into a chat. The recipient double-clicks it in any browser, images included, with no install, account or plugin needed on their side.
Archive a book you want to keep readableStore one file per book in a backup folder. In ten years it still opens in a browser, while an app-specific library may not; reading it needs no dependency on this site.
Host a public-domain text as one pageUpload the .html to a static host and link it. Styles are inline and images are data URIs, so there is no CORS, mixed-content or missing-asset problem to debug on the server.
Read a long book on a locked-down laptopA school or work machine that blocks extensions and unknown apps still renders local HTML. Chapter anchors let you jump within the single file, and the browser’s find covers the whole book.
Check what an EPUB really containsThe summary and warnings show image counts, removed media, scripts and dropped fonts, which helps when a book misbehaves in a reader and you want to see its packaging without unzipping it.
Make a printable handout from a short bookThe base stylesheet includes print rules, so a short manual or story prints from the browser without a PDF pipeline; embedded images print at whatever resolution the EPUB stored.

Why use it

Why convert an EPUB into one self-contained HTML file

Single-file HTML is useful when the next reader has a browser but no ebook app. Its value is a portable reading document that can be opened and inspected directly, with the source EPUB retained for features the export does not reproduce.

Hand over a document without a resource folder

A folder export can lose pictures when only the HTML file is attached or moved. Embedding the images avoids that particular handoff problem, making the reading copy easier to archive or share as one complete file.

Keep long-document navigation available in an ordinary browser

Joining chapters without contents creates a long scroll with few landmarks. Rebuilt navigation helps the recipient jump between sections, which matters for manuals and collected essays that are consulted rather than read only from beginning to end.

Review what was removed rather than assuming perfect preservation

A book may depend on scripts, media or its original fonts for part of its meaning. The conversion summary makes those omissions visible, so you can decide whether a simplified reading copy is sufficient for this edition.

Choose a readable derivative without publishing a website

A local HTML file can be opened from disk without setting up hosting or an ebook platform. That suits a private reference copy, while leaving public distribution, permissions and any website presentation as separate decisions.

When it does not work

Why EPUB to HTML may fail

Each message below comes from a real branch: the picker, the ZIP check, the encryption check or the HTML build. Match the sentence to the row before changing anything.

  • The file is not a ZIP archive

    “This file is not a readable EPUB ZIP archive, or its download is incomplete.” appears for a truncated download, a PDF renamed to .epub or any other non-ZIP file. Re-download the book, or convert the source to EPUB first.

  • The book is encrypted

    “This book contains DRM-protected or unsupported encrypted content. These tools open DRM-free EPUBs only.” A second branch reports “This EPUB contains encrypted reading content and cannot be opened here.” Neither can be bypassed in the page.

  • The EPUB has no readable chapters

    “This EPUB has no supported HTML chapters in its reading order.” or, at build time, “This book has no readable chapters to export.” The spine points only at images or unsupported media, so there is nothing to turn into text.

  • The file is over 100 MB

    The picker says “This file is larger than 100.0 MB. Choose a smaller file to keep this browser responsive.” The opener also enforces 250 MB expanded and 64 MB per entry, so a small file full of images can still be refused.

  • An image is larger than 50 megapixels

    The export still succeeds, but the image is left out and the warnings block reports “1 image was skipped because it was unreadable or larger than 50 megapixels.” Downscale it in an EPUB editor, then export the book again.

  • The tab runs out of memory on a huge book

    A 20 MB text book builds in about 1.5 seconds, but a book of large photos can hold each decoded image and its base64 copy at once. Close other tabs, use a desktop browser, or split the book before exporting.

  • Download HTML stays disabled

    The button is enabled only after a successful build. A cancelled or failed export leaves the download note in place and the button disabled. Press Export single-file HTML again and wait for the success line.

Repair paths

How to fix common EPUB to HTML issues

Match the status sentence to the first column. The first rows are about the input file; the later rows are about what the export can and cannot carry.

What you seeLikely causeWhat to do
“This file is not a readable EPUB ZIP archive…”The chosen file is not a ZIP, or the download is incomplete.Open the EPUB in a reader to confirm it works, re-download it, or convert the PDF or MOBI source to EPUB before choosing it again.
“This book contains DRM-protected…”Reading content is encrypted, not just the fonts.Use a DRM-free edition or the app that supplied the book. Re-saving the same protected file will not change the result.
“This EPUB has no supported HTML chapters…”The spine points at images or media types this reader does not treat as text.Run OCR and rebuild the EPUB, or choose a text-based edition; pressing export again will produce the same message.
“1 image was skipped…” in the warningsThe image is over 50 megapixels or could not be decoded.Downscale it below the pixel cap in an EPUB editor and export again; the rest of the book is unaffected by the skip.
Download HTML is disabledNo build has succeeded in this session.Press Export single-file HTML and wait for “HTML ready”; a cancelled build deliberately leaves the button disabled and the file unsaved.
The contents list is shorter than the bookEntries that point outside the reading order are dropped by design.Compare with the book’s own navigation; only spine chapters are exported, so front matter or extra documents outside the spine will not appear.

Plain-language notes

Key EPUB and HTML terms explained

These terms decide what ends up in the file and what the summary can report. They are the words that change an output on this page.

Spine

The ordered list of content documents in the EPUB package. This tool exports the spine in order and builds anchors from that order, so chapter 2 stays before chapter 10 even when their file names sort differently.

Nav document and NCX

EPUB 3 navigation (nav.xhtml) and the older NCX both describe the table of contents. The reader prefers the nav document, falls back to the NCX, and finally to chapter titles at depth zero.

Contents depth

How many nested levels the navigation has. Depths are clamped to eight, and the summary reports the level count, for example “5 · 3 levels”, so a flat list reads as one level.

data: URI

A way to put a file’s bytes inside a URL. Each image becomes data:image/png;base64,… so the HTML needs no image folder. Base64 text is about a third larger than the bytes it encodes, and the summary shows the measured overhead.

CSP meta tag

The Content-Security-Policy line written into the output. It allows inline styles and data images, and blocks scripts, fonts, media, frames, forms, connections and external images when the file is opened.

page-progression-direction

A spine attribute that names the reading direction, usually rtl for Hebrew and Arabic books. When it is rtl or ltr, the output <html> element gets the matching dir attribute and keeps the book language.

50-megapixel cap

The largest image the exporter will embed. A wider or taller image is skipped instead of being decoded, which protects the tab from one huge photo and is reported in the warnings.

DRM and encryption.xml

Encryption metadata that protects reading content. A book that declares it is refused at open time; font obfuscation alone is not treated as DRM, so a book with only obfuscated fonts still opens.

Standalone HTML versus a web archive

A standalone HTML document embeds the resources it needs to display. MHTML is a different archival container, and a saved webpage may rely on a sibling folder. This export is an ordinary .html reading file, not either of those formats.

Exported reading stylesheet

The HTML supplies a base reading style with 18 px serif text, a 46 rem measure, wrapping code blocks and print rules. Those defaults replace some publisher styling; they are not a promise of matching the source book’s layout.

Other ways to do it

EPUB to HTML vs. alternatives

A different route is better when you need the publisher’s design, a fixed PDF, or batch output. These are the real trade-offs, not a claim that one file replaces a reader.

OptionBetter whenTrade-off
Calibre desktopYou convert many books, need custom conversion settings or already use a desktop library workflow.A desktop conversion workflow can produce other formats and apply detailed settings. Inspect the selected HTML output’s resource packaging if you specifically need one portable file.
Print to PDF from a readerYou need fixed pages or a document that prints exactly as it looks on screen.Keeps fixed pages rather than a reflowable document. Text selection, file size and font behavior depend on the source reader and PDF print path.
Pandoc with an HTML templateYou want a repeatable command, batch runs or your own CSS over the extracted text.You install and maintain a toolchain, and EPUB input still needs a check for footnotes, nesting and images.
Read the EPUB and copy the passageYou need a paragraph, not a file, and the book is already open in a reader.Manual copying is slow for a whole book and loses structure, but it needs no conversion and no stored copy.
Host the EPUB with an online readerYou want the book readable on several devices without sending files around.Hosting or a third-party reader introduces deployment and access decisions. Account, offline and sharing behavior depend on the service or reader you choose.

Your files and this tool

Privacy, accuracy and EPUB to HTML limits

The conversion is local, but the page is still a web page. These points separate what stays in the tab from what the browser may request.

  • The EPUB is read through the browser’s File API and unzipped in memory. No request carries the book or the exported HTML to a server; the download is a blob created in the same tab.
  • Nothing is saved to localStorage or IndexedDB. Reloading or closing the tab discards the book and any built output, so there is no draft to recover and no copy to clear later.
  • The page loads the site’s scripts, styles and shared analytics tag. Try a sample fetches a sample EPUB from this site. Those requests contain no part of your book and happen only when you ask.
  • The exported file lands in your downloads folder as a normal download. It can contain the full text and images of the book, so treat it like any other copy you made of that book.
  • Memory is the real limit beside the 100 MB gate. A very large illustrated book may exhaust the tab even when it passes the byte check, and nothing is uploaded as a fallback.

A little more detail

Frequently asked questions about EPUB to HTML

Can I open the exported HTML without internet?

Yes. The images are data: URIs and the styles are inline in one <style> block, and the file contains no external stylesheet, font or image link. Turn the network off and open the file from your downloads folder: the text, the contents links and the pictures still render. The only thing missing is anything the publisher never packaged inside the book, such as a webfont referenced from a remote server, which was dropped during export.

Does the HTML keep the book’s table of contents?

Yes, when the EPUB has one. The navigation document is preferred, the older NCX is the fallback, and a book with neither gets entries built from chapter titles. Entries render as nested lists with depths clamped to eight and link to anchors such as #ch-2-note inside the same file. Entries that point outside the reading order are skipped, so the exported list can be shorter than the source navigation.

Why do the images make the file bigger?

Base64 encoding turns every image into text, and that text is about a third larger than the original bytes. The export notes report the measured overhead; the bundled sample showed 34% and a photo-heavy sample showed 36%. A 20 MB book of text can come out at about the same size, while an illustrated book grows noticeably. Images over 50 megapixels are skipped instead of being embedded.

What happens to scripts, audio and video?

They are removed. The exporter counts script, audio and video elements before stripping them, removes iframes, objects, embeds, forms, inline event handlers and javascript: URLs, and writes the counts into the summary — for example “1 audio · 1 video” and 2 scripts. A media-led or interactive title therefore loses the part that made it work; what remains is the reading text and the images.

Does standalone HTML mean the file is small enough to email?

No. Embedding the artwork makes the document self-contained but can increase its size, particularly in illustrated books. Check the downloaded file against the recipient’s attachment limit rather than assuming one file means a small file. If the images dominate, prepare a lower-resolution source edition or use another delivery method while keeping the complete original.

Which books cannot be converted?

DRM-protected books are refused with a message naming DRM, files over 100 MB are stopped at the picker, and a ZIP without an EPUB container or package document is rejected. Books whose reading order contains no supported HTML chapters also fail, which usually means a scan or a package built only from images. PDF, MOBI and AZW3 files renamed to .epub fail the same archive check.

Why are fonts and colours different from my reader?

The exporter drops @font-face rules and any remote stylesheet, because a single file must not depend on downloads. Text therefore uses the browser’s default serif at 18 px in a 46 rem column, and the publisher’s colours and layout carry over only as basic inline styles. The page is built for reading, not for reproducing the printed design; open the EPUB in a reader if the exact look matters.

Is the file safe to open and share?

The output is static HTML with a restrictive Content-Security-Policy meta tag: scripts, fonts, media, frames, forms and network connections are blocked, and images are allowed only as data URIs. Scripts and event handlers were removed during the build, so opening the file does not run the book’s code. Sharing is still your decision, because the file contains the book’s text and images in full.