All formats

MOBI libraries

Open-source libraries for Mobipocket and Kindle files. MOBI has no public specification, so libraries are based on reverse-engineering (the MobileRead wiki, Calibre and KindleUnpack). Few of them write MOBI: to create Kindle files, most projects generate EPUB and convert it with Calibre (ebook-convert book.epub book.azw3). None of them opens DRM-protected Amazon books without the owner’s device key, and none reads KFX.

Language Library Read Write Notes
C/C++ libmobi yes partial MOBI 6, KF8, hybrid, Print Replica; metadata editing, EPUB export; LGPL
C/C++ MuPDF yes no renders MOBI 6 text and images, extracts text, converts to PDF; AGPL
Go mobi no yes creates KF8 AZW3 books
Python mobi yes no KindleUnpack as a library: unpacks to EPUB, HTML or PDF; GPL-3.0
Python PyMuPDF yes no text extraction, rendering, convert to PDF; AGPL
Rust mobi yes no metadata, headers, text content, images
PHP PHP eBook yes no metadata and cover from MOBI, AZW, AZW3

By language#