Convert MediaWiki to FB2

Drag and drop files here or click to select.
Max file size 100mb.
Uploading progress:

MediaWiki vs FB2 Format Comparison

Aspect MediaWiki (Source Format) FB2 (Target Format)
Format Overview
MediaWiki
Wiki Markup Language

Lightweight markup language created by Magnus Manske and Lee Daniel Crocker for Wikipedia in 2002. Features intuitive syntax for headings, text formatting, hyperlinks, templates, and tables. Used by Wikipedia, Wiktionary, Wikimedia Commons, Fandom, and thousands of wikis globally.

Wiki Markup Wikipedia Standard
FB2
FictionBook 2

XML-based e-book format created by Dmitry Gribov in Russia. Extremely popular in Russian-speaking countries and Eastern Europe. Stores structured content with rich metadata, including author info, genres, annotations, and cover images. Content is fully described in XML, making it easily parseable and convertible.

XML-Based Eastern Europe
Technical Specifications
Structure: Plain text with wiki markup tags
Encoding: UTF-8
Format: Text-based markup language
Compression: None (plain text)
Extensions: .mediawiki, .wiki, .txt
Structure: XML document with defined schema
Encoding: UTF-8 / Windows-1251
Format: Open XML e-book format
Compression: None (often distributed as .fb2.zip)
Extensions: .fb2, .fb2.zip
Syntax Examples

MediaWiki uses wiki markup syntax:

== Chapter One ==
'''The journey''' began on a
''cold morning'' in December.

=== The Departure ===
* Pack belongings
* Board the train
* Say goodbye

[[Category:Fiction]]

FB2 uses structured XML:

<FictionBook>
 <body>
  <section>
   <title><p>Chapter One</p></title>
   <p><strong>The journey</strong>
   began on a <emphasis>cold
   morning</emphasis>.</p>
   <section>
    <title><p>The Departure</p></title>
   </section>
  </section>
 </body>
</FictionBook>
Content Support
  • Headings (== to ======)
  • Bold, italic, underline
  • Internal and external links
  • Templates and transclusions
  • Wiki tables
  • Ordered and unordered lists
  • Categories and namespaces
  • Images and media
  • References and citations
  • Mathematical formulas
  • Sections and subsections
  • Strong and emphasis formatting
  • Hyperlinks (internal and external)
  • Inline images (Base64 encoded)
  • Epigraphs and poems
  • Footnotes and comments
  • Rich metadata (author, genre, date)
  • Cover images
  • Annotations and summaries
Advantages
  • Easy to learn and write
  • Proven at Wikipedia scale
  • Strong collaborative features
  • Version history tracking
  • Powerful template system
  • Human-readable source
  • Excellent metadata support
  • Clean XML structure
  • Easy to parse and convert
  • Strong Cyrillic text support
  • Widely supported in Eastern Europe
  • Compact file sizes
  • Rich annotation capabilities
Disadvantages
  • Not a portable document format
  • Requires wiki software to render
  • Not readable on e-readers
  • Templates can be complex
  • No offline reading support
  • Limited support outside Eastern Europe
  • No CSS styling capability
  • Limited table support
  • No multimedia embedding
  • Less common than EPUB globally
  • Base64 images increase file size
Common Uses
  • Wikipedia articles
  • Corporate knowledge bases
  • Technical documentation
  • Fan wikis and community sites
  • Educational content creation
  • E-books in Russian-speaking markets
  • Digital libraries (Lib.rus.ec, Flibusta)
  • Fiction and non-fiction books
  • Eastern European e-reader content
  • Archival of literary works
  • Free e-book distribution
Best For
  • Collaborative wiki editing
  • Large-scale encyclopedias
  • Web-based documentation
  • Structured knowledge repositories
  • Russian-language e-books
  • Structured fiction/non-fiction
  • Digital library cataloging
  • Metadata-rich publications
