Skip to content
Real Self Publishing

How-to

How to export an EPUB from InDesign

InDesign can export an EPUB directly, but a print layout almost never exports cleanly on the first try. These are the steps that make the difference between a usable eBook and a jumble.

By the Real Self Publishing formatting team · Updated 7 min read

Key takeaways

  • InDesign exports two kinds of EPUB: **reflowable** for text-led books and **fixed layout** for design-led books.
  • A clean reflowable export depends on consistent paragraph and character styles, anchored images, and a defined content order.
  • Set content order with the **Articles** panel and map styles to HTML tags with **Export Tagging**.
  • Generate the eBook's navigation from an InDesign **table of contents style**.
  • Always validate the exported file with EPUBCheck and preview it in Kindle Previewer and Apple Books.

Reflowable or fixed layout?

Export typeUse forTrade-off
EPUB (Reflowable)Novels, memoirs, most non-fictionThe print design is not preserved; text adapts to the screen
EPUB (Fixed Layout)Picture books, comics, photo and art booksThe design is preserved, but text can't be resized and files are larger

This guide covers the reflowable export, which is the one that needs preparation. For fixed layout, see fixed-layout eBooks explained.

Step 1: Style everything

InDesign turns each paragraph and character style into a CSS class. Text formatted by hand, with no style applied, exports as messy one-off overrides. Before exporting:

  • Apply a paragraph style to every paragraph, including chapter titles, body text, quotes, and captions
  • Use character styles for italics, bold, and small caps instead of manual formatting
  • Clear style overrides (the + next to a style name)
  • Use Space Before/After in styles instead of empty paragraphs
  • Replace manual line breaks and tabs used for layout

Step 2: Map styles to tags

In each paragraph style's options, open Export Tagging and set the HTML tag: h1 for chapter titles, h2 for subheadings, p for body text. This is what gives the eBook real headings, which matter for navigation and for accessibility. You can review all mappings at once from the Paragraph Styles panel menu under Edit All Export Tags.

Step 3: Anchor images and add alt text

  • Anchor every image in the text where it should appear. Unanchored images are exported at the end of the story or out of sequence.
  • Group an image with its caption before anchoring so they stay together.
  • Add alt text under Object > Object Export Options > Alt Text.
  • In the same dialog, set how each image is sized and converted for EPUB.

Step 4: Set the content order

A print layout has no single reading order: text frames, sidebars, and pull quotes sit wherever the designer placed them. Open Window > Articles and drag the frames in, in the order they should be read. Leave out running heads, page numbers, and anything that shouldn't appear in the eBook. Then choose Same as Articles Panel for content order when you export.

Step 5: Build the table of contents

Create a TOC style under Layout > Table of Contents Styles that picks up your chapter-title style. In the export dialog, select that style under Navigation TOC. This generates the menu that reading apps show, which is separate from any contents page inside the book.

Step 6: Export and test

  1. Choose File > Export and select EPUB (Reflowable).
  2. Choose EPUB 3 as the version.
  3. Set the cover, the navigation TOC style, and the content order.
  4. Under Object, choose image resolution and format settings.
  5. Under Metadata, enter the title, author, language, and publisher.
  6. Export, then validate the file with EPUBCheck and preview it in Kindle Previewer and Apple Books.

Common InDesign EPUB export problems

ProblemUsual cause
Images appear at the end of the bookImages weren't anchored in the text
Text is in the wrong orderContent order wasn't set in the Articles panel
Running heads and page numbers appear in the textParent-page items were overridden or included in the export order
No table of contents in the reading appNo TOC style selected under Navigation TOC
Inconsistent fonts and spacingManual formatting and style overrides
Looks fine in Kindle Previewer but wrong on a deviceHard-coded fonts, colors, or sizes in the exported CSS

If the layout is complex or the deadline is close, our InDesign to ePub conversion service takes the packaged InDesign file and returns validated EPUB 3 and Kindle files, from $45.

Want it done for you?

Hand-formatted Kindle and ePUB files from $45, with unlimited revisions. See your exact price in seconds.

Frequently asked questions

Can InDesign export directly to Kindle format?

Not directly. Export an EPUB from InDesign and upload that to Amazon KDP, which converts it to Kindle format. Test the EPUB in Kindle Previewer first.

Why does my InDesign EPUB look different from the print layout?

A reflowable EPUB has no fixed pages, so text and images flow to fit the reader's screen and settings. Only a fixed-layout EPUB preserves the print design exactly.

Should I use the IDML or the packaged InDesign file for conversion?

For a conversion service, send the packaged InDesign folder (File > Package), which includes the document, linked images, and fonts. An IDML file alone is fine if images are embedded.

Do I need to edit the EPUB after exporting from InDesign?

Often, yes. InDesign's export usually needs its CSS simplified and occasional fixes to pass EPUBCheck cleanly, especially for books with many images or tables.