Skip to content

How to Edit a .MOBI File (Complete 2026 Guide)

Important update: Amazon officially stopped accepting MOBI files for new Kindle eBook uploads on March 18, 2025, completing a phase-out that began in 2021. If you’re formatting a new book for KDP, you don’t need a MOBI file at all — Amazon now requires EPUB, DOCX, or KPF, and converts it internally to their current KFX format.

You’ll still run into MOBI files if you’re: editing an older backlist title, sideloading a book onto a legacy Kindle via USB, or maintaining an eBook for a platform outside Amazon that still distributes in MOBI. If that’s you, here’s the full process.

Editing a MOBI file isn’t as simple as opening it in a word processor. MOBI is a packaged binary format, so a direct edit isn’t possible — the file has to be unpacked, edited at the source level, and repacked.

The process has 3 steps:

  1. Unpack the MOBI file
  2. Apply your edits to the unpacked source files
  3. Repack the file into MOBI format

Before you start: If your MOBI file has DRM (digital rights management) applied, you cannot edit it directly — DRM-locked files must be recreated from your original source manuscript instead.

Step 1: Unpack the MOBI File

Requirements: Calibre (free, Windows/Mac/Linux)

  1. Open Calibre and go to Preferences.

  2. Select “Get plugins to enhance Calibre.”

  3. Search for and install the KindleUnpack plugin.

  4. Once installed, select the new KindleUnpack option from Calibre’s toolbar.

  5. Choose the MOBI file you want to unpack, and select a destination folder for the output.

  6. KindleUnpack will extract the file into its component parts: HTML content files, a CSS stylesheet, an OPF metadata file, and an images folder.

Step 2: Apply Your Edits

Once unpacked, you’re editing plain HTML and CSS — the same skills used for basic web editing.

  1. Open the unpacked folder and locate the HTML files (usually numbered sequentially, e.g., part0000.html, part0001.html).

  2. Open these in a text/code editor (Sublime Text, VS Code, or even Notepad++ all work well — avoid Microsoft Word, which will inject formatting artifacts).

  3. Make your text edits directly in the HTML, keeping existing tags intact.

  4. For styling changes (fonts, spacing, headings), edit the CSS stylesheet found in the unpacked folder.

  5. To swap the cover image, replace the image file in the images folder with your new cover, keeping the same filename and dimensions.

  6. Update the content.opf file if you’re changing metadata like the title, author, or description.

  7. Save all changes, keeping the original file structure and naming intact — the repacking tool depends on it.

Step 3: Repack the File

  1. In Calibre, use KindleUnpack’s companion repacking option, or add the edited folder back into your Calibre library and use Convert Books to rebuild it into MOBI (or, better, AZW3/EPUB if you’re moving away from MOBI).

  2. Select your edited source folder as the input and MOBI (or your target format) as the output.

  3. Run the conversion.

  4. Always test the output file before distributing it — open it in Calibre’s built-in viewer or a Kindle Previewer to confirm your edits appear correctly and nothing broke in the rebuild.

Should You Convert to EPUB Instead?

If you’re editing this file for anything beyond legacy device sideloading, converting to EPUB rather than repacking to MOBI is almost always the better move — it’s required for new KDP uploads, is the native format for Apple Books, Kobo, and Google Play Books, and doesn’t carry MOBI’s technical limitations (no video/audio support, weaker CSS control, older file size caps on some devices).

Skip the manual editing entirely with our professional ebook formatting service.

Unpacking, hand-editing, and repacking eBook files is time-consuming and easy to get wrong — a single broken tag can corrupt the whole file. TrioMarketers formats and edits EPUB, MOBI, and PDF files professionally, with fast turnaround and no broken conversions.