epubQTools fixes EPUB e-books so that they read well, especially on Kindle readers (Send to Kindle).
- fixes errors which spoil reading: broken styles, covers, links, empty titles, the table of contents
- makes notes open in a pop-up window on Kindle
- hyphenates words in the language of the book (see below)
- adds approximate page numbers to books which have none
- in Polish books does not leave single letters (e.g. "w", "i", "z") at the end of a line - they go with the next word; in letter-spaced text (e.g. "t o j e s t") the words do not run together
- removes texts and pages added by some shops (hidden texts, fundraising and support pages)
- makes embedded fonts readable for readers (decrypts obfuscated fonts)
The original book is not changed: the fixed book is a new file (in calibre a new version of the book, with the original kept).
You can use it in two ways:
- calibre plugin - the easiest: select books in calibre and click a button.
- command line (terminal) - the same fixing, plus checking books, renaming files and preparing them for Send to Kindle.
Words are hyphenated by the rules of the book's language. You can turn it off:
the "Hyphenate words" setting in the plugin, -s in the terminal.
The Polish dictionary is part of epubQTools. Other languages use the dictionaries of calibre: the plugin always has them, the terminal uses them when calibre is installed on the computer. calibre has no French dictionary, so French books are not hyphenated. A book without a language is treated as Polish.
When epubQTools hyphenates words, it removes the language (lang, xml:lang)
from the <html> and <body> elements of the text files. The language in the
book metadata (dc:language) stays.
It looks like a paradox: the Kindle takes a Polish book sent with Send to Kindle for an English one (Amazon does it, not epubQTools – see point 3), and still hyphenates the words by the Polish rules, e.g. "współ-od-po-wie-dzial-nych". This is intended. Here is why:
- epubQTools puts invisible hyphenation points (soft hyphens) into the words
by the Polish rules and sets
hyphens: manualin the styles, which means "break words only at these points". - A Kindle reading the KFX format hyphenates words at all only in text in a language it has its own dictionary for. The Kindle has no Polish dictionary (checked on a Paperwhite with software 5.20). So text marked as Polish was not hyphenated at all, although it had the soft hyphens.
- Without a language in the text, the Kindle takes the language of the book
metadata. Since mid-July 2026 Amazon's servers replace Polish with English
there (
pl→en) when a book is sent with Send to Kindle, whatever the EPUB says. The Kindle has an English dictionary, so hyphenation is turned on. - With
hyphens: manualthe Kindle does not use the English dictionary to find hyphenation points. It breaks words only at the points put in by epubQTools, that is the Polish way.
The English dictionary is only a "pass" that turns hyphenation on; where a word is broken is decided by epubQTools. If the book metadata stays Polish, a Kindle without a Polish dictionary still does not hyphenate the words. This is so in books sent before mid-July 2026.
All this is about newer Kindles, which get books from Send to Kindle in the KFX format. Older Kindles get them in the AZW3 format and use the soft hyphens whatever the language, so on them hyphenation worked before version 1.1 too.
When hyphenation is turned off, epubQTools puts the language of the book (from
dc:language) on <html>, as in version 1.0. Then the reader hyphenates the
words itself with its own dictionary, and it takes the language from the text
first, from the book metadata only after that. Without a language in the text,
a Kindle would take the English put in by Send to Kindle and break Polish words
by the English rules (e.g. "współod-powiedzialnych"). With Polish in the text, a
Kindle without a Polish dictionary does not hyphenate the words at all.
Requires calibre 6.17 or newer (https://calibre-ebook.com).
- Download epubQTools-calibre-VERSION.zip from the latest release (under "Assets"). Do not unpack it.
- In calibre choose Preferences → Plugins → Load plugin from file, select the downloaded file and confirm the warning.
- When calibre asks where to show the button, select The main toolbar.
- Restart calibre. The epubQTools button is on the toolbar.
No button? Add it in Preferences → Toolbars & menus → The main toolbar. To update the plugin, install the new file the same way (the settings are kept). To remove it: Preferences → Plugins, select "epubQTools", Remove plugin.
Select books and click epubQTools. The arrow next to the button opens a menu:
- Fix the selected books - the same as the button. The fixed book becomes the EPUB format, the original is kept in the Data files of the book (file "epubQTools original.epub"). Fixing a book again always starts from the original. Converting the book in calibre (e.g. to MOBI) starts from the fixed EPUB.
- Restore the original - brings the original EPUB back. In calibre older than 8 the copy of the original stays in the data files.
- Pass to Send to Kindle… - opens the Send to Kindle page of Amazon with the fixed books ready to send (see Passing to Send to Kindle).
- Settings… - what to change in the books (below).
You can keep using calibre while the books are being fixed. At the end a window shows the result; Show details shows all messages. Books with DRM cannot be fixed and stay unchanged.
The plugin speaks the language of calibre (Polish or English).
A few seconds after calibre starts, the plugin asks GitHub whether a newer version of epubQTools with the calibre plugin was released (at most once a day). If so, a window asks once whether to open the download page, and the menu of the button shows New version … – download… until you install it. To update, download the zip and load it like at the first installation. Only the question goes to GitHub (so GitHub sees your internet address, as on any visit to its pages), nothing about your books. Without the internet nothing is shown and the next start of calibre tries again. You can turn it off in the settings.
Pass to Send to Kindle… opens a window with the Send to Kindle page of Amazon (amazon.com, or another Amazon site chosen in the settings). Only the selected books fixed by epubQTools are passed, as EPUB; the other ones are skipped. The Books button at the top of the window shows how many books are ready (e.g. "Books: 3"); click it to see their titles, the skipped books and short instructions. The files are named with the title of the book only, without the author.
- Sign in to Amazon in this window. calibre remembers it, so next time you are already signed in.
- On the page click the button for choosing files. The window for choosing files does not open - the books are added by themselves.
- Click the button for sending on the page.
The copies of the books are removed when the window is closed. If calibre has no built-in browser (some Linux packages of calibre), the page opens in your web browser and the folder with the books next to it; drag the books to the page. That folder is removed when calibre is closed.
- Your password goes only to Amazon. The window shows the ordinary page of Amazon, connected as securely as in a web browser. The plugin does not read your password or anything you type on the page, and it sends nothing by itself - you send, with the button on the page. The code of the plugin is open, so anyone can check it.
- You can see where you are. The address of the page is always shown at the top of the window. A lock and "Secure connection" mean a secure connection to a page of Amazon. Otherwise the address is red, with a warning - then do not sign in.
- Only Amazon pages. Links leading outside Amazon open in your web browser, not in this window. Only a page of Amazon gets the books.
- Send via my browser… - for those who do not want to sign in in this window: it opens the Send to Kindle page in your web browser and the folder with the books next to it; drag the books to the page. The folder is removed when calibre is closed.
- Forget the saved login - the window remembers the Amazon login, so next
time you do not have to sign in again; this button removes it from the
computer. The login is stored in the calibre configuration folder, in the subfolder
plugins/epubQTools Send to Kindle(the calibre configuration folder is usually~/.config/calibreon Linux,%APPDATA%\calibreon Windows,~/Library/Preferences/calibreon macOS). Anyone with access to that folder, for example through a backup or syncing, could use the login. If that worries you, click Forget the saved login after sending.
The fixed books can also be sent with calibre's built-in sending by email, to
the Send to Kindle address of your reader (it ends in @kindle.com) - without
signing in to Amazon in calibre. The fixed EPUB replaces the original in the
library, so the fixed book is sent.
- In calibre: Preferences → Sharing books by email. Set up sending mail
(calibre suggests the settings of common mailboxes), add the address of your
Kindle and in the Formats column type
EPUB- otherwise calibre may send another format of the book or convert it to another one. - In your Amazon account add the address calibre sends mail from to the approved addresses for personal documents (Manage Your Content and Devices → Preferences → Personal Document Settings).
- Select the books and click Connect/share → Email to ….
Every book goes in a separate email. With Gmail, Outlook and GMX calibre waits
about 5 minutes before every next email, so that the mail service does not take
it for spam, so 10 books take about 45 minutes to send. The setting
public_smtp_relay_delay in Preferences → Tweaks changes this delay.
Note: calibre stores the password of your mailbox in its configuration
folder (the file smtp.py) without encryption - anyone with access to that
folder can read it. Best create a separate mailbox, used only for sending books
to your Kindle, not your main email.
| Setting | Default | What it does |
|---|---|---|
| Hyphenate words | on | Hyphenates words in the language of the book. Off: words are not hyphenated by epubQTools. |
| Hyphenate also words in headings (h1, h2, h3…) | off | Hyphenates also the chapter titles. Usually they look better without it. |
| Add a CSS reset | off | Adds a small style file to every page of the book: the same small margins (5 pt) around the text, paragraphs without left and right margins and in the normal font size, one font for the whole text. Use it when the book looks different in every reader. Without it the book keeps its own look. |
| Text alignment | Justify text aligned to the left | Justify text aligned to the left: the text gets even right edges. Align justified text to the left: the other way round, the right edge is uneven. No change: the alignment stays as in the book. |
| Remove colors | off | Removes the colors of the text and the background, so the book looks the same on black-and-white readers and in the night mode. Works only when the alignment is not “No change”. |
| Left and right margin | off | Adds a margin of the given width (in pixels) on the left and right side. Works only with “Add a CSS reset”. |
| Remove embedded fonts | off | Removes the fonts of the book; the reader uses its own font. |
| Add an approximate page list (in books without one) | on | Adds page numbers (one page = about the same amount of text), so the reader can show page numbers. Books with their own page list are not changed. |
| Number of pages from the LubimyCzytac description | off | When the description of the book has the number of pages of the printed book, added by the LubimyCzytac metadata plugin (its option Number of pages: “Książka ma 152 strony.” or “Liczba stron w książce: 152”), the page list gets exactly that many pages; the column Pages in calibre and the reader show that number. The pages are still approximate, only their number matches the printed book. When the number does not fit the text (for example it is of another edition), the usual pages are added. Works only with the page list. |
| Amazon site | amazon.com | The Amazon site of your account, where Pass to Send to Kindle… opens the Send to Kindle page. |
| Check for a new version of the plugin on GitHub (once a day) | on | See New versions. Off: the plugin does not ask GitHub. |
Restore defaults in the settings window brings back the values above, except the Amazon site and checking for new versions.
- Install Python 3 (https://www.python.org).
- Download "Source code (zip)" from the
latest release
and unpack it, e.g. to the folder
epubQTools-1.2. - Install the libraries it needs (on Windows type
pyinstead ofpython3, here and below):python3 -m pip install lxml css-parser tinycss2
The last part of the command is the folder with the books (subfolders are included):
python3 epubQTools-1.2 -e ~/Books # fix all books; the fixed books go to ~/Books/MOH
python3 epubQTools-1.2 -i -e ~/Books # choose from a list which books to fix
python3 epubQTools-1.2 -q ~/Books # check the books and list their problems
Books already fixed are skipped (-f fixes them again).
Options can be joined, e.g. -n -e -t renames the originals, fixes them and
prepares them for Send to Kindle. -h lists all options in short.
| Option | What it does |
|---|---|
-e |
Fixes the books and hyphenates words. The fixed copy Name_moh.epub is saved in the MOH folder inside the folder with the books (books from subfolders get the same subfolders in MOH). The original is not changed. |
-q |
Checks the books and lists their problems: errors in the files and styles, problems with the cover, a missing author, title or language, fonts which readers cannot open… Nothing is changed. |
-p |
Checks the books with EpubCheck, the official EPUB checker (see Extra tools). Nothing is changed. |
-k |
Converts the fixed books to MOBI files for old Kindles, with kindlegen (see Extra tools). The MOBI file is saved next to the fixed book. |
-n |
Renames the original files to "Author - Title.epub", with the author and the title written in the book. If such a file already exists, " (1)" is added. |
-t |
Copies the fixed books to the TS2K folder as "Title.epub" (without the author and without _moh), ready to send with Send to Kindle. Needs file names "Author - Title", so use it with -n. The folder is emptied first (with -i only the selected books are replaced). |
--author "Surname, First Name" |
Changes the author written in the original book. Only with -i and one book. |
--title "Title" |
Changes the title written in the original book. Only with -i and one book. |
| Option | What it does |
|---|---|
-i |
Shows the list of books to choose from. With numbers it takes the books with these numbers from the list: -i 3, -i 1,3,5-7. |
-m |
With -q or -p: checks the fixed books (_moh.epub) instead of the originals. |
-f |
Fixes (-e) or converts (-k) again the books done before, replacing the earlier results. |
In the terminal the CSS reset and the hyphenation of headings are on; -c -r
gives the same result as the plugin with its default settings. Each option is
explained in more detail in the plugin settings.
| Option | What it does |
|---|---|
-s |
Does not hyphenate words. |
-r |
Does not hyphenate words in headings (h1, h2, h3…). |
-c |
Does not add the CSS reset (the book keeps its own look). |
--skip-justify |
Leaves the text alignment as in the book (normally text aligned to the left gets justified). |
--left |
Aligns justified text to the left (test version). |
--remove-colors |
Removes the colors of the text and the background. Not with --skip-justify. |
--remove-fonts |
Removes the fonts of the book; the reader uses its own font. |
--book-margin NUMBER |
Adds a left and right margin of NUMBER pixels. Not with -c. |
--skip-page-list |
Does not add approximate page numbers. |
--fix-missing-container |
Repairs a book which does not open because the file telling where the content is (container.xml) is missing or the file type entry (mimetype) is wrong. Changes the original file. |
| Option | What it does |
|---|---|
-u |
Reports only style errors, without warnings (things which cause problems only in some readers). |
-w |
Does not report fonts saved with an unusual file type. |
--list-fonts |
Lists all fonts of every book. |
-a |
Prints every problem in one line beginning with the file name (easy to sort or search). |
| Option | What it does |
|---|---|
-v |
Shows all messages, also about every change. Normally only problems are shown. |
-l [FOLDER] |
Saves all messages to the file eQT-DATE.log, in the given folder or in the folder with the books. |
--tools FOLDER |
Where to look for EpubCheck and kindlegen (see below). |
-d |
With -k: smaller MOBI files, but a slower conversion. |
-V |
Shows the version of epubQTools. |
-h |
Shows all options in short. |
In a terminal the messages have colors: red for errors, yellow for warnings,
grey for style warnings (usually many and less important, so they do not hide
the other ones), green for what went well. The file from -l has no colors.
The environment variable NO_COLOR turns the colors off.
- EpubCheck (
-p) - the official EPUB checker, needs Java. Put its zip file (not unpacked) into the tools folder. - kindlegen (
-k) - converts the fixed books to MOBI for old Kindles. Put the program into the tools folder (it is also found when it is installed in the system).
The tools folder is ~/.local/share/epubQTools/ on Linux and macOS and
%LOCALAPPDATA%\epubQTools\ on Windows (another one: --tools FOLDER).
epubQTools is free software under the GNU Affero General Public License, version 3 or later (the file LICENSE): everyone may use it, read and change the code, and pass it on, also changed, as long as the code goes with it under the same license. A few parts come from other authors and keep their own licenses (GPL 3, LGPL, BSD): calibre code, hyphenation and the Polish hyphenation dictionary, tinycss2 in the calibre plugin. They are listed in NOTICE, and the license texts are in licenses/.