iformat.io Logo iformat.io

DOCX to EPUB Conversion: How to Preserve Formatting

P
Updated May 17, 2026
8 min read
Converting a Word document to EPUB sounds simple — until you open the result and find broken layouts, missing images, and chapters that have merged into one long wall of text. The problem is not the conversion tools. The problem is that DOCX and EPUB handle formatting in fundamentally different ways. Word uses fixed page layouts with exact margins and page breaks. EPUB uses reflowable text that adapts to any screen size. Getting a clean conversion requires preparing your DOCX file properly before you convert.

Why DOCX to EPUB Conversion Breaks Formatting

Word documents are designed for printing on fixed-size paper. Every element has an exact position on the page. EPUB, by contrast, is essentially a website packaged in a file — HTML and CSS that reflow to fit any screen, from a 6-inch Kindle to a 13-inch iPad. When a converter translates DOCX to EPUB, it must map page-based formatting to flow-based formatting. Some things translate cleanly. Others do not.
What converts well: heading styles, bold and italic text, numbered and bulleted lists, simple images, and basic paragraph formatting. What converts poorly: text boxes, columns, manual spacing (hitting Enter multiple times), tab-based alignment, headers and footers, page numbers, and complex tables with merged cells. The more your document relies on visual positioning rather than structural formatting, the worse the conversion will be.

Step 1: Use Heading Styles (The Most Important Step)

The single biggest improvement you can make to your DOCX-to-EPUB conversion is using Word's built-in heading styles instead of manually formatting text. Chapter titles should be Heading 1. Section titles should be Heading 2. Subsections should be Heading 3. The EPUB converter uses these heading levels to generate the table of contents and create chapter breaks automatically.
What most people do wrong: they select the chapter title text, increase the font size to 18pt, make it bold, and maybe center it. This looks like a heading on screen, but the converter sees it as a regular paragraph with big bold text. There is no structural distinction between that and any other paragraph. Apply Heading 1 from Word's Styles panel instead, and the converter knows exactly where each chapter starts.
To apply heading styles in Word: select your chapter title text, go to the Home tab, and click "Heading 1" in the Styles group. You can customize how Heading 1 looks (font, size, color) by right-clicking the style and choosing "Modify." The visual appearance can be whatever you want — what matters is the underlying style tag.

Step 2: Clean Up Images for EPUB

Images in EPUB should be appropriately sized for screen reading. A 4000x3000 pixel photo is overkill for an eBook — it inflates file size without visible benefit on a 6-inch e-reader. Resize images to a maximum of 1200 pixels on the longest side for full-page illustrations, or 800 pixels for inline images. Use JPEG for photographs and PNG for graphics, charts, and images containing text.
In Word, ensure images are set to "Inline with Text" wrapping, not "Square," "Tight," or "Behind Text." Inline images convert reliably to EPUB. Floating images with text wrapping are page-layout features that EPUB cannot reproduce. If your document has floating images, switch them to inline before converting. Right-click the image, then Wrap Text, then In Line with Text.

Step 3: Simplify Tables

Tables are the trickiest element in DOCX-to-EPUB conversion. Simple tables with a few columns and rows convert reasonably well. Complex tables with merged cells, nested tables, or many columns (6+) will almost certainly break on small e-reader screens. A 5-column table that looks fine on an 8.5x11 page becomes unreadable on a 6-inch Kindle screen.
Before converting, evaluate each table: can it be simplified to 2-3 columns? Can the data be presented as a list instead? For comparison tables, consider using bold text with descriptions rather than a grid layout. If you must keep a complex table, know that readers will likely need to rotate their device to landscape mode to read it.

Step 4: Remove Page-Specific Formatting

