FB2 to Text & Word

About FB2 to Text & Word

FB2 to Text & Word extracts the text of a FictionBook ebook so you can edit, quote, translate or analyze it. Drop in an .fb2 file or an .fb2.zip archive and choose the output: plain text (.txt) that opens anywhere, Markdown (.md) that keeps headings, lists and quotes in a readable form, or a Word document (.docx) with real headings, paragraphs and, if you like, the images from the book. You can pick exactly which chapters to include, add chapter titles, preview the result, copy it to the clipboard, or download it. Poems keep their line breaks, footnotes come along in a Notes chapter you can leave out, and the word count of the selection is shown as you go. Text in windows-1251 and KOI8-R is decoded correctly, and the output is always UTF-8, so Cyrillic text stays readable in any editor. Nothing is uploaded: the book is processed in your browser. For a print-ready copy use FB2 to PDF Converter, to read it use FB2 Reader, and to count pages of the result try Words to Pages Converter.

Getting clean text out of an FB2 book is harder than it looks, even though the format is XML. Opening the file in a text editor shows the markup, a description block full of metadata, and sometimes megabytes of base64 image data at the end, and older files are often not UTF-8 at all. A proper export has to walk the document structure instead: take the sections in reading order, turn titles into headings, join the paragraphs, keep the verse lines of poems on separate lines, and skip the binary image data. Plain text is the most portable result and suits search, translation tools and text analysis. Markdown keeps a little more structure, with headings marked by hash signs and quotes by a leading angle bracket, which makes it a good starting point for editing a book in a writing app or publishing it on the web. A Word document is the right choice when the text needs to be edited, commented or formatted by someone used to office software, because chapter titles become real Word headings that appear in the navigation pane. Footnotes need a decision of their own. FB2 keeps them in a separate notes body rather than inside the text, so this tool exports them as their own chapter. That keeps the main text clean, and you can leave the notes out with one click.

How to use FB2 to Text & Word

  1. Drop your .fb2 or .fb2.zip file into the box, or click to choose it.
  2. Choose TXT, Markdown or Word, pick chapters and decide whether to add chapter titles.
  3. Check the preview, then copy the text or download the file.

Frequently Asked Questions

How do I convert FB2 to TXT?
Drop the .fb2 or .fb2.zip file into the box above, keep Plain text selected, and click Download TXT. You can also copy the text to the clipboard from the preview. The file is saved as UTF-8, which every modern editor opens correctly.
Can I convert FB2 to a Word document?
Yes. Choose Word (.docx) as the output format. The document gets real Word headings for chapter titles, normal paragraphs for the text and, if Include images is on, the pictures from the book. It opens in Microsoft Word, Google Docs, LibreOffice and Pages.
Can I export only some chapters?
Yes. Click Choose chapters to see the list of parts and chapters with checkboxes. The preview, the word count and the download include only the chapters you selected.
Why is Cyrillic text unreadable when I open FB2 in a text editor, but fine here?
Many FB2 books are saved in windows-1251 or KOI8-R. A text editor that assumes UTF-8 shows such files as random symbols. This tool reads the encoding declared in the FB2 file, decodes the text with it and always writes the output in UTF-8.
What happens to footnotes and poems?
Poems keep each verse on its own line, with a blank line between stanzas. Footnotes are collected into a Notes chapter at the end, which you can untick in the chapter list if you only want the main text.
Is the book uploaded?
No. The text is extracted in your browser and the file never leaves your device.

Related Tools