MOBI/AZW — Kindle Ebook Formats
Description
Explain MOBI/AZW Kindle ebook formats, their structure, DRM variants, and conversion workflows for creating and distributing Kindle-compatible ebooks.
When to Use
How do MOBI, AZW, and KF8 work on Kindle? | Explain MOBI/AZW formats and DRM variants | I need to convert files to MOBI/AZW for Kindle | Help me troubleshoot Kindle format issues in AZW3 | Guide for Kindle-compatible ebook creation workflows
Use Cases
Convert EPUB or HTML to MOBI/AZW for Kindle devices | Validate MOBI/AZW structure and metadata in a library | Troubleshoot AZW/AZW3 DRM variants for distribution | Create dual-format MOBI/AZW files for Kindle apps
SKILL.md Content
---
name: mobi
description: "Explain MOBI/AZW Kindle ebook formats, their structure, DRM variants, and conversion workflows for creating and distributing Kindle-compatible ebooks."
metadata:
tags: "ebook-format, mobi-azw, kindle, azw3, digital-publishing, pdb-container, drm"
source: "https://skilldb.dev/skills/file-formats-skills/mobi"
pack: "file-formats-skills"
category: "Technology & Engineering"
---
# MOBI/AZW — Kindle Ebook Formats
## When to use this skill
Use when the user says things like:
- "How do MOBI, AZW, and KF8 work on Kindle?"
- "Explain MOBI/AZW formats and DRM variants"
- "I need to convert files to MOBI/AZW for Kindle"
- "Help me troubleshoot Kindle format issues in AZW3"
- "Guide for Kindle-compatible ebook creation workflows"
You are a file format specialist with deep knowledge of the MOBI/AZW ebook format family, their PDB container structure, Kindle ecosystem integration, and the practical workflows for creating, converting, and distributing Kindle-compatible ebooks.
## Overview
MOBI is an ebook format originally developed by Mobipocket SA (founded 2000, acquired by Amazon in 2005). It became the foundation for Amazon's Kindle ecosystem. The MOBI format and its successors — AZW (MOBI with Amazon DRM) and AZW3/KF8 (Kindle Format 8, introduced 2011) — have been the primary ebook formats for Kindle devices and apps. In 2022, Amazon began accepting EPUB for its Send to Kindle service, signaling a gradual shift, but the Kindle ecosystem still relies heavily on these proprietary formats internally.
## Technical Specifications
- **File extensions:** `.mobi`, `.azw`, `.azw3`, `.kf8`, `.kfx`
- **MIME type:** `application/x-mobipocket-ebook` (MOBI)
- **Format lineage:** PalmDOC > Mobipocket (MOBI) > AZW > AZW3/KF8 > KFX
### Format Variants
| Format | Introduced | Based On | DRM | Notes |
|--------|-----------|----------|-----|-------|
| MOBI | 2000 | PalmDOC + HTML | Optional (Mobipocket) | Original Mobipocket format |
| AZW | 2007 | MOBI | Amazon DRM | Essentially MOBI with Kindle DRM |
| AZW3/KF8 | 2011 | HTML5 + CSS3 subset | Amazon DRM | Major upgrade; dual MOBI/KF8 container |
| KFX | 2015 | Proprietary | Amazon DRM | Latest format with enhanced typesetting |
### Structure
- **MOBI/AZW:** PDB (Palm Database) container with MOBI header, HTML-like content compressed with PalmDOC or Huffman/CDIC encoding, optional image records
- **AZW3/KF8:** Same PDB container but content uses HTML5/CSS3 subset, stored as fragments in a database structure. Often ships as a dual-format file with MOBI fallback
- **KFX:** Uses Amazon's Ion binary format; supports enhanced typesetting, Bookerly font rendering, ragged-right margins, and other advanced features
### Key Headers
MOBI files contain a PalmDOC header followed by a MOBI header with fields for encoding, title, language, and record offsets. The EXTH header extension stores metadata (author, publisher, ISBN, cover image offset).
## How to Work With It
### Opening / Reading
- **Kindle devices:** Native support for all variants
- **Kindle apps:** Available on Windows, macOS, iOS, Android, and web
- **Desktop:** Calibre (reads all variants), SumatraPDF (MOBI), FBReader
- **Note:** DRM-protected files can only be opened through authorized Amazon apps/devices
### Creating
- **Amazon KDP:** Upload DOCX, EPUB, or KPF; Amazon converts to Kindle format
- **Kindle Create:** Amazon's free tool for preparing Kindle books
- **Calibre:** Convert from EPUB, HTML, TXT, and other formats to MOBI/AZW3
- **Kindle Previewer:** Amazon's tool for testing Kindle rendering
- **KindleGen:** Amazon's command-line converter (deprecated in favor of Kindle Previewer)
- **Programmatically:** Limited; `kindleunpack` can extract, few libraries create MOBI directly
### Parsing / Extracting
- **Calibre:** Best tool for reading and converting Kindle formats
- **KindleUnpack (MobiUnpack):** Python tool to extract HTML, images, and metadata from MOBI/AZW3
- **Python:** `mobi` library for basic MOBI parsing
### Converting
- **To EPUB:** Calibre (`ebook-convert book.mobi book.epub`) — DRM-free only
- **To PDF:** Calibre, Kindle app print function
- **From EPUB:** Calibre, or upload to KDP for Amazon conversion
- **From DOCX:** Calibre, Amazon KDP, Kindle Create
## Common Use Cases
- Amazon Kindle ebook distribution (the world's largest ebook marketplace)
- Self-publishing via Kindle Direct Publishing (KDP)
- Personal document reading on Kindle (Send to Kindle)
- Sideloading DRM-free ebooks onto Kindle devices
- Lending library and Kindle Unlimited content delivery
## Pros & Cons
### Pros
- Dominant format in the world's largest ebook ecosystem
- Kindle devices and apps provide excellent reading experience
- AZW3/KF8 supports advanced typography and layout
- KFX offers enhanced typesetting features (kerning, ligatures, hyphenation)
- Whispersync enables cross-device reading position sync
- X-Ray, Word Wise, and other Kindle-exclusive features
- Good compression for small file sizes
### Cons
- Proprietary format controlled by Amazon
- DRM restricts reading to Amazon's ecosystem
- Cannot be read by most non-Amazon e-readers (Kobo, Nook)
- MOBI is technically outdated (limited CSS support)
- Amazon deprecated MOBI for new publishing (recommends EPUB upload)
- Limited tooling for programmatic creation outside Amazon's tools
- Format has evolved through multiple incompatible versions
- No open specification for newer formats (KFX)
## Compatibility
| Platform | Support |
|----------|---------|
| Kindle e-readers | All variants natively |
| Kindle apps (all platforms) | All variants |
| Calibre | Reads all variants (DRM-free) |
| Other e-readers | Generally unsupported |
| Web browsers | Amazon Kindle Cloud Reader only |
| Linux | Calibre; no official Kindle app |
## Practical Usage
### Publishing Workflow for Kindle Direct Publishing (KDP)
The recommended modern workflow no longer involves MOBI directly:
1. Write in your preferred tool (Scrivener, Word, Google Docs)
2. Export as EPUB or clean DOCX
3. Upload to KDP — Amazon converts to their internal format
4. Use Kindle Previewer to verify rendering before publishing
For sideloading to personal Kindles, use Amazon's "Send to Kindle" service which now accepts EPUB.
### Converting EPUB to Kindle-Compatible Format with Calibre
Calibre remains the essential tool for Kindle format work:
```bash
# Convert EPUB to AZW3 (modern Kindle format)
ebook-convert book.epub book.azw3
# Convert with custom settings for better output
ebook-convert book.epub book.azw3 --output-profile kindle_pw3 --change-justification justify
# Extract metadata
ebook-meta book.mobi
```
### Extracting Content from MOBI/AZW Files
For DRM-free files, KindleUnpack extracts the HTML source, images, and metadata:
```bash
pip install kindleunpack
kindleunpack book.mobi ./extracted/
# Output: HTML files, images, OPF metadata, and NCX table of contents
```
### Managing Personal Documents on Kindle
Send documents to your Kindle via email (`your-name@kindle.com`) or the Send to Kindle app/website. Amazon now converts EPUB, PDF, DOCX, and plain text to Kindle format server-side.
## Anti-Patterns
**Creating MOBI files for new publications.** Amazon deprecated MOBI for new uploads in 2021. Upload EPUB or DOCX to KDP; Amazon handles the conversion to their latest internal format. Manually creating MOBI files produces inferior output.
**Trying to edit MOBI/AZW files directly.** The PDB container with compressed HTML fragments is not designed for direct editing. Convert to EPUB with Calibre, make your changes, and convert back if needed.
**Ignoring DRM when building processing pipelines.** Most commercially purchased Kindle books are DRM-protected and cannot be converted or extracted with standard tools. Only DRM-free files (self-published, public domain, or explicitly DRM-free purchases) can be processed with Calibre and KindleUnpack.
**Using PDF for Kindle reading.** While Kindles can display PDFs, the fixed-layout format does not reflow text and requires constant zooming on small e-ink screens. Convert PDFs to EPUB/AZW3 via Calibre for a readable experience.
**Assuming MOBI and AZW3 are interchangeable.** MOBI supports only basic HTML/CSS (roughly HTML 3.2 level). AZW3/KF8 supports HTML5 and CSS3 subsets with far better typography and layout. Always target AZW3 when creating Kindle content outside of KDP.
## Related Formats
- **EPUB (.epub):** Open standard alternative; now accepted by Kindle
- **PDF (.pdf):** Fixed layout; viewable on Kindle but not ideal
- **AZW3/KF8:** The modern successor within the Kindle family
- **KFX:** Latest Kindle format with enhanced typesetting
- **PDB (.pdb):** Palm Database container format (MOBI's ancestor)
- **LIT (.lit):** Microsoft Reader format (defunct, similar concept)