Turn a Markdown or HTML manuscript into an ebook
Paste a Markdown or HTML draft, or open a UTF-8 .md, .markdown, .html or .htm file. Set the book title, author and language if you want to supply them. Choose Convert to EPUB, then download the book. Your manuscript stays on your device throughout.
Use headings and book metadata
Headings at the top level of the manuscript structure become chapters at the highest heading level used there. For example, two Markdown headings that start with # make two chapters, while ## headings below them stay within those chapters. Text before the first chapter heading is kept. The EPUB includes a table of contents so readers can jump to each chapter.
The converter takes the book title from the HTML title or first heading when you leave the title blank. For the book language, enter a tag such as en or zh-CN. An HTML document can also supply its language through the lang attribute.
What carries over to EPUB?
The EPUB uses a reflowable layout that adapts to the reader’s font size and screen. It keeps common text formatting, lists, tables, code blocks, links to existing headings and supported images embedded in the source. Linked images on disk or the web, custom styles, scripts and multimedia are left out. An omitted image retains its alternative text when available.
Use the EPUB Reader to inspect the chapter order and layout. Run the EPUB Validator to check the book’s structure before sharing it.