Stella
Reading and writing

Merge EPUB files into one book in reading order

Three books of a series as one ebook, in reading order, every map kept.

Download StellaFree with the plan you already have.

A real run on 14 November 2026, on a Linux computer, using Claude Code with Opus, on a Claude plan. Shown 5× faster; it took 1 min 47 s.

The short answer.

Install the free Calibre and its EpubMerge plugin, add the books, select them, click EpubMerge and drag them into reading order before merging. File names are often a poor guide to order, so check the series number or title page. Stella (stella.sh) works out the order from inside the books and merges them on your computer, keeping each book's images even when they share a file name.

Stella does this on Windows, Mac and Linux.

What happened.

One EPUB in under 2 minutes. Checked afterwards against an answer key written before the run: a sound EPUB package holding all 15 chapters in reading order (Book One, Two, Three), all three different maps kept, a contents list with every chapter and the book titles, and the three original files unchanged.

The three books are made up and were built for this run, with misleading file names and same-named map images on purpose. The work is sped up 5×.

How Stella does it.

  1. Finds the three Saltmarsh Chronicles EPUBs in Downloads, whose file names (first-tide.epub, Book 2 - The Turning Tide.epub, saltmarsh-chronicles-3.epub) sort in the wrong order
  2. Unpacks each and confirms the order three ways: the series number saved in each book, the “Book One/Two/Three” title pages and the reading-order note beside them
  3. Notices each book has its own map saved under the same file name, and keeps all three by giving each book its own folder inside the merged file
  4. Builds one EPUB with a contents list that nests each book's chapters under its title
  5. Runs the W3C's EPUBCheck validator on the result (no problems) and saves The Saltmarsh Chronicles (Books 1-3).epub in Downloads, leaving the three originals as they were

The prompt.

Combine the three Saltmarsh Chronicles books in my Downloads into one EPUB, in the right reading order.

Paste it into Stella and press Enter.

This is the exact prompt from the recording. If your files are somewhere else, say where.

Do it yourself.

  1. Install Calibre and EpubMerge

    Install the free Calibre. Open Preferences, Plugins, Get new plugins, search for EpubMerge, install it and restart Calibre.

  2. Work out the reading order

    Add the books and open each one's details or first pages. The series number (Calibre shows it in the Series column) or the title page tells you the order; file names often don't.

  3. Merge

    Select the books, click the EpubMerge button, and drag them into reading order in its window. Give the new book a title such as the series name, then click OK. The merged book appears in your library.

  4. Check the result

    Open it in Calibre's viewer, check the contents list starts with book one, and look at a picture or map from each book to make sure the right one shows in each.

Where it stops.

  • Only DRM-free books can be merged. Most books bought from big ebook stores are locked to your account and Stella won't remove that.
  • A merged file is for your own reading. Sharing it is still sharing the books.
  • Stella reads the books' titles, metadata and chapter openings through the AI model you use to work out the order. The merging runs on your computer.
  • Recorded on Linux, using Python (built in on Mac and Linux). On Windows Stella may install Python first. It used a Java runtime and the EPUBCheck validator to check the result.

Questions.

Why is one picture repeated in my merged ebook?

The books stored their pictures under the same file name, and the merge kept only one. A careful merge gives each book its own folder, which is what Stella did here.

Can I merge EPUBs on a phone?

Not easily. Do it on a computer, then copy the merged book to the phone or e-reader.

Can I split a big EPUB back into books?

Calibre's EpubSplit plugin does that, and Stella can too: ask for one file per book.

Can it turn the merged book into a PDF?
Is Stella free for this?

Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

Can I control what Stella changes on my computer?

Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Checked against these sources on 14 November 2026.

Stella