This EPUB converter reads an EPUB e-book and saves its text as a CSV file, an XML file, an FB2 (FictionBook) file or plain text. Choose your book, pick the format and download the result. The converter keeps the title, the author and the chapters in reading order. It runs in your browser, so your book is never uploaded.
How to use the EPUB converter
- Choose your .epub file or drop it on the box.
- Pick the format: CSV, XML, FB2 or plain text.
- Check the title, author, chapters and word count in the summary.
- Download the converted file.
What an EPUB file is
Wikipedia describes EPUB as an e-book format with the extension .epub and the media type application/epub+zip. It is a ZIP archive of XHTML files. A META-INF folder holds container.xml, which points to the file that defines the contents of the book. The converter opens the archive, reads that package file for the title, the author, the language and the reading order, and then reads the text of each chapter in that order. Books that are protected with DRM cannot be read, and the converter tells you so.
CSV
The CSV file has one row for each chapter, with the columns Chapter, Title, File, Words and Text. The title is the first line of the chapter, shortened if it is long. The text of the chapter is in one cell, with line breaks turned into spaces. Fields that contain commas or double quotes are quoted, so spreadsheets read the file correctly, and the file starts with a byte order mark so accents display correctly in Excel.
XML
The XML file has a book element with the title, the author and the language, and a chapters element with one chapter element for each chapter. Each chapter has its number, file name and word count, a title and its paragraphs. Characters that have a meaning in XML are escaped.
FB2
Wikipedia describes FictionBook as an open XML-based e-book format that came from Russia, with the extensions .fb2, .fb2.zip and .fbz. A book is a single XML file, with any pictures embedded as base64 blocks. The converter writes a FictionBook 2.0 file, using the namespace of the schema published by Dmitry Gribov. The file has a description with the title information, which holds the genre, the author, the book title and the language, and the document information, which holds the author, a date, an ID and a version. The body has the book title and one section for each chapter, with the chapter title and its paragraphs. The genre is set to nonfiction, which is one of the values in the schema, so you may want to change it in an editor. Pictures are not carried over.
Plain text
The plain text option gives the whole book as one text file, with the title and the author at the top and the chapters one after another. It is the same text as our EPUB to Text converter.
What is kept and what is lost
The converter keeps the words. It drops pictures, covers, fonts, colors, tables of contents and links, because none of these fit in a CSV, XML or plain text file, and the FB2 file it writes holds text only. If you need to keep the pictures and the layout, convert the book with an e-book management program instead. The chapter titles are taken from the first line of each chapter file, so a book that does not start each file with a heading may show a sentence as the title.
Reading order
An EPUB lists its files in a reading order, called the spine, and the converter follows it. That is why the chapters come out in the order a reader would meet them, even if the files inside the archive are stored in another order. Files that the book marks as not part of the main reading flow are skipped. A chapter file with no text, such as a page that only holds a picture, is left out, so the number of chapters in the summary may be lower than the number of files in the archive.
Using the CSV for analysis
A CSV of chapters is handy if you want to count words per chapter, search the text in a spreadsheet or load a book into a database. The Words column counts the words in each chapter, and the total appears in the summary. For a closer look at the text, you can paste a chapter into our word counter. The XML file is a better fit if a program needs to read the book as structured data.
Large books
You can choose a book of up to 100 MB. Most of an EPUB is pictures and fonts, which the converter does not read, so even a large file converts quickly. The conversion happens on your device and nothing is sent anywhere, so you can use it for books you own without sharing them.
Common mistakes
- Choosing a book with DRM. Protected books cannot be converted.
- Expecting pictures in the FB2 file. Only text is written.
- Opening the CSV with the wrong encoding. The file has a byte order mark so Excel reads accents correctly.
- Expecting one chapter per heading. Chapters follow the book's files.
What next
Use this often? Add EPUB to CSV to your Home screen.
Frequently asked questions
What is an EPUB converter?
A tool that turns an EPUB e-book into another format. This one writes CSV, XML, FB2 and plain text.
What does the CSV contain?
One row per chapter, with the chapter number, title, file name, word count and text.
What is FB2?
FictionBook, an open XML-based e-book format. Its files end in .fb2, and ZIP versions in .fb2.zip or .fbz.
Are pictures kept?
No. The converter keeps the text, the title, the author and the chapter order.
Can it convert books with DRM?
No. Protected books can't be read, and the converter says so.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.