Is there a way to convert (preferably in batch) .doc files with images to .epub without the loss of the images and formatting?

  • 1
    You should be able to do this with pandoc. Without more information, it's hard to give you much more help.
    – elixenide
    Dec 9, 2015 at 19:52

2 Answers 2


Calibre is very useful piece of software for ebook-handling purposes, it has many options for converting between formats and generally does a good job keeping the original formatting and images intact. Also works for batch conversion.

  • 1
    afaik, you can't use calibre to convert directly between .doc and any useful format, but you can use it to convert from .docx to .epub, so save your DOC files as .docx first.
    – Auspex
    Feb 20, 2016 at 22:44

I have not found a way to do this without losing formatting or the formatting getting all munged.

No, you don't want to do it this way because, as you mentioned, formatting is not retained. Even when you follow DOC setup closely, like with Smashwords, you will still have problems. Starting an EBOOK in .DOC format is the worst, most time-consuming way to go. I've done it. What's more, using the DOC to EPUB method, the formatting will look different on different devices. It's an all around headache that's not worth the hassle.

So I wrote a Perl program where you write your book in MultiMarkdown and it creates an EPUB for you. It's MUCH easier that way. But you do have to install Perl to use it. (It's free.)

  • This post is flat-out wrong. Calibre does retain all formatting when converting a .docx file to .epub (as long as the .docx file actually contains correct formatting). But this post is, additionally, pointless without a link to the Perl script recommended.
    – Ed999
    Jun 14, 2020 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.