Version History
Introduced: 2002 (Wikipedia/MediaWiki)
Current Version: MediaWiki 1.42 (2024)
Status: Actively developed
Evolution: Continuous updates since 2002
Introduced: 2004 (Dmitry Gribov)
Current Version: FictionBook 2.1
Status: Stable, widely used
Evolution: FB2 → FB2.1 (FB3 proposed)
Software Support
MediaWiki: Native support
Pandoc: Full read/write support
Editors: Any text editor
Other: Wikipedia, Fandom, wiki engines
FBReader: Native FB2 support
Calibre: Full read/write/convert
CoolReader: Full support
Other: Moon+ Reader, AlReader, PocketBook

Why Convert MediaWiki to FB2?

Converting MediaWiki markup to FB2 (FictionBook) format enables you to transform wiki-based content into structured e-books optimized for readers in Russian-speaking countries and Eastern Europe. The FB2 format's XML-based architecture provides excellent metadata support, clean document structure, and superior Cyrillic text handling that make it the preferred e-book format in this region.

MediaWiki syntax was designed for collaborative web editing, while FB2 was purpose-built for structured e-book reading. The conversion maps wiki headings to FB2 sections, transforms bold and italic formatting to strong and emphasis elements, and converts wiki links to FB2 hyperlinks. The resulting XML document includes rich metadata fields for author, title, genre, language, and publication details.

FB2's unique strengths include its ability to store complete book metadata, annotations, epigraphs, and poems as first-class elements in the document structure. When converting wiki content about literature, poetry, or cultural topics, these FB2 features provide a more semantically meaningful representation than generic e-book formats. The XML structure also makes FB2 files easily searchable and catalogable by digital library software.

For users distributing educational content, reference materials, or encyclopedic articles from wiki sources to Eastern European audiences, FB2 offers the best reading experience. Popular applications like FBReader, CoolReader, and PocketBook devices provide native FB2 support with customizable fonts, themes, and reading modes. The format's compact size and efficient structure make it ideal for mobile reading.

Key Benefits of Converting MediaWiki to FB2:

  • Rich Metadata: Author, genre, annotation, date, and cover image support
  • Clean XML: Well-structured, parseable document format
  • Cyrillic Excellence: Outstanding support for Russian and Slavic languages
  • Eastern European Standard: The preferred e-book format in the region
  • Compact Files: Efficient XML structure with optional ZIP compression
  • Wide Reader Support: FBReader, CoolReader, PocketBook, Moon+ Reader
  • Library Compatible: Easy cataloging and organization in digital libraries

Practical Examples

Example 1: Encyclopedia Article to E-Book

Input MediaWiki file (history.mediawiki):

== Russian Literature ==

'''Russian literature''' encompasses a rich
tradition spanning centuries.

=== Golden Age ===
The 19th century saw the rise of:
* '''Alexander Pushkin''' - ''Eugene Onegin''
* '''Leo Tolstoy''' - ''War and Peace''
* '''Fyodor Dostoevsky''' - ''Crime and Punishment''

[[Category:Literature]]
[[Category:Russia]]

Output FB2 file (history.fb2):

Structured FB2 e-book with:
✓ Title: "Russian Literature"
✓ Genre metadata from categories
✓ Sections for each heading level
✓ Strong/emphasis formatting
✓ Proper Cyrillic text encoding
✓ Ready for FBReader, CoolReader
✓ Compact XML structure

Example 2: Technical Wiki to Reference Book

Input MediaWiki file (programming.mediawiki):

== Python Programming ==

=== Data Types ===
Python supports several built-in types:

{| class="wikitable"
|-
! Type !! Example !! Description
|-
| int || 42 || Integer numbers
|-
| str || "hello" || Text strings
|-
| list || [1, 2, 3] || Ordered collections
|}

=== Functions ===
Define functions using '''def''':
 def greet(name):
     return f"Hello, {name}!"

Output FB2 file (programming.fb2):

Technical reference FB2:
✓ Structured chapters and sections
✓ Code examples preserved
✓ Table data converted to text
✓ Clean section hierarchy
✓ Annotation with summary
✓ Offline programming reference
✓ Mobile-friendly reading

