1/3/2019 Update: Originally Published In 2011 And Featured Instruction To Create An EPUB Ebook Using A Text Editor And Zip Files.
We recommend using our converter to make an EPUB from your DOCX file or using Calibre to create an EPUB.
Many new authors might make the mistake of thinking if they have a portable document format (PDF) of their book it means that we can read it on an ereader or other mobile device. While most times we can open the PDF, the text is far too small because it is a static or unchangeable image. EPUB ebooks can dynamically resize to fit the screen of any device. Since the text in EPUB format can change in terms of size, font and color, reading an EPUB book becomes a much more personal experience for the reader. Sounds great right? But how do you make an EPUB book?
What You’ll Need to make an EPUB Ebook
- A text editor (like Text Edit or Notepad) that can edit text files, HTML, and XML.
- A program that can create .zip files (which should be built into OS X or Windows).
Alright, first you’ll need to get all of the files together that you will later put into your master .zip file (called a container).
A Closer look at ePub files (*Be aware that file names are case sensitive*):
An .epub file has at least the following files/folders in it to function:
- mimetype – Typically a plain ASCII text file that has the line “application/epub+zip” in it. This file tells a reader/operating system what’s in the .ePub file. This file must be the first line in the zip file, and cannot be compressed.
- META-INF folder – Contains at least the container.xml file, which tells the reader software where to find the book in the container (typically in the content.opf file detailed below).
- OEBPS folder – Recommended location for the book’s actual content
1. Images folder – Contains any pictures used in your eBook.
2. content.opf file – An XML file that lists what’s in the container in the order they will appear, the manifest, spine section (which lists the reading order of the contents), and any metadata like author name, genre, and publisher. Any additional metadata will need tags similar to these required ones:
- dc:title – The book’s title
- dc:language – The language the book is in (here is a list of language codes).
- dc:udebtufuer- Every eBook has a unique ID code (UID). If you’re unsure what to use, try using your ISBN.
- toc.ncx file – Table of contents arranged with navpoint tags. Make sure the UID matches whatever is in your content.opf file because some readers won’t display your book properly if it doesn’t. The play order values found in this file must also be in order and will return an error if the order skips over a number.
- XHTML files – The book’s literal contents are listed in these files which are like HTML files with closing tags associated with each element. It is up to you how you arrange your content but having a separate .xhtml file for each chapter tends to look better on e-readers.
Now that you have all your files in order, you can make the .epub container that houses all of them.
How to Make the Container File for your EPUB Ebook
- First create a new .zip file
- Copy the uncompressed mimetype file into the .zip file
- Copy all of your other files (which should all be located in an OEBPS file) into the .zip file
1. The .zip file structure should look similar to this:
Change the .zip file extension to .epub.
Once you are done with these steps, you should have a readable eBook in a format that works on most readers. Now, all you should have to do is upload your work to Lulu!
Since 2002, Lulu has powered the knowledge-sharing economy by enabling creators in more than 225 countries and territories to publish over 2 million books. Lulu’s industry-leading tools and global network of print facilities provide creators with the resources to succeed on their terms.