Readwyn 0.1.0

How to make an EPUB from a Word document

Save the manuscript as a .docx with proper heading styles, then convert it with a tool such as pandoc, Apple Pages, calibre or the DAISY Consortium's WordToEPUB. Word itself has no EPUB option in its Save As list (checked in November 2026): Microsoft's file format reference for Word (Office 2016 to Office LTSC 2024) runs from .docx and RTF through OpenDocument and PDF to web pages, and EPUB isn't on it.

With pandoc, the command-line converter, the job takes five steps:

  1. Give every chapter title Word's Heading 1 style and every section title Heading 2. Don't fake a heading with bold 16 pt text.

  2. Accept or reject every tracked change. You can leave the comments in: pandoc drops them.

  3. Save the file as a Word Document (.docx), not the older .doc.

  4. In Terminal, run the conversion (change the names to yours):

    pandoc manuscript.docx -o book.epub -M title="My Book" -M author="Your Name" -M lang=en-GB --epub-cover-image=cover.jpg
    
  5. Run the result through EPUBCheck, then open it in a reading app and page through the chapters.

Why the styles do the work

Converters find chapters by style, not by how a line looks. According to calibre's manual, it builds the book's table of contents from paragraphs marked Heading 1, Heading 2 and so on. Apple's notes on book creation in Pages describe chapters the same way: a new chapter starts at each paragraph in a heading style that the document's table of contents lists without an indent. (You remove the indent in the table of contents view, with the style selected.)

Pandoc reads Word styles too. Its manual shows a paragraph in a style based on Word's Block Text coming out as a quotation. By default it also splits the EPUB into a separate file at each top-level heading. --split-level 2 splits at the next level down, and the manual suggests it for a long document with few chapters, because some reading apps slow down on very large chapter files. Readers see the same chapters either way.

Steps 2 and 3 come from how pandoc reads the file. Its --track-changes option is set to accept by default, so an insertion you meant to reject still ends up in the book, and a passage marked for deletion disappears. Pandoc reads .docx but not .doc. For an old .doc, calibre's manual gives two ways round: save it as .docx from a newer Word or from LibreOffice, or save it from Word as a web page with “Save as Web Page, Filtered” and convert that HTML instead.

Metadata and the cover

Pandoc fills the EPUB's title, author and language from the document's metadata, and the -M options in the command set them outright. The language comes from lang; without it, pandoc falls back to the locale of the computer. Pandoc also makes a random identifier for the book, and you can give an ISBN instead in a metadata file (the manual lists the fields it recognises). For the cover, the manual recommends an image under 1,000 pixels in width and height. Stores ask for other sizes, which the post on ebook cover sizes lists.

Pages, WordToEPUB, calibre and Google Docs

On a Mac, Pages opens .docx files; Apple's guide suggests dragging the file onto the Pages icon, because a double-click opens Word if you have it. Then choose File › Export To › EPUB, fill in the title and author, pick a cover and Reflowable, and under Advanced Options turn on “Use table of contents” and “Embed fonts”.

On Windows, WordToEPUB is free from the DAISY Consortium, runs on Windows 7 to 11 and adds a button to Word's ribbon.

Calibre converts .docx files from Word 2007 and newer without a detour through another format. Google Docs has exported EPUB since March 2016, when Google put “EPUB Publication (.epub)” under File › Download as.

What doesn't carry over

Layout tied to the printed page goes first. Apple's notes for Pages list linked text boxes and text wrapped around objects as things that won't appear in a reflowable EPUB, and they advise setting images and shapes inline with the text. Footnotes become endnotes in that export, and a font that isn't embedded gives way to the reading app's preferred font. If the layout has to survive, that's a fixed-layout EPUB, and readers lose the ability to change the type size.