How to use it
- Choose an .fb2 file or a zipped .fb2.zip.
- Check the title, author, chapter and picture counts.
- Press Download EPUB.
How it works
The FB2 file is read as XML (its encoding, often UTF-8 or Windows-1251, comes from the XML declaration). The book description gives the title, authors, language, annotation and cover. Each top-level section of the main body becomes an XHTML chapter; nested sections become smaller headings inside it. Pictures stored as base64 in the file are decoded to image files. The EPUB is then packed as a ZIP with the mimetype first, a package file, a navigation page and a toc.ncx.
Worked example
A novel with a body title, 24 top-level sections, a notes body and a JPEG cover gives an EPUB with a cover page, 25 chapters (24 plus Notes) and one image. A note mark like <a l:href="#n1" type="note">1</a> in chapter 3 becomes a superscript link to the note’s place in the Notes chapter.
Tips
- If the result shows no chapters, the FB2 has no sections; the whole text then becomes one chapter.
- To get just the text out of an FB2, use the EPUB to TXT converter, which reads FB2 too.
- Your own text or Markdown can become an EPUB with the text to EPUB converter.