Converting ebook formats with ebook-convert
I need to convert between ebook formats on a regular basis so that I can read them on my Kindle, and I prefer to do this on the command line as it's quicker and easier.
I found a utility called
ebook-convert that comes included as part of
Calibre, the ebook management behemouth, and it suits the task
superbly. It's a shame to have to install such a big application to get access
to a small utility, but I do sometimes use the metadata editing features of
Calibre, so it's a price I'm willing to pay.
It's very easy to use and hasn't failed me up to now.
1 2 ebook-convert *.epub .mobi # from epub to mobi ebook-convert *.mobi .epub # from mobi to epub
Other formats are also supported.
Installable on macOS using
brew install calibre.
You might want to link the
ebook-convert binary to
/usr/local/bin for easier
usage after installation:
ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin/ebook-convert