fb2
What is a .fb2 file?
application/x-fictionbook+xml
FB2 (FictionBook) is an XML-based e-book format that stores an entire book, including metadata and embedded images, in a single well-structured XML file. It emphasizes semantic markup of book structure over fixed presentation. It is especially popular in the Russian-speaking e-book community.
How to use a .fb2 file
Use an example FB2 to test XML e-book parsing, embedded-image extraction, metadata handling, and converters between FB2 and EPUB.
Download example .fb2 files
- FB2 — FictionBook E-bookA FictionBook (FB2) e-book — a single self-contained XML file with full title and document metadata and three chapters. Popular in e-reader ecosystems; for testing FB2 parsers and FB2→EPUB conversion.
- FictionBook — Short SAMPLE (FB2)A minimal FictionBook (.fb2) SAMPLE with one section — for FB2/XML ebook importers.
- FB2 - Converter Twin of the EPUB PairThe FictionBook build of the same two chapters: one self-contained XML file with a description block, no container and no manifest. The third member of the conversion set, and the one that has to invent an equivalent for everything the EPUB package documents declare.
- FB2 - Cover Embedded as a base64 binary ElementA FictionBook whose cover is a base64-encoded PNG in a binary element at the foot of the file, wired to a coverpage in the description by xlink id. For testing FB2 image extraction and the converters that have to turn that blob back into a real file.
- FB2 - Three-Level Nested Sections with a Notes BodyA FictionBook nested three sections deep, with prose directly inside an outer section, an epigraph, a cite block, and a footnote linking into a second body named notes. The FB2 equivalents of a multi-level table of contents and non-linear back matter, in one file.
- FB2 - Declared windows-1251 Encoding (Cyrillic)A Cyrillic FictionBook stored in windows-1251 and declaring that encoding in its XML declaration - the single-byte legacy encoding a large share of real FB2 files still use. For testing importers that assume every XML file is UTF-8 and produce mojibake instead of an error.