I have a number of short HTML files (actually they are XHTML) with small problems and answers, which I post on my blog every Sunday, and I'd like to merge some of them in an ebook. I already did it once, just by stripping the headers and footers and merging them together; then I create the epub skeleton with Calibre and tweaked it with Sigil. But since there are a lot of internal links, it is a time-consuming process.

Is there a simpler way?


I assume you don't write the HTML directly, but use something like MarkDown or reST. But even if you do, you should look at Pandoc.

The program can read HTML and generate EPUB 2 or EPUB 3 (among others).

| improve this answer | |
  • 2
    actually I write my HTML directly (I am quite old, I started using Mosaic :-) ) Pandoc seems quite interesting, indeed! – mau Dec 23 '13 at 11:50
  • @mau I used Mosaic as well (how much nicer than using gopher and WAIS). Nothing wrong with writing HTML directly, it is just not seen to often nowadays. – Anthon Dec 23 '13 at 11:57
  • gopher, Veronica and WAIS had a different scope, after all, more towards classification :-) – mau Dec 23 '13 at 15:01

Since you mention you post to your blog each Sunday, if you have or can provide an RSS feed you may find the following online free service useful http://newstoebook.com/ I've been using it to create ebooks of one of my project blogs. The resulting ebook (I create .mobi books for Kindles) have been readable.

I expect there will be limitations so YMMV for your blog posts.

| improve this answer | |
  • newstoebook seems great, but unfortunately my feed has only the problems (while problems and solutions are stored on my site). Thanks for the suggestion, however! – mau Dec 23 '13 at 15:03

You can use Papyrus for creating ebooks from blog posts or any webpage.

If you already have a blog, you can use this link to convert your blog to book)

Your book will be generated in EPUB, Mobi(Kindle) and PDF formats.

Disclosure: I am the creator of this site.

| improve this answer | |

Calibre can convert XHTML 1.1 + CSS 2.1 to epub. It's only guaranteed to output valid epub if the input is valid. It's free and open-source.

| improve this answer | |

If your files really are genuinely valid XHTML, you could even write an XSLT2 script to do the job yourself. That way you can cater for any idiosyncracies in your XHTML which other systems may not be designed to handle.

| improve this answer | |
  • I never managed to grasp even old XSLT... – mau Jan 3 '14 at 17:03
  • Is it -can XSLT crewe a zip file i.e. the epub container? – mmmmmm Jan 6 '14 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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