Loona Automation logoLoona Text Tools
Home › Text Tools › DOCX to EPUB

DOCX to EPUB - Turn a Word Document into an Ebook

In short: choose a .docx file and get a valid EPUB ebook: Heading 1 and Heading 2 paragraphs become chapters, and paragraphs, bold, italic, lists and images are carried over. Honest partial-conversion note: complex Word styling, fancy tables, text boxes and exact page layout may be simplified - an EPUB is a flowing book, not a page replica. Documents up to 20 MB, converted on your device.

Writers and teachers finish their work in Word, but readers read ebooks. This converter bridges the two on your own device: it reads the document with the mammoth.js library (vendored on this site - no server), turns it into clean book chapters, and packs a standard EPUB you can open in our EPUB Reader or any ebook app.

📘
Drop your .docx file here, or click to choose it

Word documents up to 20 MB. Converted on this device only - nothing is uploaded.

Honest limit (partial conversion): headings, paragraphs, bold, italic, lists and images convert well. Complex Word styling, fancy tables, text boxes, headers/footers and exact page layout may be simplified or dropped - an EPUB is a flowing book, not a page replica. Check the chapter list before downloading, and open the result in our EPUB Reader to review it.
Private by design: everything in this tool happens 100% in your browser with JavaScript. Your files are never uploaded to a server, never stored and never seen by us - close the tab and everything is gone. DRM-protected books cannot and will not be converted.

How to use this tool

  1. Click the box above (or drag and drop) and choose a .docx file up to 20 MB (the old .doc format is not supported).
  2. Review the chapter list built from your Heading 1 / Heading 2 styles, and set the book title and author (we pre-fill them from the document's own properties when present).
  3. Click Build EPUB & Download, then open the result in our EPUB Reader to check it.

How it works

The document is read by mammoth.js, which maps Word styles to book HTML: headings, paragraphs, bold and italic runs, lists, and images (which are extracted and stored inside the EPUB). The HTML is then split into chapters at Heading 1 and Heading 2, and packed as a standard EPUB - mimetype first and uncompressed, container, package file with manifest and spine, EPUB 3 navigation plus NCX - using the same builder as our Text to EPUB tool, so the result opens in our own EPUB Reader.

Worked example

A teacher converts a 40-page .docx class reader. Its six Heading 1 sections become six EPUB chapters, the bold key terms and numbered lists survive, and the two diagrams appear as images inside the chapters.

Frequently Asked Questions

Is this DOCX to EPUB converter free?

Yes - completely free, with no sign-up, no account and no limit.

Is my document uploaded to a server?

No. The document is converted 100% in your browser with JavaScript (mammoth.js runs locally from this site). It never leaves your device and is never stored by us.

What converts well, and what may simplify?

Headings, paragraphs, bold, italic, lists and images convert well. Complex styling, fancy or merged tables, text boxes, headers/footers, footnotes and exact page layout may be simplified or dropped. This is a partial conversion by design - the page says so up front, and you can review the EPUB in our Reader.

Why .docx only, not .doc?

The old binary .doc format needs a different parser. Save the file as .docx from Word (File, Save As) and convert that.

Will the EPUB open in real readers?

Yes. It uses the standard EPUB structure and is tested to open in our own EPUB Reader on this site.

Related Text Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.