Documents and Office

How to Edit an EPUB: Chapters, Contents, Metadata and Validation

Fix an ebook without installing software: split and reorder chapters, edit text and CSS, set the cover and metadata, rebuild the contents and check errors.

Saizul Amin
Saizul Amin2 Nov 2026 · 4 min read
How to Edit an EPUB: Chapters, Contents, Metadata and Validation

An EPUB file looks like a single book, but inside it is a small website: one XHTML file per chapter, a stylesheet or two, images, fonts, a package file that lists everything in reading order and a navigation file that readers turn into the table of contents. Most problems self-publishers meet, such as a store rejecting the upload, a contents menu with missing entries or text that looks wrong on one reader, come from one of those pieces being out of step with the others. The EPUB Ebook Editor opens all of them in your browser so you can fix the book directly.

Get the chapter structure right first

Word processors often export a whole manuscript as one huge chapter file. That works, but readers load it slowly and the contents menu has a single entry. Select the chapter and use Split at h1, or Split at h2 if your chapters are second-level headings. Each heading becomes its own file named after the heading text. If the export went the other way and every scene is its own file, Merge with next joins them. Use the arrows to fix the order and remember that the list on the left is exactly the order readers will page through.

Front matter such as a copyright page or a dedication normally belongs in the reading order but not in the contents menu. Untick Show in table of contents for those. Endnotes or answer keys that readers should only reach by link can be marked as not in the reading order.

Edit text visually or as HTML

The visual tab is fine for fixing typos, adding emphasis, turning a line into a heading or inserting a link. For anything structural, such as adding a class to a paragraph or fixing a broken table, switch to the HTML tab, because browsers rewrite markup slightly when you edit visually. The editor converts everything back to well-formed XHTML when you leave the tab, so readers that are strict about XHTML still open the book.

Styles that suit ebooks

Ebook styling should be light. Readers let people choose their own font size and often their own font, so fixed font sizes and page-wide positioning cause more harm than good. The Add book defaults button appends a sensible set of rules: indented paragraphs without gaps and chapter headings that start a new page. Avoid fixed positioning entirely; the check tab warns about it.

Metadata and the cover

Stores read the title, author, language, identifier and publication date from the package file. Use a proper language tag such as en or en-GB, an ISBN if you have one or the generated UUID if you do not, and a date written as year, month and day. Add the cover as an image and choose it in the Cover image list; the editor marks it in the package the way EPUB 3 readers expect and also writes the older cover hint that some devices still look for.

Build a contents menu that matches the book

The contents tab shows the menu readers will see. Depth one lists chapters only. Depth two adds the h2 headings inside each chapter, which is useful for non-fiction. Subheadings need an id to be linked, and the Give headings ids button adds them. When you save, both the EPUB 3 navigation file and the older toc.ncx are rewritten from this list, so they cannot fall out of step with your chapters.

Check before you publish

The check tab runs rules modelled on EPUBCheck, the validator stores use. It catches the common reasons for rejection: missing metadata, a misplaced or compressed mimetype entry, files that are listed but missing, links to files that are not in the book, unclosed tags and undefined entities in chapter markup, images without alternative text and a missing cover. Fix errors first, then warnings. Because it covers the frequent problems rather than every rule, run the official EPUBCheck once before you submit to a major retailer.

Saving

Save EPUB writes a fresh package with the mimetype entry first and uncompressed, the container file, the package and both navigation files, your chapters, styles and the untouched images and fonts. Text and structure are kept in your browser between visits, but added images are held only while the page is open, so save the EPUB before you close the tab.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages