1

I have loads of EPUBS from which I need to extract plain text, without any formatting or other information.

In order to creat wordlists, I got hold of many publications of a language in EPUB format. So I need to transform these to plain txt files, without any images or other formatting data.

closed as unclear what you're asking by RockPaperLizard Feb 12 at 20:46

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What OS shall the software run on? Any price limit? For cross-platform solution, take a look at Calibre, which can convert between many formats (including epub and txt). – Izzy Feb 11 at 21:17
  • 1
    Sorry, Izzy. I didn;t notice this comment before posting Calibre as an answer. Great minds think alike :-) It really is the best, though – Mawg Feb 12 at 12:55
  • 1
    @Mawg for punishment, I've upvoted your answer. I fully agree :) – Izzy Feb 14 at 20:18
  • Let's see if the OP agrees (accepts the answer, to help others in future). Btw, are you runing for moderator? – Mawg Feb 15 at 8:19
1

The best known (and IMO most full featured) eBook converter is Calibre.

This page says that

calibre supports the conversion of many input formats to many output formats. It can convert every input format in the following list, to every output format.

Input Formats: AZW, AZW3, AZW4, CBZ, CBR, CBC, CHM, DJVU, DOCX, EPUB, FB2, FBZ, HTML, HTMLZ, LIT, LRF, MOBI, ODT, PDF, PRC, PDB, PML, RB, RTF, SNB, TCR, TXT, TXTZ

Output Formats: AZW3, EPUB, DOCX, FB2, HTMLZ, OEB, LIT, LRF, MOBI, PDB, PMLZ, RB, PDF, RTF, SNB, TCR, TXT, TXTZ, ZIP

Calibre is stable (10 years already), free and runs on Windows, Linux & osx.

-1

I found a simple answer:

click on the file and change the extension from .epub to .zip. Extract the Zip-folder...inside you will find many xhtml files. open all of them with notepad++.

Now search for

<.*?>|</.*?>

and

replace with : \r\n (this for new line)

Through that you removed all the html tags

(keep regular expressions ticked --> follow her/him https://stackoverflow.com/questions/5807928/find-replace-regex-to-remove-html-tags)

now use the combine plug-in for notepad++, combine everything and you have one file with plain text

  • 1
    If the epub uses "highlighting" (e.g. <b><i><em>), the result will be a mess. – Izzy Feb 11 at 21:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.