Fb2Kindle is a free, portable Windows tool that converts FictionBook (.fb2) e-books into Amazon Kindle formats (.mobi and .epub).
It converts single books or whole folders, can join a book series into one file, lets you restyle the result with your own CSS, and can send the finished book straight to your Kindle by email.
Fb2Kindle adds a menu to Windows Explorer, so you can convert a book or a whole folder with a right click:
Input and output
- Reads
.fb2books and.ziparchives that contain.fb2books. - Creates
.mobi(KF8, for Kindle devices and apps) or.epub(for Send to Kindle and most other readers). - Builds a clickable table of contents from the book's chapters, plus a separate contents page (you can turn it off).
- Adds a title page with author, title, series, annotation and publisher, and uses the book's cover as the Kindle cover.
- Turns footnote references into links to the notes.
Batch processing
- Converts one file, every file that matches a mask (for example
*.fb2), or all books in a folder and its subfolders. - Joins all books in a folder into a single e-book, which is handy for a book series. Books are added in file name order, and each one gets its own section in the table of contents.
- Can delete the source files once the conversion succeeds.
Look and layout
- Uses a built-in stylesheet that you can replace with your own CSS, including embedded fonts.
- Optional drop caps: an enlarged first letter in the first paragraph of each chapter.
- Can add the series name and number to the book title.
Images
- Shrinks large images to fit the Kindle screen (1072×1448 by default) to make the file smaller.
- Can convert images to grayscale or leave them out altogether (the cover is always kept).
- Can shrink the images inside your original
.fb2files to save disk space, without converting anything.
Delivery and integration
- Sends the finished book to your Kindle email address (Send to Kindle) through any SMTP server, for example Gmail.
- Adds right-click menu items to Windows Explorer for
.fb2files and folders. No administrator rights are needed. - Remembers your favorite options between runs.
- Can update itself to the latest release.
- Windows 7 SP1 or later with .NET Framework 4.8 (already included in current versions of Windows 10 and 11).
- No installation: Fb2Kindle is a single portable
.exe. The Amazon KindleGen tool it needs for.mobioutput is built in.
Download Fb2Kindle.exe from the latest release. All versions are on the releases page.
- Put
Fb2Kindle.exeinto any folder, for exampleC:\Tools\Fb2Kindle. - Double-click it. The app shows its help and asks two questions:
- Integrate with Windows Explorer? Press
Enterto add the right-click menu (recommended). - Process all local files? Press
Enterto convert every.fb2book in the app folder and its subfolders, or any other key to exit.
- Integrate with Windows Explorer? Press
After that, you will usually use the Explorer menu.
Right-click an .fb2 file and open the Fb2Kindle submenu:
- Convert to .mobi: creates a
.mobibook next to the source file (large images are shrunk). - Convert to .epub: creates an
.epubbook next to the source file. - Optimize source: shrinks the images inside the
.fb2file itself. For a.ziparchive, every.fb2inside it is optimized and the archive is rewritten.
The same submenu is available for .zip archives.
Right-click a folder to see the same items. They process every .fb2 file in that folder and its subfolders, joining the books of each folder into one e-book. This is the easiest way to convert a series. Optimize source for a folder also processes .zip archives, each file separately.
You can also drag and drop an .fb2 file onto Fb2Kindle.exe to convert it to .mobi with default settings.
To add or remove the menu later, run:
Fb2Kindle.exe -register
Fb2Kindle.exe -unregister
The new book is saved next to the source file with the same name, for example Book.fb2 becomes Book.mobi. Existing files are never overwritten: if Book.mobi already exists, the new file is named Book(v1).mobi, then Book(v2).mobi, and so on. For joined books, the output is named after the first file in the folder.
Fb2Kindle.exe <path> [options]
<path> can be placed anywhere among the options. It can be:
- a single file:
C:\Books\Book.fb2orC:\Books\Book.zip - a mask:
C:\Books\*.fb2orC:\Books\*.zip - a folder:
C:\BooksorC:\Books\(same asC:\Books\*.fb2)
A file name or mask without a folder (for example Book.fb2 or *.fb2) is looked up in the current folder. Paths with spaces must be in quotes.
| Option | Description |
|---|---|
-epub |
Create .epub instead of .mobi. |
-a |
Process all .fb2 books in the app folder (use instead of <path>). |
-r |
Also process all subfolders. |
-j |
Join all books of each folder into one e-book (for a book series). |
-css <file> |
Use your own stylesheet instead of the built-in one. If the file is not found as given, it is looked up in the app folder. |
-mailto <address> |
Send the book to this email address, usually your [email protected] address. See Send to Kindle by email. |
| Option | Description |
|---|---|
-s |
Add the series name and number to the book title, for example Series 3 Title. |
-dc |
Drop caps: enlarge the first letter of the first paragraph in each chapter. |
-ntoc |
Do not add a separate table of contents page. |
-nch |
Do not split the book into nested chapters: all headings go into a single flat list. |
-c or -c1, -c2 |
Compress the .mobi file (smaller but slower; -c2 is the strongest). |
-optimize |
Shrink large images in the result to fit 1072×1448. |
-ni |
No images (only the cover is kept). |
-g |
Convert images to grayscale. |
-jpeg |
JPEG, PNG and GIF images are kept as they are; other formats (for example BMP or TIFF) are converted to JPEG instead of PNG. |
-d |
Delete the source files after a successful conversion. Files that could not be read, and archives with at least one unreadable book, are kept. |
-u or -update |
Check for a new version after the conversion and update the app. |
To turn off a saved option for one run, add - at the end of it: -d-, -dc-, -c- and so on.
| Option | Description |
|---|---|
-optimizeSource |
Shrink the images inside the source .fb2 files to 1072×1448 instead of converting them. An image is replaced only if the result is smaller; the file keeps its encoding and line endings. For a .zip archive, the books inside it are optimized and the archive is rewritten. |
-save |
Save the book options used in this run to Fb2Kindle.json next to the app. They are applied automatically on every next run. |
-o |
Hide the detailed KindleGen output. |
-w |
Wait for a key press before closing the window. |
Fb2Kindle can email the book to your Kindle. Amazon accepts only EPUB by email, so with -mailto the book is always created as .epub.
-
In your Amazon account, open Manage Your Content and Devices → Preferences → Personal Document Settings. Find your Kindle email address and add the sender address to the Approved Personal Document E-mail List.
-
Run Fb2Kindle once with
-saveto createFb2Kindle.jsonnext to the app. Open the file in a text editor and fill in the SMTP settings:"SmtpServer": "smtp.gmail.com", "SmtpPort": 587, "SmtpLogin": "[email protected]", "SmtpPassword": "your password",
Gmail and many other providers require an app password instead of your normal password. The connection is always encrypted with STARTTLS, so use port
587; port465(implicit TLS) is not supported. -
Send a book:
Fb2Kindle.exe "C:\Books\Book.fb2" -mailto [email protected]
After a successful send, the book file is not kept. If sending fails, the book is saved next to the source file as usual.
The password is stored in Fb2Kindle.json as plain text. Use an app password rather than your main account password, and do not share the settings file.
Fb2Kindle.json lives next to Fb2Kindle.exe and is created by -save. Besides the book options and SMTP settings, you can edit these values by hand:
OptimizeImagesWidth/OptimizeImagesHeight: the maximum image size (default1072×1448).SmtpTimeout: the time to wait for the mail server, in milliseconds (default100000).
The built-in stylesheet is Fb2Kindle/Fb2Kindle.css. To change the look of all your books, copy it next to the app as Fb2Kindle.css and edit it. It is then used automatically instead of the built-in one. To change the look of a single conversion, pass a stylesheet with -css.
To embed fonts, put them into a fonts folder next to the app and reference them in the CSS as src: url("fonts/MyFont.ttf").
Drop caps (-dc) work only if the stylesheet defines the span.dc style.
Convert one book to EPUB:
Fb2Kindle.exe "C:\Books\Book.fb2" -epub
Convert every book in a folder, each into its own .mobi file:
Fb2Kindle.exe "C:\Books\*.fb2"
Convert all books in the app folder and its subfolders, join each folder into one book, delete the sources and wait for a key press at the end:
Fb2Kindle.exe -a -r -j -d -w
Join a series, send it to your Kindle, and save these settings (including auto-update) for next time:
Fb2Kindle.exe "C:\Series\*.fb2" -j -mailto [email protected] -update -save
More ready-to-use .cmd scripts are in other/scripts.7z.
Feedback is always welcome!
Try the app with your books. If something is converted incorrectly, please open an issue and attach the .fb2 file if you can. Pull requests with fixes and improvements are welcome too.
Also, don't forget to ★ star ★ the repository to help other people find it.
Every cup of coffee you donate helps this app get better and shows that the project is in demand.
Fb2Kindle is free to use for personal, home and other non-commercial purposes only.
Any commercial use is not allowed without prior written permission from the author. This includes use inside a company or organization, bundling it with or into commercial products or services, and selling it or charging for access to it. For commercial licensing, please contact the author through GitHub issues.
You may share unmodified copies of the program free of charge, as long as they are used under the same terms.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
