FB2 — FictionBook E-book
A 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.
<?xml version="1.0" encoding="UTF-8"?>
<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink">
<description>
<title-info>
<genre>sci_computers</genre>
<author><first-name>Novus</first-name><last-name>Examples</last-name></author>
<book-title>The Novus Example Reader</book-title>
<lang>en</lang>
</title-info>
<document-info>
<author><nickname>novus</nickname></author>
<date value="2026-01-01">2026</date>
<id>novus-fb2-0001</id>
<version>1.0</version>
</document-info>
</description>
<body>
<title><p>The Novus Example Reader</p></title>
<section><title><p>Chapter 1. On the Purpose of an Example</p></title><p>An example is a promise kept small. It shows, in the least space it can, exactly what a larger thing would do, so that anyone can check their understanding before committing to the real work.</p><p>A good example hides nothing. It states its shape, its size, and its intent, and it behaves the same way every time you open it. That reliability is the whole point: you are testing your tools against a known quantity, not a mystery.</p></section>
<section><title><p>Chapter 2. Formats and Their Shapes</p></title><p>Every file format is a small agreement about where things go. Some keep their text in plain view; others fold it into compressed containers or binary tables. None of that changes the words a reader finally sees.</p><p>This book is one such agreement. It is a package of chapters, a stylesheet, a cover, and a table of contents, zipped together and labelled so a reader knows what to do with each part. Take it apart and you will find nothing surprising inside — only the pieces named in its manifest.</p></section>
<section><title><p>Chapter 3. A Note to the Reader</p></title><p>You are free to use this file for any purpose: to test a reader, a converter, or a parser, or simply to confirm that a chapter renders the way you expected.</p><p>When you are done, you will know a little more about how e-books are built, and you will have a dependable fixture to return to. That is all an example ever hopes to be.</p></section>
</body>
</FictionBook>
Specifications
- Format
- FictionBook 2.0
- Encoding
- UTF-8
- Chapters
- 3
- Structure
- single self-contained XML
- Title
- The Novus Example Reader
What is a .fb2 file?
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 this file
Use an example FB2 to test XML e-book parsing, embedded-image extraction, metadata handling, and converters between FB2 and EPUB.
Related files
- azw3AZW3 — Kindle KF8 E-bookThe valid EPUB converted to AZW3 (Kindle KF8) with Calibre — the modern Kindle format. For testing AZW3 readers and EPUB→AZW3 conversion.
- cbzCBZ — Comic Book ArchiveA CBZ comic archive — a ZIP of sequentially named JPEG pages, the standard container for digital comics. Built from generated pages; for testing comic readers and CBZ→PDF conversion.
- epubEPUB — Intentionally Invalid (bad OCF mimetype)An intentionally invalid EPUB: identical to the valid twin except its OCF mimetype entry is compressed and mislabelled as application/zip — a real EPUB spec violation. For testing how readers and validators handle a malformed container. Clearly labelled; harmless content.
- epubEPUB 3 — Valid E-bookA valid EPUB 3 e-book with a cover image, an EPUB navigation document, styled chapters, and a correctly stored OCF mimetype. Original content, for testing EPUB readers and EPUB→other conversion.
- mobiMOBI — Kindle E-bookThe valid EPUB converted to MOBI (Mobipocket) with Calibre — the classic Kindle format. For testing MOBI readers and EPUB→MOBI conversion.
- png16-bit Grayscale PNG (deep colour)A 16-bit (deep-colour) grayscale PNG holding a smooth 0–65535 gradient — for testing high-bit-depth support and spotting banding when a tool truncates to 8-bit.
Generated by generation/ebooks.py. Free for any use, no attribution required — license.