Loona Automation logoLoona Text Tools
Home › Text Tools › Text / Markdown to EPUB

Text / Markdown to EPUB - Make Your Own EPUB Ebook

In short: paste or upload plain text or Markdown, add a title and author, and download a valid EPUB ebook - correct structure (mimetype first and uncompressed, container, package file, navigation and NCX), chapters split on Markdown headings, with basic Markdown formatting (headings, bold, italic, lists and paragraphs) preserved. The result opens in our own EPUB Reader and in standard ebook readers.

Writers, teachers and students often have a finished text but no ebook. This builder turns that text into a real EPUB - not a renamed zip - using the exact rules ebook readers expect, entirely on your device.

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. Paste your text into the box, or upload a .txt / .md file (up to 20 MB).
  2. Add a title and, if you like, an author. Keep Markdown ticked for .md text: # and ## headings start new chapters. For plain text, chapters start at lines like “Chapter 2” and paragraphs are separated by blank lines.
  3. Click Build EPUB & Download, check the chapter list, and open the file in any EPUB reader - including our free EPUB Reader.

How it works

The builder assembles the EPUB in the only order the standard allows: the mimetype entry goes into the zip first and uncompressed, then META-INF/container.xml pointing at the package file (OPF) with the title, author, manifest and reading order (spine). It writes both the EPUB 3 navigation document and the older NCX table of contents so old and new readers both work, plus a title page and one XHTML file per chapter. Markdown is converted safely - your text is escaped first, then headings, bold, italic, lists, quotes and paragraphs are turned into clean XHTML.

Worked example

A teacher pastes a 6-chapter class reader written in Markdown, titles it “Class 6 Geography Notes”, and downloads one EPUB. Students open it in the Loona EPUB Reader on their phones - chapter list, headings and bold key terms all intact.

Frequently Asked Questions

Is this text to EPUB converter free?

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

Is my text uploaded to a server?

No. The EPUB is built 100% in your browser with JavaScript. Your text never leaves your device and is never stored by us.

How are chapters decided?

In Markdown mode, lines starting with # or ## start a new chapter. In plain-text mode, lines like 'Chapter 2' start a new chapter and paragraphs are separated by blank lines; with no chapter lines, the whole text becomes one chapter.

Which Markdown is supported?

Headings (## and below inside chapters, # / ## as chapter breaks), bold, italic, bullet and numbered lists, blockquotes, inline code and simple web links. Complex tables and images are not supported.

Will the EPUB open in real readers?

Yes. It follows the EPUB structure - mimetype first and stored uncompressed, container.xml, OPF manifest and spine, EPUB 3 navigation plus NCX - and it is tested to open in our own EPUB Reader on this site.

What is the size limit?

Text or files up to 20 MB are handled in the browser; larger input gets a clear message.

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.