ToolsEdit PDFArticlesPricingContact
TryPDFKit
Ebooks tool

EPUB Table of Contents Generator

If a book's contents list is missing or wrong, rebuild it from the headings in the text. Choose how deep to go, and add a Contents page if you like.

  • 3 free uses, 10 with a free account
  • Book stays on your device
  • Built from your headings
  • No watermark

Drop your EPUB file here

or click to browse your device

  • EPUB
Files never leave your device
  • Files stay on your device
  • 3 free uses, no account needed
  • Works offline once loaded
How was EPUB table of contents generator?
Be the first to rate this tool.
1How it works

EPUB table of contents generator in three steps

  1. 01

    Add your EPUB

    Drop an EPUB on the page, or tap Choose file.

  2. 02

    Pick the depth

    Choose Chapters only, Chapters and sections, or three levels. Tick the box to also add a Contents page at the start.

  3. 03

    Download the book

    The note tells you how many entries the new contents list has.

2The details

What you get, and what to know

What you get

  • Reads your headingsHeadings from h1 to h6 in every chapter become entries.
  • Three depthsA short list of chapters, chapters with sections, or three levels.
  • Works for new and old readersA navigation document for EPUB 3 and a contents file for older readers are both written.
  • Optional Contents pageA visible page listing the entries is placed after the cover, so readers can tap through.

Good to know

  • It needs headingsIf chapters contain no heading tags, there is nothing to build from, and you get a message. Chapters without headings may use their page title instead.
  • Existing contents are replacedThe old list is overwritten in the new file. Your original stays untouched.
  • DRM-protected books are refusedLocked books cannot be edited. For a book you write yourself, structure it with headings first via DOCX to EPUB or Markdown to EPUB.
3Use cases

When people use EPUB table of contents generator

Fix a book with a useless contents list

Replace a list that points to the wrong places.

Add navigation to a converted file

Give a book converted from text a proper contents.

Create a deeper list for a manual

Show sections as well as chapters.

Make a textbook easier to browse

Add a contents page students can tap through.

How the list is built

The tool walks through each chapter file in reading order and collects every heading. If a heading has no id, one is added so the entry can link straight to it. The first entry for a file points to the top of the file, so readers open the chapter at its start.

The levels are normalized, so a book whose top heading is h2 still shows a clean outline.

Depth and the Contents page

Chapters only gives a short, tidy list for novels. Chapters and sections suits non-fiction. Three levels suits manuals.

The optional Contents page is an actual page in the book, useful in apps that hide the built-in contents.

Next steps

Check your work with Validate EPUB. If the book is very long, Split EPUB chapters can break it into volumes using the new list.

4FAQ

Questions, answered

How do I add a table of contents to an EPUB?+

Add the EPUB, choose the heading depth, and download. The list is built from the book's headings.

Can I add a visible Contents page?+

Yes. Tick the box and a page is added near the start.

Is my book uploaded?+

No. The contents are rebuilt in your browser.

What if my book has no headings?+

The tool tells you there is nothing to build from. Add headings in the source and convert again.

Does it work on a phone or Mac?+

Yes, in any modern browser on Windows, Mac, iOS and Android.

Will it replace my old contents list?+

In the new file, yes. Your original file is not changed.

+Keep going

Related tools