05 / Extract · EPUB → TXT

EPUB to TXT converter

Just the words you need.

Extract text from an EPUB into one UTF-8 TXT file. Select chapters, choose whether to insert chapter headings, and inspect the preview before downloading. Use the result for searching, editing or comparing a DRM-free book when you need its words rather than its typography, pictures or page design.

  • DRM-free EPUB 2 or 3, up to 100 MB
  • No upload: the book stays in this tab
  • One UTF-8 .txt, not one per chapter
All tools
Opening your workspace…

At a glance

EPUB to TXT quick specs

Verified
Input
DRM-free EPUB 2 & EPUB 3 (.epub)
Output
Single UTF-8 .txt file with chapter headings
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
Drops styling and images; outputs one combined .txt file, not one per chapter

From file to finished

How to extract plain text from an EPUB

  1. Drop an .epub on the page or press Choose an EPUB; Try a sample opens the bundled four-chapter book without picking a file. The chooser offers only .epub files, and the page rejects a file that is not an EPUB or is over 100 MB.

  2. Wait for the book panel to show the title, author, chapter count and file size. The chapter list appears with every linear chapter checked; a chapter marked non-linear in the spine starts unchecked.

  3. Use All, None or the Filter chapters box to narrow the list, then tick the chapters you want. The count below the list reads “N of M selected”; filtering hides rows but leaves their selection unchanged.

  4. Leave Include chapter headings checked to insert each chapter title, or clear it to keep only text already inside the chapter. Any change here clears an earlier preview and disables Download TXT.

  5. Press Extract text, read the preview and the “N chapters · N words · size UTF-8 text” line, then press Download TXT. The file is named after the book title and saves as one .txt.

Formats and inputs

Supported EPUB formats and inputs

EPUB packages chapters, styles and resources; TXT contains characters and line breaks. EPUB 2 and 3 use different navigation conventions, but the spine determines the reading order used here. Reflowable books usually provide extractable text; image-only pages do not. The output is UTF-8 regardless of your computer’s default encoding, and tables become lines rather than spreadsheet cells.

InputSupportWhat to expect
A DRM-free EPUB 2 or 3 bookBest fitThe normal case: a ZIP with container.xml and an OPF spine. Chapters are listed and extracted in spine order.
A book with footnotes, tables or rubyWorksFootnotes stay inline where their aside appears, tables become tab-separated cells, and ruby base text runs into its annotation. Expect cleanup, not loss of the main words.
A fixed-layout comic or picture bookPartialAny HTML chapter with a text layer is extracted, but images and panel layout are dropped. A book whose pages are only images yields nothing to read.
A scanned, image-only EPUBNot supportedThere is no text layer and no OCR. With headings off, extraction ends with the image-only message; with headings on, you may get chapter titles alone.
A DRM-protected or encrypted EPUBNot supportedReading content protected by encryption is refused when the book opens. Font obfuscation is tolerated, but the tool does not remove DRM.
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.
An EPUB over 100 MBNot supportedThe picker stops it before reading. The opener also enforces 250 MB expanded, 64 MB per entry and 10,000 entries for smaller files.
An EPUB 3 book with a nav documentBest fitChapter labels come from the navigation document when its links match chapter files, otherwise from the first h1 or h2, the document title, then a numbered fallback.

What it can do

What EPUB to TXT can do

See every chapter before you extract

The sidebar lists every HTML chapter with a checkbox, a running “N of M selected” count, All and None buttons, and a Filter chapters box that matches titles as you type. Chapters marked linear=“no” in the spine start unchecked. The filter hides rows but does not change the selection, so check the count before you press Extract text. A cover often appears as a chapter with no words.

Keep the inserted chapter label, or drop it

Include chapter headings is checked by default. For each selected chapter, the tool writes the chapter title first, but only when the chapter’s own first line is not already that title. A heading already present as an h1 in the XHTML therefore stays once, not twice. Clearing the box removes the inserted title; headings that are part of the chapter body still appear. The setting affects the next extraction only.

Follow the spine, not the file names

