← toolkit.bot

Sigil EPUB Editor — Complete Guide for Editing and Publishing EPUBs

Sigil is the best free open-source EPUB editor. It gives you direct access to every file inside an EPUB — HTML, CSS, images, fonts, and OPF metadata. Here's how to use it.

What Is Sigil?

Sigil (sigil-ebook.com) is a free, open-source EPUB editor for Windows, macOS, and Linux. It lets you:

Sigil is the editor of choice for serious EPUB publishing. Calibre is better for conversion; Sigil is better for editing the result.

Installing Sigil

The Sigil Interface

Sigil has three main panels:

Core Editing Tasks

Edit Chapter Text

  1. In the Book Browser, double-click a file under Text/ to open it.
  2. Use Book View for WYSIWYG editing (bold, headings, lists with toolbar buttons).
  3. Use Code View (F2) to edit raw HTML — useful for fixing structural issues.
  4. Save with Ctrl+S.

Find and Replace Across the Whole EPUB

Sigil's Find & Replace (Ctrl+H) works across all files in the EPUB, not just the open file:

  1. Open Find & Replace (Ctrl+H).
  2. Check All HTML Files in the scope dropdown.
  3. Enter search term (supports regex).
  4. Click Replace All.

This is invaluable for fixing consistent formatting issues across a long book — replacing a mis-tagged paragraph style throughout all 50 chapter files at once.

Generate Table of Contents

  1. Go to Tools → Table of Contents → Generate Table of Contents.
  2. Select heading levels to include (H1, H2, H3).
  3. Sigil builds the NAV document and NCX from headings in all chapter files.
  4. Click OK. Review the TOC panel on the right.

Edit Metadata (Title, Author, Language, ISBN)

  1. Go to Tools → Metadata Editor.
  2. Edit Title, Author, Language (ISO code, e.g. "en"), and other Dublin Core fields.
  3. Add an ISBN with Add Basic → select dc:identifier.
  4. Click OK. Sigil updates the OPF file.

Add Images and Fonts

  1. In the Book Browser, right-click Images/ (or Fonts/) → Add Existing Files.
  2. Select your image or font file.
  3. Sigil adds it to the manifest automatically.
  4. Reference the image in HTML: <img src="../Images/photo.jpg" alt="Description"/>

Split a Chapter at the Cursor

To split one long chapter file into two:

  1. Place the cursor where the split should occur.
  2. Press Ctrl+Return (or Edit → Split at Cursor).
  3. Sigil creates a new XHTML file at that point.

Validating Your EPUB in Sigil

Sigil includes FlightCrew for basic validation. For full EPUBCheck validation, run externally:

java -jar epubcheck.jar book.epub

Common Sigil-related warnings: generated files sometimes have unnecessary CSS attributes from older Sigil versions. These usually don't affect distribution but can be cleaned up.

Sigil vs Calibre Edit Book

Many publishers use both: Calibre for conversion and initial fixes, Sigil for detailed editing and final polish.

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

Convert PDF to EPUB →

Related guides