ToolsEdit PDFArticlesPricingContact
TryPDFKit
Ebooks tool

Convert Markdown to EPUB

Turn a Markdown file into a finished ebook. Every top-level heading starts a chapter, and a table of contents is built from them. Nothing leaves your device.

  • 3 free uses, 10 with a free account
  • File stays on your device
  • Headings become chapters
  • No watermark

Drop your file here

or click to browse your device

  • MD
  • MARKDOWN
  • MDOWN
  • TXT
Files never leave your device
  • Files stay on your device
  • 3 free uses, no account needed
  • Works offline once loaded
How was Markdown to EPUB?
Be the first to rate this tool.
1How it works

Markdown to EPUB in three steps

  1. 01

    Add your Markdown file

    Drop a .md, .markdown or .txt file on the page. Add an optional cover picture.

  2. 02

    Set the details

    Type the title, author and language, or leave them to be taken from the text.

  3. 03

    Download your EPUB

    Each top heading is a chapter, and the contents list matches.

2The details

What you get, and what to know

What you get

  • Writer-friendlyHeadings, emphasis, lists, links, quotes, code and tables in Markdown are all converted.
  • Chapters from top headingsUse # for chapter titles. Sub-headings stay inside the chapter.
  • Text files welcomePlain .txt files containing Markdown are accepted too.
  • Cover and metadataAdd a JPG or PNG cover plus title, author and language.

Good to know

  • Pictures need to be embeddedImages given as data in the file are included, and web images remain links. Pictures with local file paths cannot be reached from one file and are dropped.
  • One file per bookChapters must be in the same Markdown file. Join separate books afterward with Merge EPUB files.
  • Styling is up to the readerThere is no custom CSS. The book uses a simple default look. For a styled Word manuscript, try DOCX to EPUB.
3Use cases

When people use Markdown to EPUB

Publish a book written in plain text

Go from your notes app or editor to an ebook.

Ship documentation as an ebook

Turn a README or handbook into something readable offline.

Make class notes portable

Bundle your Markdown notes into a single book.

Share a newsletter collection

Combine posts into a file readers can download.

How your Markdown maps to a book

A line starting with # is a top heading, and it begins a new chapter. Lines starting with ## become section headings inside it. The contents list in the EPUB follows these headings.

If your file has only one # heading, the whole text is one chapter, so use ## for sections or add more # headings.

A simple writing checklist

Before converting, check:

  • One # per chapter title.
  • Blank lines between paragraphs.
  • Pictures included as data if you want them inside the book.
  • Title and author typed in the settings rather than repeated in the text.

After conversion

Open the EPUB and look at the contents. Validate EPUB checks the structure. If you want a deeper contents list, EPUB table of contents generator can rebuild it from the headings.

4FAQ

Questions, answered

How do I convert Markdown to EPUB?+

Add your .md file, enter a title and author, and download. Each top-level heading becomes a chapter.

Does it support tables and code blocks?+

Yes. Tables, lists, quotes and code are converted.

Is my file uploaded?+

No. The conversion runs in your browser.

Can I add a cover image?+

Yes. Add a JPG or PNG in the optional cover slot.

Does it work on a Mac or phone?+

Yes, in any modern browser on Windows, Mac, iOS and Android.

What if my images do not show?+

Images with local file paths are dropped. Embed them as data in the file, or add the cover with the cover slot.

+Keep going

Related tools