Convert FB2 to INI

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

FB2 vs INI Format Comparison

Aspect FB2 (Source Format) INI (Target Format)
Format Overview
FB2
FictionBook 2.0

XML-based ebook format developed in Russia. Designed specifically for fiction and literature with rich metadata support. Extremely popular in Eastern Europe and CIS countries. Stores complete book structure including chapters, annotations, and cover images in a single XML file.

Ebook Format XML-Based
INI
Initialization File

Simple plain text configuration file format consisting of sections, keys, and values. Originally used by Microsoft Windows for system and application settings. Now widely used across platforms for configuration management. Human-readable and easy to parse.

Configuration Plain Text
Technical Specifications
Structure: XML document
Encoding: UTF-8
Format: Text-based XML
Compression: Optional (ZIP as .fb2.zip)
Extensions: .fb2, .fb2.zip
Structure: Key-value pairs in sections
Encoding: ASCII/UTF-8
Format: Plain text
Compression: None
Extensions: .ini, .cfg, .conf
Syntax Examples

FB2 uses XML structure:

<FictionBook>
  <description>
    <title-info>
      <book-title>My Book</book-title>
      <author>John Doe</author>
    </title-info>
  </description>
  <body>
    <section>
      <title>Chapter 1</title>
      <p>Text content...</p>
    </section>
  </body>
</FictionBook>

INI uses simple key-value pairs:

[metadata]
title = My Book
author = John Doe

[chapter_1]
title = Chapter 1
content = Text content...

