Saved

Press the star next to a tool's name to save it.

All my tools

EPUB to Text

Use this EPUB to text converter to take the text out of an .epub e-book, chapter by chapter, and save it as a .txt file, in your browser, without uploading it.

Choose an e-book saved as .epub. Its text is taken out chapter by chapter, in reading order, and saved as a plain .txt file. Books with copy protection cannot be converted.

The book is read in your browser. Nothing is uploaded.

Your book

Choose an .epub file to see its text.

An EPUB to text converter takes the words out of an e-book saved as .epub and saves them as a plain .txt file. Choose your book, and its text is read in your browser, section by section, in reading order, and made ready to download or copy. It is useful for reading a book in a simple text editor, for searching it, for counting its words, or for feeding it to other text tools. Nothing is uploaded: the book stays on your device.

What an EPUB file is

Wikipedia's EPUB article explains that an EPUB is an e-book file format that uses the .epub extension. Technically, it says, the file is a ZIP archive consisting of XHTML files carrying the content, along with images and other supporting files. The Open Packaging Format describes the structure of the book in XML, and the Open Container Format gathers all the files into a ZIP archive. The format is supported by many e-readers, and by software for most phones, tablets and computers.

How the converter reads the book

The converter opens the ZIP archive, finds the package file that the container points to, and reads the book's title and author. It then follows the reading order given in the package, called the spine, and opens each content file in turn. Each file's markup is stripped, so that only the words remain, with a line break at the end of every paragraph and heading. The sections are joined in order, with the title and author at the top.

How to use the EPUB to text converter

  1. Choose your .epub file or drop it on the box.
  2. Check the details: the title, author, number of sections and number of words.
  3. Download the .txt file or copy all the text.

Worked example

Suppose your book has a title page, a cover picture, three chapters and a page of notes. The spine lists the title page, the three chapters and the notes. The converter reads those five files in that order and skips the picture, which holds no text, so the result has five sections. It reports the number of words, so a book of 60,000 words gives a text file of about 350 kilobytes, since an average word takes a few bytes.

What is left out

Only the text is taken. Pictures, fonts, styles, the cover and the table of contents links are not part of the .txt file. Formatting such as italics and bold is lost, because plain text has none. Footnotes and notes appear where they sit in the book's files. Tables are flattened into lines of text. Fixed-layout books, which the EPUB article describes as pre-paginated content for highly designed pages such as illustrated books, may have little text to extract.

Protected books

The EPUB article notes that the specification does not name any particular DRM system, so publishers can choose a scheme to their liking. Books bought with such copy protection are encrypted, and the converter does not try to get round it: it tells you that the text cannot be taken out. Only books that you have in unprotected form can be converted. If a book uses only font obfuscation, which does not hide the text, the converter reads it normally.

Using the text

Once you have the text, you can read it in any editor, search it for names and phrases, print it, or count its words with the word counter. You can also listen to it with the text to speech tool. Keep the .epub file as your master copy, because it holds the chapters, formatting and pictures that the text file lacks.

Privacy and limits

The conversion runs in your browser, with a small library that opens ZIP archives, so the book is never sent to a server. Files up to 100 MB are accepted. Close the page or press Clear to remove the book from the tool. Please respect copyright: convert only books that you own or are allowed to use.

Checking the result

Open the text file in an editor and look at the start, the middle and the end. Check that the chapters are in the right order and that no part of the book is missing. The converted file has the name of the book with a new .txt ending, so it never overwrites the EPUB. If sections are missing, the book may keep part of its content outside the reading order.

Character sets

The text file is saved in UTF-8, which handles accented letters, quotation marks and letters from other alphabets. Most modern editors open it correctly. If the text looks garbled in an older program, open the file with the encoding set to UTF-8, or use a current editor.

Common mistakes

  • Choosing a Kindle or PDF file. Only .epub files are supported.
  • Expecting formatting. Plain text has no italics or pictures.
  • Trying to convert a protected book. It is refused.
  • Deleting the EPUB. Keep it as the master copy.

What next

Use this often? Add EPUB to Text to your Home screen.

Frequently asked questions

How does an EPUB to text converter work?

It opens the EPUB's ZIP archive, follows the reading order and strips the markup from each content file.

What is an EPUB file?

An e-book format that is a ZIP archive of XHTML files and supporting files, according to Wikipedia.

Are pictures included in the text file?

No. Only the text is taken, and formatting is lost.

Can I convert a protected book?

No. Books with copy protection are refused.

Is my book uploaded?

No. The conversion runs in your browser.

Sources

  1. Wikipedia: EPUB

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Text & Writing Tools