← toolkit.bot

How to Edit an EPUB in Calibre — Complete Guide to Calibre's Book Editor

Calibre has a built-in EPUB editor that lets you modify chapter text, fix formatting, add images, edit CSS, and repair structural issues — without any external tools.

Opening the Calibre Book Editor

To open Calibre's EPUB editor:

  1. Add your EPUB to the Calibre library (drag-and-drop).
  2. Right-click the book → Edit book.
  3. Or press Ctrl+Shift+E.

The editor opens in a separate window with the EPUB's file tree on the left, an editor panel in the center, and a preview panel on the right.

The Editor Interface

Core Editing Tasks

Edit Chapter Text

  1. Double-click a chapter file in the File Browser (e.g., Text/chapter01.xhtml).
  2. Edit the HTML directly in the code editor.
  3. The preview panel on the right updates in real time.
  4. Save with Ctrl+S.

Find and Replace Across All Files

  1. Open Find & Replace with Ctrl+H.
  2. In the Where dropdown, select All text files.
  3. Use regex by checking the Regex checkbox.
  4. Click Replace All to apply changes across every chapter file.

Fix Formatting — Check and Fix

Calibre's editor includes automated fixup tools:

Edit CSS Styles

  1. Open a CSS file from the File Browser (under Styles/).
  2. Edit rules directly. The preview updates immediately.
  3. Use Tools → Manage fonts to add or remove embedded fonts.

Edit Metadata (Title, Author, ISBN)

In the editor, click the OPF file (content.opf) in the File Browser and edit the XML directly. Or close the editor, return to Calibre's library, and use the metadata editor (press E) — which is simpler.

Regenerate the Table of Contents

  1. Go to Tools → Table of Contents → Edit Table of Contents.
  2. Click Generate from major headings to rebuild from H1/H2/H3 tags.
  3. Review and adjust entries.
  4. Click OK.

Calibre Editor Keyboard Shortcuts

Action Shortcut
Open book editorCtrl+Shift+E
SaveCtrl+S
Find & ReplaceCtrl+H
Toggle previewF8
Check bookF7
Go to fileCtrl+P
Split file at cursorCtrl+Return

Calibre Editor vs Sigil

Both tools edit EPUBs directly. The main differences:

Converting a PDF to EPUB before editing in Calibre? toolkit.bot generates well-structured EPUB output.

Convert PDF to EPUB →

Related guides