[settings]
encoding = UTF-8
version = 2.0
Content Support
  • Rich book metadata (author, title, genre)
  • Cover images (embedded Base64)
  • Chapters and sections
  • Annotations and epigraphs
  • Footnotes and comments
  • Poems and citations
  • Tables (basic)
  • Internal links
  • Multiple bodies (main + notes)
  • Sections (enclosed in brackets)
  • Key-value pairs (key = value)
  • Comments (starting with ; or #)
  • String values
  • Numeric values
  • Boolean values (true/false)
  • Simple lists (comma-separated)
  • Flat hierarchy (no deep nesting)
Advantages
  • Excellent for fiction/literature
  • Rich metadata support
  • Single file contains everything
  • Widely supported by ebook readers
  • Free and open format
  • Good compression ratio (.fb2.zip)
  • Extremely simple and readable
  • Universal platform support
  • Easy to edit manually
  • No special parser needed
  • Lightweight and fast
  • Standard for configuration
  • Language-agnostic
Disadvantages
  • Limited outside Eastern Europe
  • Not supported by Amazon Kindle
  • Complex XML structure
  • Not ideal for technical docs
  • Manual editing is difficult
  • No data type enforcement
  • Limited nesting support
  • No standardized specification
  • Not suitable for complex data
  • No arrays or objects
  • Encoding issues possible
Common Uses
  • Fiction and literature ebooks
  • Digital libraries (Flibusta, etc.)
  • Ebook distribution in CIS
  • Personal ebook collections
  • Ebook reader apps
  • Application configuration
  • System settings (Windows, Linux)
  • Software preferences
  • Database connections
  • Game settings
  • Build configurations
Best For
  • Reading fiction on devices
  • Ebook library management
  • Sharing books in CIS region
  • Structured fiction content
  • Configuration files
  • Simple data storage
  • User preferences
  • Legacy system compatibility
Version History
Introduced: 2004 (Russia)
Current Version: FB2.1
Status: Stable, widely used
Evolution: FB3 in development
Introduced: 1980s (Microsoft)
Current Version: No versioning
Status: Stable standard
Evolution: Unchanged since creation
Software Support
Calibre: Full support
FBReader: Native format
Cool Reader: Full support
Other: Moon+ Reader, AlReader
Windows: Native support
Python: configparser module
PHP: parse_ini_file()
Other: Nearly all languages

Why Convert FB2 to INI?

Converting FB2 ebooks to INI configuration format is useful when you need to extract metadata and text content into a simple, structured format for data processing, automation scripts, or custom applications. INI files are extremely easy to parse and work with across virtually all programming languages and platforms.

FB2 (FictionBook 2) is an XML-based ebook format popular in Russia and Eastern Europe. While excellent for reading fiction with rich formatting, FB2's XML structure can be overkill for simple data extraction tasks. Converting to INI format strips away the complexity, leaving you with clean key-value pairs organized in sections.

INI files have been the de facto standard for configuration files since the 1980s. Originally introduced by Microsoft for Windows applications, the INI format has proven so practical that it's now used across all platforms. The simple section-based structure with key-value pairs makes it ideal for storing application settings, metadata, and simple datasets.

Key Benefits of Converting FB2 to INI:

  • Simplicity: Plain text format readable by humans and machines
  • Universal Support: Parse INI files in any programming language
  • Metadata Extraction: Book info organized in clear sections
  • Easy Editing: Modify values in any text editor
  • Lightweight: Minimal file size and processing overhead
  • Platform-Independent: Works on Windows, Linux, macOS
  • Configuration Ready: Use extracted data in applications

Practical Examples

Example 1: Metadata Extraction

Input FB2 file (book.fb2):

<title-info>
  <book-title>The Great Adventure</book-title>
  <author>
    <first-name>John</first-name>
    <last-name>Smith</last-name>
  </author>
  <genre>science_fiction</genre>
  <date>2024</date>
</title-info>

Output INI file (book.ini):

[metadata]
title = The Great Adventure
author_first = John
author_last = Smith
author_full = John Smith
genre = science_fiction
date = 2024
format = FictionBook 2.0

Example 2: Chapter Structure

Input FB2 sections:

<section>
  <title>Chapter 1: The Beginning</title>
  <p>It was a dark and stormy night.</p>
</section>
<section>
  <title>Chapter 2: The Journey</title>
  <p>The adventure continues...</p>
</section>

Output INI structure:

[chapter_1]
title = Chapter 1: The Beginning
content = It was a dark and stormy night.

[chapter_2]
title = Chapter 2: The Journey
content = The adventure continues...

Example 3: Configuration Use Case

Input FB2 metadata:

<annotation>
  <p>An epic tale of adventure</p>
</annotation>
<lang>en</lang>
<sequence name="Series Name" number="1"/>

Output INI for application config:

[book_info]
description = An epic tale of adventure
language = en
series = Series Name
series_number = 1

[settings]
encoding = UTF-8
source_format = fb2

Frequently Asked Questions (FAQ)

Q: What is FB2 format?

A: FB2 (FictionBook 2) is an XML-based ebook format created in Russia in 2004. It's designed for storing fiction with rich metadata including author info, genres, cover images, and structured content. FB2 is extremely popular in Eastern Europe and CIS countries, supported by readers like FBReader, Cool Reader, and Calibre.

Q: What is INI format?

A: INI (Initialization file) is a simple configuration file format consisting of sections (in brackets) and key-value pairs. Originally used by Windows for system settings, it's now a universal format for configuration files across all platforms. INI files are human-readable plain text.

Q: What data is preserved during conversion?

A: The conversion extracts book metadata (title, author, date, genre), chapter titles, and text content. These are organized into INI sections with key-value pairs. Complex formatting, images, and rich text styling are simplified or removed since INI is a plain text format.

Q: What happens to images in FB2?

A: Images cannot be stored directly in INI files. During conversion, image references may be noted in the INI file (e.g., "cover_image = image1.jpg"), but the actual image data is not included. INI is designed for text-based configuration data only.

Q: How can I use the resulting INI file?

A: INI files can be parsed in virtually any programming language. Python has configparser, PHP has parse_ini_file(), Java has Properties class, etc. You can use the extracted metadata for cataloging, database import, automation scripts, or custom applications.

Q: Can I convert INI back to FB2?

A: While technically possible, it's not practical. INI files lack the rich structure and formatting of FB2. You would lose all XML structure, images, and advanced formatting. The conversion is designed for data extraction, not round-trip conversion.

Q: What tools can read INI files?

A: Any text editor can read INI files (Notepad, VS Code, Sublime Text, etc.). For programmatic access, every major programming language has built-in or standard library support for parsing INI files. No special software is required.

Q: Is the conversion lossy?

A: Yes. Converting from FB2 (rich structured ebook) to INI (simple configuration format) is inherently lossy. You lose formatting, images, complex structure, and styling. The conversion is meant for extracting text and metadata, not preserving the complete ebook experience.