Readwyn 0.1.0

How to convert MOBI to EPUB on a Mac

Drop a MOBI file on Readwyn’s window and it comes in as a book with an EPUB 3 made from it. The MOBI itself isn’t changed: it stays next to the EPUB, and the reader opens the EPUB.

While you drag files over the window, an overlay lists them and says how many books are going into which library; anything Readwyn can’t take is marked “Skipped”. “Add books” does the same from a file dialog. Once they’re in, a message says what happened, for example “Added 2 books to Home library. 1 file skipped.” MOBIs in a calibre library convert the same way during the import (How to import your calibre library into Readwyn).

Conversion covers every version from MOBI 1 to MOBI 6, AZW3 (KF8), and combo files, which carry a MOBI 6 and a KF8 copy of the book in one file (What is a MOBI and KF8 combo file?).

Where the EPUB ends up

Open the book and go to the Details tab. Under “Files”, “Original” is the MOBI, with its file name and size. “For reading” is the EPUB 3, marked “Converted from the MOBI”, with its size and the date it was made. While the book’s Kobo is connected, a third line, “On the device”, names the e-reader and the day the copy was sent.

The Details tab of Middlemarch: the original MOBI file of 2.1 MB, the EPUB 3 converted from the MOBI, and the KEPUB on a Kobo
The original MOBI and the EPUB 3 made from it

The first two lines each have “Show in Finder”. If you want the EPUB in another app, copy it from that folder; the library keeps both files either way.

What the EPUB keeps

Every converted EPUB has to pass these checks against the MOBI it came from:

  • The text is identical, down to the character.
  • Every internal link and every entry in the table of contents points to the same place in the text.
  • Every image and every font is byte for byte the one in the MOBI.
  • The cover is marked as the cover.
  • The metadata Readwyn reads from the MOBI is carried into the EPUB.
  • There’s an NCX as well, the older form of the table of contents.
  • epubcheck reports no errors.

These are checked on real books from Project Gutenberg, MobileRead and similar sites: 10 MOBI 4 files, 10 MOBI 5, 10 standalone MOBI 6, 10 AZW3 and 10 combo files. Ten more EPUBs are turned into MOBI 6, AZW3 and combo files by three other tools and brought back through Readwyn. Those round trips allow for what the writing tool changed, such as images it re-encoded. The converter reads MOBI 1, 2 and 3 too, though the search for test books didn’t turn up a single public-domain book in those versions. Run the same MOBI through twice and you get the same EPUB, byte for byte.

Files that won’t convert

A MOBI with DRM doesn’t convert. A damaged file either converts or fails cleanly; it can’t crash the import. If it fails, the book keeps just the MOBI, Readwyn notes why, and a later version of the converter has another go.

Without an EPUB, the book screen shows “Open” where “Read” would be. It opens the file in its default app, and the “…” menu names that app.

On a Kobo

“Send to device” sends the EPUB, not the MOBI. With “Convert EPUB to KEPUB for Kobo e-readers” on (it is by default), it arrives as a KEPUB.