Text is read in the order of the EPUB spine, so chapter 10 does not jump ahead of chapter 2 because of its file name. Chapters the publisher marks as non-linear are left unchecked, but you can include them. Each selected chapter’s text is joined to the next with a line of 20 box-drawing characters between blank lines, which makes boundaries easy to find in a text editor.

Check the text before you download

Extract text builds the whole export before it shows anything. The preview is a read-only textarea, so you can select and copy but not edit it. Up to 300,000 characters are shown; a longer book ends with a note that the download still contains all selected text. Any change to a checkbox or the headings option clears the preview and disables Download TXT until you extract again.

Keep paragraphs, lists and table cells

Paragraphs keep a blank line between them, list items start with a bullet and a space, and table cells are separated by tab characters. Links keep their visible label but lose the URL. Footnote text stays where its aside sits in the chapter, and a ruby annotation runs directly after its base characters, so 漢字kanji arrives as one string. Images, including their alt text, contribute nothing.

Know what will not survive the trip

The page never pretends a layout survived. Fonts, colors, margins, page numbers, images and fixed page positioning are absent from the .txt. Text inside scripts, styles, navigation documents and hidden elements is skipped. DRM-protected reading content is refused before extraction, and a book over 100 MB is stopped at the picker. You get words and simple line structure, not a copy of the designed page.

After you run it

What you get from EPUB to TXT

The download is one plain text file, not a folder or a set of chapter files. These are the parts you can check before you rely on it.

What you getWhat it means
One .txt named after the booksafeFilename replaces characters such as / : * ? with hyphens, collapses spaces, trims to 120 characters and falls back to ebook. The extension is always .txt.
Chapters in spine orderEach selected chapter appears in the order the publisher declared, whatever its file name. A 20-character line between blank lines marks every boundary; an empty first chapter can leave a separator before any text.
An optional title before each chapterWith headings on, the chapter label is written unless the text already starts with it. With headings off, only headings that exist inside the XHTML remain.
A preview capped at 300,000 charactersA longer export shows its first 300,000 characters and a bracketed note. Download still writes the complete text; the cap is only on what the textarea displays.
A word, chapter and size lineThe status line reports selected chapters, segmented words and blob size, for example “4 chapters · 438 words · 2.5 KB UTF-8 text”. The chapter count includes selected chapters that produced no words.
A success message and an enabled download“Your text is ready. Review the preview, then download.” appears in the status bar, and Download TXT is enabled instead. If either is missing, extraction did not finish.
Plain text, not a validated ebookOutput is UTF-8 with LF line endings and no byte-order mark. It has no images, fonts, page numbers or EPUB structure, and it is not checked by EPUBCheck because it is not an EPUB.

When people reach for it

Common EPUB to TXT use cases

Text extraction suits tasks where the wording is the material: finding phrases, editing an authorized draft or comparing selected chapters. Keep the EPUB beside the result when illustrations, notes or table layout supply necessary context.

If you need to…What this tool does
Paste a chapter into a writing appThe selected chapter arrives as plain paragraphs, with list bullets and table tabs preserved. Paste it into Google Docs or Word, then apply that document’s styles instead of fighting the book’s fonts.
Build a corpus for search or analysisExport the chapters you need as one UTF-8 file, then index it with grep, a spreadsheet import or a script. The fixed separator lets you split chapters back apart without parsing XHTML.
Prepare text for translationA CAT tool accepts the .txt directly, and each chapter is separated by the same line. Headings can be included as context or left out so only body text reaches the translator.
Check whether an EPUB contains real textSelect every chapter and extract. If the result is only a few chapter labels, or you see the image-only message, the book is a scan and needs OCR before any text work; a text-based edition will save that step.
Keep a searchable copy of a manualA reference book with many short chapters becomes one file you can search on a phone or laptop without a reader app. The chapter labels remain as plain lines when the headings option is on.
Diff two editions of the same bookExport the same chapter range from both EPUBs with headings off, then compare the files in a diff tool. Equal separators and LF endings remove noise that would otherwise appear on every line.

