EBW Knowledge Base

Zip the epub again

You’re done! Now to zip the package together again.

  • Create a new, empty folder with the title of your book as its name, no spaces, all lowercase is best.
  • Zip the empty folder. You now have an empty zip folder.
  • Now you’ll put the pieces of the epub into it, in the right order:
    • First, drag and drop the mimetype file into the zip folder.
    • Next, add the META-INF and the OEBPS folders (you can drag both into the folder at once, their order doesn’t matter, as long as the mimetype file is first).
  • Finally, change the .zip extension on your compressed folder to .epub.

This is easy on a Windows machine. If you’re on a Mac, this often doesn’t work, because of the way most Mac-based zip software (e.g. Stuffit) works. For a slightly advanced way (using Applescript) to create zips as epubs on Mac, see this article about the ePub Zip utility or this one (which shows you how to zip from a command line on OS X or Linux).


  1. For Mac, ePub Zip is a fun, free Applescript-based utility. Just drag your files onto the ePub Zip icon, and out pops your zipped up ePub file with everything in its proper place.

  2. Amber says:

    You, my friend, have just saved me hours of frustration. Thank you.

  3. eze says:

    You are a genius!!!

  4. Rosie says:

    Thank you, thank you, thank you! this was doing my head in – had tried everything else I could find on the web and this is the ONLY thing that works. Perfect, first time.

  5. Lexie says:

    This entire section has been such a life-saver! It seems bizarre that even a simple ePub from InDesign needs so much extra tweaking to get it working – I am so grateful for these articles. You’ve saved me hours of time and most of my sanity :)

  6. Brina says:

    I’ve done this exact process dozens of times with great success. All of a sudden it isn’t working anymore. I do it exactly this way, then try to open the epub in Calibre and it can’t read it. I feel like I’m losing my mind! Has anyone ever run into something like this?

  7. Arthur says:

    @Brina: Are you still having trouble? If you’ve changed the program you use to zip, that can have an effect if it’s ordering the contents of the zip file differently.

    Otherwise, would it work to open and edit the epub in Sigil rather than doing so manually?

  8. Victor says:

    after zipping the folder, how do you change the .zip to .epub? The .zip does not appear as part of the zipped folder’s name

  9. Arthur says:

    If you can’t see the .zip file extension, it may be because your computer is hiding file extensions. This is very common on Windows. Here is an article on how to show file extensions: http://fileinfo.com/help/windows_show_extensions

  10. Esther says:

    This worked perfectly! Thanks

Leave a Reply