EPUB to TXT
Choose one .epub file of at most 32 MB. This page unpacks the book in this tab, reads the body text in spine order, and lets you download a UTF-8 .txt file. Books with DRM are rejected.
Add an EPUB file
Extracted text
How to use EPUB to TXT
- Add an .epub fileChoose one EPUB book ending in .epub, at most 32 MB. Password-protected and DRM-protected books are not supported.
- Extract the textThe page unpacks the ZIP package in this tab and reads the documents in the book spine. Images, styles, and layout are omitted.
- Download a TXT fileSave a UTF-8 text file with LF line endings. Review the result before you use it.
Limits and how it works
- Only one .epub file at a time, at most 32 MB, with at most 200 spine documents.
- Extracted text is limited to 2,000,000 characters.
- Books that contain META-INF/encryption.xml, including font-only encryption, are rejected. DRM is not removed.
- Images, styles, and layout are omitted. Output is UTF-8 plain text with LF line endings, not an EPUB and not a layout-accurate preview.
How the text is extracted
An EPUB file is a ZIP archive of HTML or XHTML documents plus a package file that lists reading order. This page uses unmodified JSZip (MIT), already listed on the licenses page, to unpack the archive in this tab. It then reads the spine documents in order and writes their visible text. Library source files are not modified. The download is UTF-8 plain text with LF line endings and no byte-order mark.
This is not a layout-preserving export and not a full ebook reader. Images, covers, fonts, CSS, audio, and video are omitted. Tables, lists, and headings are flattened to text. Footnotes, page lists, and navigation documents may be incomplete or missing.
Books that include META-INF/encryption.xml are rejected, including files that only encrypt fonts. This page does not remove, bypass, or work around DRM. If your book is locked, use a copy you are allowed to read without DRM. For a paginated PDF instead of plain text, use EPUB to PDF. To extract text from a PDF, use PDF to Text.
Frequently asked questions
Is the file uploaded?
No. Unpacking and text extraction all run in this tab.
Why was my EPUB rejected?
If the file contains META-INF/encryption.xml, it is treated as DRM-protected and is not converted. Password-protected ZIP archives are also rejected. Make sure the file is an unencrypted .epub.
How is this different from EPUB to PDF?
EPUB to PDF lays the book out as pages in a PDF. This page writes a plain text file with no typography or images.
Will chapter titles stay in the TXT file?
Heading text that appears in the spine documents is kept as plain text. Visual styling is not kept.
Related tools
All toolsTXT to EPUB
Pack plain text into an EPUB ebook in your browser.
EPUB to PDF Converter
Turn DRM-free EPUB e-books into printable PDFs.
Word to TXT
Extract plain text from a Word .docx file in your browser.
PDF to Text Converter
Extract the text from any text-based PDF and copy or save it as TXT.