Text / Markdown to EPUB - Make Your Own EPUB Ebook
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.
Chapters created
How to use this tool
- Paste your text into the box, or upload a .txt / .md file (up to 20 MB).
- 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.
- 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
EPUB Reader
Open the EPUB you just made - read it right here with chapter list and dark mode.
EPUB to Text
Turn an EPUB ebook into a clean plain-text file, chapters in reading order.
EPUB to HTML
Turn an EPUB ebook into one self-contained HTML file you can open anywhere.
Word Counter
Count words, characters, sentences and reading time in any text.