Example 3: Wiki Collection to Anthology

Input MediaWiki file (poetry.mediawiki):

== Classic Poetry Collection ==

=== Sonnet 18 ===
''by William Shakespeare''

Shall I compare thee to a summer's day?
Thou art more lovely and more temperate.
Rough winds do shake the darling buds of May,
And summer's lease hath all too short a date.

=== The Road Not Taken ===
''by Robert Frost''

Two roads diverged in a yellow wood,
And sorry I could not travel both...

Output FB2 file (poetry.fb2):

Poetry anthology in FB2:
✓ FB2 <poem> elements for verses
✓ <epigraph> for attributions
✓ Section per poem
✓ Author metadata preserved
✓ Beautiful e-reader rendering
✓ Perfect for poetry collections
✓ Native FB2 literary features

Frequently Asked Questions (FAQ)

Q: What is FB2 format?

A: FB2 (FictionBook 2) is an XML-based e-book format created by Dmitry Gribov in Russia. It uses a structured XML schema to describe books with rich metadata including author, genre, annotation, cover image, and publication details. FB2 is the dominant e-book format in Russian-speaking countries and Eastern Europe, supported by popular readers like FBReader, CoolReader, and PocketBook devices.

Q: Why is FB2 popular in Russia and Eastern Europe?

A: FB2 was developed in Russia with excellent Cyrillic text support and became the standard for Russian-language e-book distribution. Large digital libraries like Lib.rus.ec and Flibusta use FB2 as their primary format. PocketBook e-readers (popular in Eastern Europe) have native FB2 support, and free readers like FBReader originated from the FB2 ecosystem. The format's open XML structure also enabled easy book sharing and cataloging.

Q: How are MediaWiki tables converted in FB2?

A: FB2 has limited native table support compared to HTML-based formats. Wiki tables are converted to structured text or simplified representations within FB2 sections. For simple tabular data, the content is preserved as formatted text. Complex tables with merged cells or extensive styling may be simplified to maintain readability across FB2 readers. Consider EPUB or HTML if table fidelity is critical.

Q: Can FB2 files be converted to other e-book formats?

A: Yes! FB2's clean XML structure makes it one of the easiest formats to convert. Calibre can convert FB2 to EPUB, MOBI, AZW3, PDF, and many other formats. This means converting MediaWiki to FB2 gives you a well-structured intermediate format that can be further converted to any other e-book format while preserving metadata and structure.

Q: Does FB2 support images from wiki pages?

A: Yes, FB2 supports images encoded as Base64 data within the XML file. Cover images and inline illustrations from wiki content are embedded directly in the FB2 document. This makes FB2 files self-contained, requiring no external files. However, Base64 encoding increases the image data size by approximately 33%, so very image-heavy documents may result in larger FB2 files.

Q: What metadata does FB2 preserve from MediaWiki?

A: FB2 has excellent metadata support. The conversion extracts the page title as the book title, categories become genre tags, and the document language is set appropriately. FB2 also supports author information, annotations (summaries), publication dates, cover images, and sequence (series) data. This rich metadata makes FB2 files well-organized in digital library applications.

Q: Can I read FB2 files on a Kindle or iPad?

A: Kindle and iPad do not natively support FB2, but you can use third-party apps. On iPad, FBReader is available from the App Store. For Kindle, convert FB2 to MOBI or AZW3 using Calibre. Alternatively, use our converter to create EPUB files instead, which are natively supported by both platforms. Android devices have the best FB2 support through FBReader, Moon+ Reader, and CoolReader.

Q: Is FB2 suitable for non-fiction wiki content?

A: Yes, FB2 works well for non-fiction content. Its section-based structure maps naturally to wiki headings, and the metadata fields support genre classification for non-fiction categories. However, FB2 was originally designed with fiction in mind (hence "FictionBook"), so it has special elements for poems, epigraphs, and citations that are particularly useful for literary content. For highly technical content with complex tables or formulas, EPUB3 may be a better choice.