Convert E-books with calibre's ebook-convert
Convert between EPUB, MOBI, AZW3, PDF and more from the terminal using calibre's command-line converter — no GUI needed.
01Command
$ ebook-convert book.epub book.mobi --enable-heuristics02What it does
ebook-convert supports dozens of input and output formats and powers the conversions inside calibre's GUI. --enable-heuristics fixes common formatting problems (missing chapter breaks, hard line breaks) when the source is messy; the output format is inferred from the output filename's extension. Fine-tune with options like --paper-size for PDF output or --extra-css for styling, and convert a batch with a simple for loop. Note that PDF input converts poorly — PDFs are fixed-layout, so results are best with EPUB/MOBI sources.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- ebook-convert — calibre manualEvidence: Complete reference for ebook-convert: supported input/output formats, --enable-heuristics and conversion options.
- calibre — Conversion tutorialEvidence: Explains conversion concepts, heuristics processing, and format-specific options for e-book conversion.
Last verified: 2026-09-18 · Category: Media