Last updated: 12 November 2026
To convert HTML to EPUB, save the article as an HTML file and run it through a converter, such as an online tool, Pandoc or Calibre. The result is a reflowable ebook that resizes to your screen. For a long web article, the cleanest results come from stripping the page down to the article text first, then converting.
This guide covers four ways to do it, how to get a clean source file, what to check afterwards, and how to get the EPUB onto your device.
What's the best way to convert HTML to EPUB?
The best way depends on how often you do it and how comfortable you are with software. For a one-off article, an online converter is quickest. For a regular habit, or for turning many pages into one book, Pandoc or Calibre gives you more control.
| Method | Best for | Effort | Control over chapters and metadata |
|---|---|---|---|
| Online converter (upload an HTML file) | One-off articles, no installs | Low | Title and author fields; automatic structure |
| Pandoc (command line) | Technical readers, batches, scripts | Medium | High: title, cover, table of contents depth |
| Calibre desktop app | Collections, editing metadata, bulk work | Medium | High, with a visual editor |
| Print to PDF, then convert | Last resort only | Low | Poor: you inherit the PDF's page layout |
We'd steer you away from the last route. A PDF fixes the text to a printed page, with headers, footers and page breaks baked in, and then has to be un-fixed again. Converting the HTML directly keeps the headings and paragraphs as real structure. Our article on why PDFs are hard to read on a Kindle explains the underlying problem.
How do I get a clean HTML file from a web article?
Save only the article, not the whole page. Menus, cookie banners, comment sections and "related stories" blocks all become text in your ebook if they are in the file.
Pick whichever of these suits the site:
- Reader view first. Most browsers have a reader mode that removes navigation and ads. Not every browser lets you save the reader-mode version as HTML, so you may need to copy the article text into a document instead.
- Save Page As, "Webpage, complete". This gives you an
.htmlfile plus a folder of images. Keep the two together; the HTML refers to the images by relative path, so if you move only the HTML file, the pictures disappear. - Copy into a document. Select the article, paste it into a Word, LibreOffice or Markdown file, and delete what you don't want. We support DOCX and Markdown as inputs too, so this is a legitimate route when a page is messy.
- Check the terms. Saving an article for your own reading is one thing. Redistributing it is another, and that depends on the site's licence and your country's copyright law.
Two details matter before you convert:
- Single-page view. Long articles are often split across "Page 1 of 5". Look for a "view all" or "print" version, which usually puts the full text on one page.
- Lazy-loaded images. Some sites only load images as you scroll. Scroll to the bottom before saving, or the file may contain placeholders instead of pictures.
How do I convert an HTML file to EPUB online?
Upload the file, set a title and author, and download the EPUB. It takes a few minutes at most for a typical article.
On Convert2EPUB, the steps are:
- Open the home page converter and drop in your file. HTML is listed among the accepted formats, with a limit of 100 MB per file.
- Leave the mode on Auto unless you have a reason to change it. For an article, you want reflowable text, not fixed layout.
- Choose a target device if you have one: tablet or general, 6-inch e-ink, 7-inch e-ink, or generic e-ink.
- Fill in the title and author under "The book". Web pages often have an unhelpful
<title>such as the site name followed by a slogan, and this is what will show in your library. - Choose Convert to EPUB and download the result.
There is a dedicated HTML to EPUB page with the same tool. If you're not sure which mode to pick, the reflowable vs fixed layout guide covers it; for articles, reflowable is almost always right.
If you saved a "complete" page with an images folder, the safest approach is to check whether pictures survive in the output. If a converter only accepts the single HTML file and your images are in a separate folder, they may be missing. In that case, zip the page and folder together if the tool accepts archives, or use Pandoc or Calibre, which can read the images from disk. Whether a given online tool resolves a local images folder isn't something we can promise for every page, so always check the result.
Can I convert HTML to EPUB with Pandoc or Calibre?
Yes. Both are free, run on your own computer, and handle HTML well. Pandoc suits people comfortable with a terminal. Calibre suits people who want a window and buttons.
Pandoc
Pandoc is a document converter with an EPUB output format. A basic command looks like this:
pandoc article.html -o article.epub --metadata title="Article title" --metadata author="Author name"
Useful additions:
--tocbuilds a table of contents from the headings. EPUB output includes navigation by default, but you can control its depth with--toc-depth=2.--epub-cover-image=cover.jpgadds a cover.--split-level=2(called--epub-chapter-levelin older versions) controls which heading level starts a new chapter file.- Pandoc can also take a web address as the input instead of a file, which skips the saving step. The result still includes whatever clutter the page contains.
To join several articles into one book, list the files in order: pandoc part1.html part2.html -o collection.epub. Each article's top heading becomes a natural chapter.
Calibre
Calibre's conversion engine accepts HTML and outputs EPUB. Add the file to your library, click Convert books, and set EPUB as the output. Before converting, edit the metadata (title, author, cover) and, in the Structure Detection and Table of Contents panels, tell it which heading level marks a chapter. Calibre also has a command-line tool, ebook-convert, if you want to script it.
How do I check the EPUB before I send it to my reader?
Open the file in an EPUB reader on your computer or phone first. A thirty-second look catches most problems, and it's much easier to fix before the file is on your device.
Run through this checklist:
- Title and author show correctly in the library view.
- Table of contents exists and its entries jump to the right places. If it's empty, the source HTML probably lacked proper heading tags. Our guide to fixing a missing table of contents explains how structure is built; the same logic applies to HTML.
- Images appear and are not oversized or broken.
- Leftover clutter: "Share this", "Subscribe", cookie notices, or comment text at the end.
- Text reflows when you change the font size. If it doesn't, you've probably got a fixed-layout file.
- Links: footnotes and in-article links should still work. Links to the web will be dead offline, which is expected.
Common problems and fixes:
| Problem | Likely cause | Fix |
|---|---|---|
| Missing images | Images were remote or in a separate folder | Re-save as "complete" and keep the folder together, or use Pandoc/Calibre |
| No chapters | Source has no <h1>/<h2> headings | Add headings in a text editor, or convert from a document instead |
| Menu text in the book | Whole page saved | Re-save from reader view or delete the clutter from the HTML |
| Odd title in library | Page <title> used | Set the title and author in the converter |
| Huge file | Full-size images embedded | Use a smaller version of the page or fewer images |
How do I get the EPUB onto my e-reader?
Use whichever route your device supports: USB copy, email, or the manufacturer's app. For Kindles, an EPUB can be sent directly and does not need conversion to MOBI.
- Kindle: our guides on sending an EPUB to your Kindle and on whether you still need MOBI or AZW3 cover the current process. The converter also offers AZW3 if you want to copy a file over USB.
- Kobo, PocketBook and most other readers: connect by USB and drag the EPUB into the device's books folder, or use the vendor's app.
- Phones and tablets: open the EPUB in any reading app.
If you have a small e-ink screen, our guide to EPUB settings for a 6-inch e-ink reader explains which options belong in the file and which on the device.
If you'd rather not manage command lines or software, you can upload the HTML file to Convert2EPUB and get a reflowable EPUB with a table of contents.
Frequently asked questions
Can I convert a web page to EPUB without saving it first?
Pandoc can read a URL directly, so you can skip the manual save. Most online converters want a file upload instead. Either way, check the result for navigation and ad text, because a live page contains more than the article.
Will images be included in the EPUB?
Usually, if they were saved with the page and the converter can find them. Pandoc and Calibre embed images they can reach. With an online tool, confirm the pictures appear in the output; broken images typically mean the converter only saw the HTML file and not its images folder.
Is converting a web article to EPUB legal?
Making a copy for your own offline reading is commonly done, but the rules vary by country and by the site's terms. Sharing or republishing someone else's article generally needs permission or a suitable licence. We can't give legal advice, so check the terms if you plan to do more than read it yourself.
Why does my EPUB have no table of contents?
Tables of contents are built from headings. If the web page uses bold text or styled paragraphs instead of real heading tags, converters have nothing to detect. Add heading tags to the source, or set the heading level manually in Pandoc or Calibre.
Is EPUB better than PDF for saved articles?
For reading on an e-reader or phone, generally yes, because the text reflows to fit the screen and you can change the font size. PDF is better when you need the exact printed layout. Our EPUB vs PDF comparison goes through the trade-offs.
Ready to convert your own PDF? It's free for ordinary text documents, no account required.
Convert a PDF to EPUB →