How to Create an EPUB File
Creating your own EPUB ebook file is easier than you think. Whether you're self-publishing a novel, converting a document, or packaging a report, here are the best methods in 2026.
Method 1: From a Word Document (Easiest)
If you've already written your book in Microsoft Word or Google Docs, converting to EPUB is straightforward.
Using Calibre
- Save your document as .docx
- Open Calibre, click "Add books," select your DOCX file
- Click "Convert books," choose EPUB as the output format
- Set metadata (title, author, cover), click OK
- Right-click the book → "Save to disk" to get the EPUB file
Using Pandoc (Command Line)
For developers: pandoc input.docx -o output.epub --epub-cover-image=cover.jpg. Fast, scriptable, and excellent for batch processing.
Method 2: From HTML/Markdown
If you write in Markdown or HTML, Pandoc is the best tool:
pandoc chapter1.md chapter2.md chapter3.md -o book.epub \
--metadata title="My Book" \
--metadata author="Your Name" \
--epub-cover-image=cover.jpg \
--toc
This creates a properly structured EPUB 3 file with a table of contents and cover image.
Method 3: Using Sigil (Full EPUB Editor)
Sigil is a free, open-source EPUB editor that lets you create EPUBs from scratch with full control over the HTML, CSS, and book structure.
- Download and install Sigil
- Create a new EPUB (File → New)
- Add chapters as XHTML files
- Write or paste your content
- Add images, fonts, and CSS styling
- Edit the table of contents
- Save as EPUB
Sigil is best for authors who want pixel-perfect control over formatting.
Method 4: Online Tools
Several online tools let you create basic EPUBs without any software. For existing EPUBs, Epublys lets you edit metadata, merge files, and compress the result.
After Creating Your EPUB
- Validate your EPUB — check for errors before publishing
- Edit metadata — make sure the title, author, and description are correct
- Add a cover image — essential for online stores and libraries
- Compress the EPUB — optimize file size for distribution
- Send to Kindle — test how it looks on Kindle
EPUB Structure Basics
An EPUB is a ZIP file containing XHTML content, CSS styles, images, and an OPF manifest. Understanding this helps when troubleshooting formatting issues. Learn more in our What is an EPUB file? guide.
Related Guides
Try it now — free
Edit EPUB metadata online. Change title, author, description, language, publisher. Free ebook metadata editor - no software needed.
Edit EPUB Metadata →Found this helpful? Share it