Why use it

Why extract plain text from an EPUB

Plain text is useful when a book needs to enter another text-based workflow. Choosing what to extract first helps avoid carrying cover labels, front matter and unrelated chapters into searches, revisions or comparisons of a specific passage.

Make a text copy that ordinary tools can open

A TXT file can be searched, compared and edited without an ebook renderer. That makes it useful for checking terminology or preparing your own analysis when page styling would only add noise to the next tool.

Keep a focused working copy instead of the whole book

A selected group of chapters is easier to review than a complete extraction with appendices and front matter. You decide the working scope before downloading, reducing the cleanup required in the text editor afterward.

Remove layout artifacts from text comparisons

EPUB files contain markup and styling changes that can obscure a wording edit. A text-only copy narrows a comparison to readable content, while still requiring you to check tables and notes whose structure may be flattened.

Use a visible preview as an extraction check

A successful download does not prove that paragraphs or headings were interpreted as intended. Inspecting the preview lets you spot empty image-only chapters and repeated inserted labels before another process relies on the extracted text.

When it does not work

Why EPUB to TXT may fail

Most failures are decided before any text is written: the file gate, the archive check, the encryption check or the selection. Each message below comes from one of those branches, and the next step is usually a different input rather than a different button.

  • No chapter is selected

    The status reads “Select at least one chapter before extracting text.” Press All, or clear the filter and tick a row; the count must be above zero. Hiding every row with a filter does not clear the selection, so check the count rather than the visible list.

  • Every selected chapter has no words

    The exact message is “These chapters have no extractable text. Image-only books need a different source; this tool does not recognize text in pictures.” It appears when the assembled text is empty, which usually means an image-only book with Include chapter headings cleared.

  • The file is not an EPUB archive

    “The selected archive is not an EPUB book.” or “This archive has no EPUB container.xml. Choose an actual EPUB, not a renamed ZIP or PDF.” Rename the original back, or convert the PDF, MOBI or DOCX to EPUB first.

  • The book is encrypted

    “This book contains DRM-protected or unsupported encrypted content. These tools open DRM-free EPUBs only.” Font obfuscation is handled, but reading content is not decrypted. Use a DRM-free copy; the tool has no removal step.

  • The file is over 100 MB

    The picker says “This file is larger than 100 MB. Choose a smaller file to keep this browser responsive.” A text-only EPUB is rarely that large, so the images are the place to shrink; split the book or use a desktop tool for the oversized copy.

  • The EPUB has no supported HTML chapters

    “This EPUB has no supported HTML chapters in its reading order.” The spine may point only to images, PDFs or media types this reader does not treat as text. That book needs an OCR or a different source, not another extraction attempt.

  • The archive uses an unsupported structure

    Messages such as “Duplicate archive paths”, “unsafe archive path”, “ZIP64” or “Password-protected archives cannot be opened” mean the container is outside the reader’s rules. Re-export the book from its source, or open it in Calibre and save a clean EPUB.

Repair paths

How to fix common EPUB to TXT issues

Match the sentence in the status bar to a row. The first four rows are about the selection or the preview; the last three replace the input, because no setting can add text that the file does not contain.

What you seeLikely causeWhat to do
“Select at least one chapter…”The selection is empty, often because None was pressed or a filter hid every row.Press All, or clear Filter chapters and tick at least one chapter; confirm the “N of M selected” count is above zero, then extract again.
“These chapters have no extractable text…”The selected chapters produced no words, typically a scan or an image-only cover with headings off.Turn on Include chapter headings to see whether only labels exist, then use an OCR tool on the pages or find a text-based edition.
Download TXT is disabledA checkbox or the headings option changed after the last extraction, so the prepared blob was cleared.Press Extract text again and wait for “Your text is ready.” The button re-enables only after a new preview and blob exist.
The preview ends with a shortened noteThe export is longer than the 300,000-character preview limit.Download anyway; the blob holds the full text. If you need to inspect the end, split the chapter selection into two extractions.
“This book contains DRM-protected…”The EPUB declares encryption for reading content, not just fonts.Obtain a DRM-free EPUB, or read the book in the app that sold it. This tool will not decrypt it, and re-saving the same file will not help.
“This file is larger than 100 MB…”The chosen EPUB exceeds the picker’s byte limit.Remove or downscale images in an EPUB editor, split the book, or use Calibre desktop on the large file. A text-only export needs far less space.
Words are missing where an image sitsThe text was never in the EPUB as characters; pictures and their alt text are skipped.Run OCR on the page images and rebuild the EPUB, or copy the passage from a text-based edition. Extraction cannot recover pixels.