EPUB does not have pages in the traditional sense — content flows continuously, and the reader app decides where to break. Remove these page-specific elements before converting: Headers and footers: EPUB readers ignore them (they add their own reading progress indicators). Page numbers: meaningless in reflowable text. Manual page breaks: use Heading 1 styles instead to signal chapter breaks.
Multiple blank lines: Replace sequences of empty paragraphs with proper spacing in paragraph settings. Two Enter keys between paragraphs in Word create unpredictable gaps in EPUB. Tab characters for indentation: Use paragraph indentation settings instead. Tabs render inconsistently across EPUB readers. Text boxes: Convert to regular paragraphs with styling. Text boxes have no equivalent in EPUB.

Method 1: Online Conversion with iformat.io

For straightforward documents — novels, non-fiction books, reports — an online converter is the fastest path. Upload your prepared DOCX file to iformat.io's DOCX to EPUB converter and download the result. The conversion handles heading-based chapter detection, image embedding, and basic metadata automatically.
Online conversion works best when your DOCX is properly prepared with heading styles and inline images. If your document uses manual formatting heavily, expect to do some cleanup on the EPUB afterward. The advantage is speed — you get a usable EPUB in under a minute without installing any software.

Method 2: Calibre for Full Control

Calibre gives you granular control over every aspect of the DOCX-to-EPUB conversion. After adding your DOCX file to Calibre and clicking "Convert books," explore the conversion settings: Look and Feel: control fonts, text size, and layout. Table of Contents: customize how chapter headings are detected and organized. Search and Replace: fix systematic formatting issues using regex patterns.
Calibre also includes an EPUB editor where you can directly modify the HTML and CSS of the converted file. This is invaluable for fixing specific formatting issues that the automatic conversion missed. If a particular chapter heading did not get detected, you can add the correct HTML tag manually.

Method 3: Pandoc for Technical Documents

Pandoc is a command-line document converter that excels at technical documents with code blocks, mathematical equations, footnotes, and cross-references. If your DOCX contains LaTeX math, programming code, or academic citations, Pandoc often produces better EPUB output than Calibre. The command is simple: pandoc input.docx -o output.epub.
Pandoc supports custom CSS for styling: pandoc input.docx -o output.epub --css=style.css. You can control typography, code block appearance, and heading styles precisely. For academic papers and technical manuals, Pandoc combined with a well-crafted CSS file produces professional results that rival commercial tools.

Common Formatting Issues After Conversion

Fonts do not transfer: EPUB readers use their own fonts (or system fonts). Your carefully chosen Times New Roman or Garamond will be replaced by the reader's default. This is by design — EPUB lets readers choose their preferred font. You can embed fonts in an EPUB, but most e-readers ignore them anyway.
Columns disappear: Multi-column layouts have no equivalent in reflowable EPUB. Content converts to a single column. Footnotes become endnotes: Most EPUB readers display footnotes as pop-up links or endnotes. The content is preserved but the presentation changes. Drop caps may vanish: Decorative first-letter styling often does not survive conversion.

Testing Your EPUB on Multiple Readers

Never assume your EPUB looks good everywhere based on one reader. Test on at least two different applications. Apple Books renders EPUBs differently from Google Play Books, which renders differently from a Kobo device. Calibre's built-in viewer is great for quick checks. For final validation, test on the actual device or app your primary audience will use.
Check these specific elements: table of contents navigation, chapter breaks, image placement and sizing, list formatting, and overall text spacing. If something looks wrong, go back to your DOCX, fix the source formatting, and reconvert. Fixing issues in the source document is always easier than editing the EPUB directly.

Pro Tip: Start with EPUB-Friendly Formatting

If you know from the start that your document will become an EPUB, write with that in mind. Use heading styles from the beginning. Keep images inline. Avoid complex tables. Skip manual formatting tricks. Some authors write in Markdown and convert to both DOCX and EPUB from the same source, giving clean output in both formats.
If you also need a PDF version of your document, convert DOCX to PDF for the fixed-layout version and DOCX to EPUB for the reflowable version. For converting your finished EPUB to PDF for print proofing, use the EPUB to PDF converter. Having both formats covers every reading scenario — fixed layout for printing and reflowable for screens.
Browse All Posts