HomeGuides › EPUB to text

How to get the text out of an EPUB

An EPUB is a zip of web pages. Extracting the words is straightforward once you know that.

An EPUB is an archive containing HTML files, stylesheets and images. That makes extracting the text tractable — it is already text inside, wrapped in markup.

Step-by-step

  1. Add your EPUB.
  2. Extract. Chapters come out in reading order.
  3. Copy or download the plain text.

What comes out

The readable text, in order, with markup removed. Paragraph breaks are kept because they carry meaning; styling is not, because plain text has no way to express it.

Images do not survive — plain text cannot hold them. Tables become their contents in sequence, which is readable but loses the arrangement.

Uses this is good for

DRM

Books bought from most shops carry digital rights management, and a DRM-protected EPUB cannot be read by this tool — the contents are encrypted, and removing that protection is a separate matter with legal implications that vary by country. This works with unprotected EPUBs: public domain texts, books from DRM-free publishers, and files you produced yourself.

Frequently asked questions

Is my book uploaded?

No. The file is unpacked in your browser.

Why will my purchased book not open?

It is almost certainly DRM-protected, which means the contents are encrypted. This tool reads unprotected EPUB files.

Are chapters kept in order?

Yes. The EPUB's own reading order is followed, so the text comes out as the book is meant to be read.

Open the text tools →