Plain-language notes

Key EPUB text extraction terms explained

The terms below decide what gets read, where a chapter starts and what the download can contain. They are the words that change an input or a result on this page.

Spine

The ordered list of content documents in the EPUB package, the sequence a reading system follows. This tool extracts in spine order, not in ZIP or file-name order, so chapter 2 stays before chapter 10 even when their file names sort differently.

Linear and non-linear items

A spine item marked linear=“no” is a side path such as a footnote page or an answer key. The chapter list leaves those unchecked by default, but you can tick them; extraction then places them at their spine position rather than at the end.

Container and package document

container.xml points to the OPF package, which lists metadata, manifest items and the spine. A ZIP without these files is not an EPUB to this reader, which is why a renamed PDF or a plain ZIP stops at the archive check.

DRM and encryption.xml

DRM is encryption that controls reading, described in META-INF/encryption.xml. The reader tolerates the two font-obfuscation algorithms for font files only; any encrypted chapter or other reading resource is refused before the chapter list appears.

UTF-8

The character encoding of the XHTML and of the downloaded .txt. The file is decoded with a UTF-8 decoder and written without a byte-order mark, so accented letters such as é survive. Bytes in another encoding arrive as replacement characters, and this tool has no encoding picker.

Inserted chapter heading

The title line the tool can add before a chapter, taken from the navigation document, the first heading or the document title. It is skipped when the extracted text already begins with the same words, which prevents a duplicated h1. The Include chapter headings box controls this insertion, not the headings inside the file.

Preview cap

The preview textarea shows at most 300,000 characters. A longer export ends with “[Preview shortened. The download contains all selected text.]” The downloaded blob is not truncated, so the cap affects inspection only.

Ruby annotation

A ruby element places a reading gloss above base characters, common in Japanese and Chinese books. The extractor has no special rule for it, so base text and annotation are concatenated in reading order, for example 漢字kanji, and you may need to separate them by hand.

OCR

Optical character recognition turns page images into characters. This tool does not run OCR, so a scanned EPUB with no text layer yields no words; the image-only message is the signal to use an OCR program before returning.

TXT is not CSV

A plain-text table is a series of lines, not a guaranteed set of spreadsheet columns. Use a dedicated table-extraction workflow if row boundaries and cell relationships must remain machine-readable after the conversion.

Other ways to do it

EPUB to TXT vs. alternatives

A different path is better when you need batch output, a visual book, or words from pages that are only pictures. These are the real trade-offs, not a claim that this tool replaces a desktop converter.

OptionBetter whenTrade-off
Calibre desktopYou have many books, need metadata or covers, or want a queue that runs unattended.Desktop conversion offers more settings and library integration. Review heading, table and note handling in its output just as you would for any text extraction.
Pandoc or ebook-convertYou want a repeatable command with a custom template, filters or batch scripting.You install and maintain a toolchain, and the plain-text output still needs a check for footnote and table order.
An OCR program such as ocrmypdf or ABBYYThe EPUB or PDF pages are scans and contain no text layer.OCR introduces recognition errors and a review step. Prepare a text-bearing source or extract recognized text directly, depending on the tool and intended output.
Read the EPUB and copy passagesYou need one paragraph, not a file, and the book is already open in a reader.Useful for a few quotations, but copying a whole chapter requires manual selection and checking. Save your collected passages explicitly if you need a reusable file.
EPUB to MarkdownYou want headings, links and emphasis preserved as Markdown instead of unformatted text.Markdown adds syntax that may need cleanup in a plain-text workflow, and the output is still not the designed book.

