Skip to content
Jellykit

PDF to EPUB Converter

Convert a text-based PDF into a reflowable EPUB e-book, with chapters taken from its bookmarks or headings, for reading on e-readers and phones.

  • Runs on your device
  • Works in the background
  • Loads an engine on first use
Loading tool

About PDF to EPUB Converter

A PDF keeps every line where the printer put it, which makes it hard to read on a small screen. This tool takes the text out of the PDF, joins the lines back into paragraphs, and writes an EPUB 3 book whose text reflows to fit any e-reader, phone or tablet. Chapters come from the bookmarks when the PDF has them, otherwise from its headings, otherwise from page ranges, and you can correct the title, author and language before saving.

It is a best-effort conversion of the words and their simple structure. Images, tables, columns, footnotes and the exact layout do not carry over, and a scanned PDF has no text to convert until it has been through OCR.

How it works

  1. pdf.js, loaded from this site on first use, reads the strings each page draws, with their positions and sizes, along with the bookmarks, title, author and language.
  2. Strings on one baseline become lines; nearby lines of a similar size become paragraphs. A word hyphenated at a line end is closed up unless the document spells it with a hyphen elsewhere, and a paragraph cut by a page break is joined again.
  3. With the option on, a line at the top or bottom of a page is dropped when it is only a page number, or when the same words stand there on at least 3 pages and one page in five. Text larger than the body is never dropped.
  4. The EPUB is written in a background worker: a package document with the title, author, language and date, a table of contents, and one XHTML file per chapter, every character escaped.

Questions

What happens to images, tables and columns?

Images are left out. A table becomes plain paragraphs of its cell text. Pages set in two or more columns are read straight across, so their lines run together: this tool suits single-column documents such as reports, papers and novels. Footnotes stay as ordinary paragraphs where they stood on the page.

Why does my PDF say it has no text?

A scanned PDF stores pictures of pages, with no text to take out. Run it through the OCR tool on this site to add a text layer, then convert the result. If only some pages are scans, the EPUB is made from the rest and the tool lists the pages it left out.

How are the chapters chosen?

Best available uses the PDF’s bookmarks, down to the first level that gives at least two chapters. Without bookmarks it splits at headings, found as short text set at least 15% larger than the body. Without either it makes one chapter per number of pages you choose, named by the pages it covers.

Will it look the same on every e-reader?

No. The book is plain reflowable text with light styling, and each reader applies its own fonts, margins and page breaks. It is a valid EPUB 3, with an older-style table of contents included for readers that need one.

How large a PDF can it convert?

Files up to 300 MB and 5,000 pages. The PDF is read and the EPUB built entirely in your browser, so a very long book can take a minute on a slower phone; you can cancel at any time.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.