Your files and this tool

Privacy, accuracy and EPUB to TXT 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 chosen EPUB is read through the browser’s File API, unzipped and parsed in memory. No request carries the file or the extracted text to a server, and the download is a blob created in the same tab.
  • The tool saves nothing to localStorage or IndexedDB. Closing or reloading the tab discards the book, the chapter selection and the prepared text, 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, and Try a sample fetches a sample EPUB from this site. Those requests contain no part of your book; the sample request happens only when you press that button.
  • Extraction is limited by browser memory as well as the 100 MB file gate. A very large illustrated book may be refused or exhaust the tab even when it passes the byte check; nothing is uploaded as a fallback.
  • The .txt lands in your downloads folder, outside the browser. It is a normal file that other apps can read, so treat it like any other copy of the book. The tool does not add a watermark, a password or a tracking identifier.
  • Accuracy has a boundary: this is a text extractor, not EPUBCheck, an OCR engine or a DRM removal tool. It reports the words it found and the errors it hit; it does not certify the EPUB or reconstruct missing content.

A little more detail

Frequently asked questions about EPUB to TXT

Does the output keep chapter titles?

Yes, by default. Include chapter headings is checked, so each chapter title is written before its text unless the chapter already begins with that same line. The check prevents a duplicated h1; it does not remove headings that are part of the XHTML. Clear the box if you want only body text, but remember that chapter files which start with their own heading will still show it.

Can I extract just one chapter?

Yes. Press None, then tick the chapter you want; or type part of its title in Filter chapters and tick it. The count below the list must read “1 of N selected”. Press Extract text and the single chapter is written to one .txt. Filtering only hides rows, so a hidden chapter that remains ticked is still included in the export.

Why is Download TXT disabled after I change a checkbox?

Changing a chapter box, pressing All or None, or toggling Include chapter headings clears the prepared text and the preview. Download TXT then has nothing to save, so it is disabled until Extract text runs again. The chapter filter does not invalidate the export; it only changes which rows are visible. Re-extract after any selection change.

Why do paragraph breaks or table columns differ from the reading app?

A reading app lays out chapter markup with styles; a TXT file has only characters and line breaks. Extraction must decide how paragraphs, list items and cells become lines, so visual columns and spacing cannot be preserved reliably. Use Markdown when textual structure matters, and keep the EPUB for tables or diagrams whose meaning depends on their original arrangement.

What happens to images, tables and footnotes?

Images are skipped completely, including their alt text, so a sentence that depended on a picture may become incomplete. Table cells keep their words and are separated by tab characters, with rows on separate lines. Footnote text stays inline where the aside appears, and ruby base text and annotation run together, so both need cleanup in an editor.

Can it open MOBI, AZW3 or PDF files?

No. The picker accepts .epub files, and the opener expects an EPUB ZIP with container.xml and an OPF package. A PDF or Kindle file renamed to .epub fails the archive check; a plain ZIP does too. Convert the book to EPUB in Calibre or another converter, then open the converted file here.

Does this tool remove DRM?

No. It opens DRM-free EPUBs only. Font obfuscation is tolerated for embedded fonts, but encrypted reading content is refused with a message naming DRM. Re-saving the same protected file, changing its extension or opening it in another browser will not change that. Use a DRM-free edition or the app that supplied the book.

How can I tell the extraction worked?

The status reads “Your text is ready. Review the preview, then download.” and the toolbar reports chapters, words and size, such as “4 chapters · 438 words · 2.5 KB UTF-8 text”. The preview should contain readable sentences, not only headings. Download TXT becomes clickable, and the saved file’s size should round to the reported figure.

Can it read a scanned or image-only EPUB?

No, because there are no characters to extract. With headings off, you see the image-only message. With headings on, a chapter may still contribute its title even when its body is a picture, so a short result made only of labels is a sign of a scan. Run OCR on the page images or find a text-based edition before using this page again.