Home › PDF Tools › PDF to EPUB

PDF to EPUB

Turn a text-based PDF into a reflowable EPUB 3 e-book that fits any screen. Broken lines are joined back into paragraphs, headings are detected from font sizes and used to split chapters, and pictures are embedded where they appear. Rename chapters, preview the book, then download the .epub file.

Last updated:

Options
Choose a PDF first.
Your e-book's chapters and a reading preview will appear here.
Table of contents (click a title to rename it)
  1. No chapters yet
Preview

What you will get

A standard EPUB 3 e-book with text that reflows to fit any screen and font size:

  • Paragraphs rebuilt from the PDF's broken lines
  • Headings detected from font sizes, used to split chapters
  • A clickable table of contents (nav + NCX)
  • Pictures from the PDF embedded where they appear
  • Title, author, language and cover metadata

Open a PDF above, or press Create a sample PDF to try.

Advertisement
Advertisement

How to use the PDF to EPUB

  1. Open your PDF by dropping it on the box or clicking to choose it. The conversion starts right away with sensible defaults.
  2. Check the book details: title and author are read from the PDF properties; correct them and pick the book's language.
  3. Choose how to split chapters: at the main headings (default), at level 1 and 2 headings, every N pages or as one long chapter, then press Convert to EPUB again.
  4. Review the table of contents: click a title to rename the chapter and use the preview to read through the result.
  5. Press Download EPUB and open the file in Apple Books, Kobo, Google Play Books, Calibre, Thorium or any EPUB reader.

How a fixed PDF becomes a reflowable e-book

A PDF stores every line of text at an exact position on a fixed page. An EPUB is a ZIP archive of small XHTML web pages plus a package file that lists the chapters, so the reading app can re-wrap the text for any screen. The converter bridges the two by reconstructing the document structure from the PDF layout:

In the EPUBHow it is recognized in the PDF
Paragraphs (<p>)Lines are joined while the spacing stays normal; a larger vertical gap, a first-line indent after a finished sentence, or a short last line ending in a full stop starts a new paragraph. Paragraphs cut by a page break are joined again.
Headings (<h1>–<h4>)Font size at least about 15% larger than the body text (largest = highest level), or a short, all-bold line standing on its own
Chapters (separate XHTML files)A new file starts at each heading of the chosen split level, or every N pages
Lists (<ul>, <ol>)Lines starting with •, ▪, –, * or 1. 2) a.; indented follow-on lines stay in the same item
Images (<figure>)Image objects painted on the page, extracted with their original pixels and inserted above the first line that follows them
RemovedPage numbers and lines that repeat at the top or bottom of many pages (running headers and footers)
Table of contentsChapter titles plus their next-level headings, written to nav.xhtml (EPUB 3) and toc.ncx (EPUB 2 readers)

What is inside the EPUB file

FilePurpose
mimetypeThe text application/epub+zip, stored uncompressed as the first file so readers can identify the format
META-INF/container.xmlPoints to the package document
OEBPS/content.opfMetadata (title, author, language, unique ID, modified date), the manifest of every file and the spine (reading order)
OEBPS/nav.xhtml, toc.ncxThe clickable table of contents
OEBPS/text/ch001.xhtml …One XHTML file per chapter, sharing one stylesheet (styles/book.css)
OEBPS/images/The cover and embedded pictures as JPEG, or PNG when they have transparency

Tips for a clean e-book

  • Best sources: novels, reports, manuals and articles exported from Word, Google Docs, InDesign or LaTeX. They have a real text layer and consistent heading sizes.
  • Too many chapters? Your PDF probably uses large type for things that are not chapters. Choose One chapter or Every N pages, or rename and keep the ones you want.
  • Chapters missing? If the chapter titles are the same size as the body text but bold, they are still found as minor headings; choose At headings of level 1 and 2 to split on them.
  • Two-column layouts are read in the order the PDF stores the text, which is usually column by column. Academic papers with complex figures may need manual tidying.
  • Convert a part of a long PDF with the Pages box, for example 15-120 to skip the front matter and index.
  • Want the opposite direction? Use EPUB to PDF. To read the result in your browser, open it in the EPUB Reader.

Frequently asked questions

How do I convert a PDF to EPUB?

Open the PDF on this page. The tool reads the text and layout with pdf.js, rebuilds paragraphs and headings, splits the book into chapters and shows a preview. Fix the title, author or chapter names if needed, then press Download EPUB. It is free and needs no account.

Why convert a PDF to EPUB at all?

A PDF has fixed pages, so on a phone or 6-inch e-reader you have to zoom and pan. An EPUB is reflowable: the text wraps to the screen and you can change the font size, font and margins in your reading app. Long text documents, reports and novels are much easier to read that way.

How are chapters detected?

The converter finds the font size of the main body text. Lines set noticeably larger become headings, the largest sizes being the top levels. In Auto mode the first heading level that is used at least twice starts a new chapter, so a single big title on page 1 is not treated as a chapter. If the PDF has no headings you can split every N pages instead.

Are images from the PDF included?

Yes, when Embed images is on. Photos and illustrations are taken from the PDF at their original resolution (capped at 1600 pixels) and placed at the point where they appear in the text. Small icons and logos repeated on every page are skipped. Pages without any text, such as scans, are added as full-page images.

Will the EPUB look exactly like my PDF?

No, and that is the point of a reflowable book. The text, paragraphs, headings, lists, bold, italics and pictures are kept, but the exact page layout, fonts, columns and positioning are not. Tables are converted as plain text lines, and complex magazine layouts or forms may need tidying afterwards, for example in Calibre or Sigil.

Can I convert a scanned PDF to an EPUB with real text?

Not directly. A scanned PDF only contains pictures of pages, so there is no text to reflow. This tool keeps those pages as images so you still get a readable EPUB; to get editable text, run the PDF through OCR (optical character recognition) first and then convert it here.

Does the EPUB work on Kindle?

Current Kindle apps and devices accept EPUB files sent through Amazon's Send to Kindle service, which converts them for you. Kobo, Apple Books, Google Play Books, PocketBook, Nook, Calibre and Thorium open the EPUB directly. The PDF is never uploaded by this page; conversion happens in your browser.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

EPUB to PDF ConverterConvert EPUB e-books to PDF with images, page size, font size, margins and clickable bookmarks.PDF to HTMLConvert PDF to a clean, responsive HTML page or an exact positioned layout, in your browser.PDF to WordConvert PDF files to editable Word documents.PDF to Text ConverterExtract the text from any PDF page by page, then copy it or save it as a TXT file.EPUB to Text ConverterExtract plain text from EPUB e-books, pick chapters, count words and download a TXT file.JPG to PDFCombine JPG photos into one PDF with page size, margins and orientation options.PowerPoint to PDFConvert PPTX slides to PDF, one page per slide at the original slide size. Batch files, no upload.OCR PDFMake scanned PDFs searchable and copyable with OCR in 70+ languages, or export the text.PDF to ExcelExtract tables from PDF files into an Excel spreadsheet (XLSX) or CSV, right in your browser.PDF to JPGTurn PDF pages into high-quality JPG images.PDF to PNGConvert PDF pages to PNG images with custom DPI and transparent background.Word to PDFConvert Word DOCX documents to PDF.Image to PDFConvert JPG, PNG, WEBP and more into a PDF.Text to PDF ConverterTurn plain text or a .txt file into a clean PDF with your font, size, margins and page size.HTML to PDF ConverterPaste HTML and CSS, preview it as pages and download a PDF, safely in your browser.Markdown to PDF ConverterWrite or paste Markdown, preview it with a clean theme and export a polished PDF in seconds.Excel to PDF ConverterConvert Excel and CSV sheets into tidy, paginated PDF tables with repeated headers.Extract Images from PDFPull every embedded photo and graphic out of a PDF as PNG or JPG, or save pages as images.PDF to PowerPointTurn every PDF page into a PowerPoint slide (PPTX) in 16:9, 4:3 or the PDF's own size.PDF to MarkdownConvert PDF to clean Markdown with headings, lists, tables, bold, italics and links.PDF to Long ImageStitch all PDF pages into one tall PNG or JPG image, with gap, width and page range options.PNG to PDFConvert PNG images to one PDF, keeping transparency or filling it with white or any color.HEIC to PDFConvert iPhone HEIC photos into one PDF in your browser, with page size, margins and reordering.CSV to PDFTurn a CSV file into a clean, paginated PDF table with repeating headers.PDF to TIFF ConverterConvert PDF pages to multi-page or single-page TIFF in color, grayscale or black and white.RTF to PDF ConverterConvert RTF documents to PDF with fonts, tables, images and page size options.SVG to PDF ConverterConvert SVG files to vector PDF with page size and fit options, or merge many SVGs into one PDF.TIFF to PDF ConverterConvert single and multi-page TIFF scans to PDF with page size and compression options.WEBP to PDF ConverterConvert one or many WEBP images to a PDF with page size, margins, layout and reordering.Add Image to PDFPlace a logo, photo or signature image on any PDF page. Drag, resize, rotate and set opacity.Compress PDF to 100KBShrink a PDF to 100KB or less automatically, keeping every page and page size.HTML to Word ConverterConvert HTML code or pasted rich text into an editable Word .docx document.Image to Word ConverterTurn JPG, PNG or screenshot text into an editable Word (.docx) document with OCR, in your browser.PDF ConverterConvert Word, Excel, PowerPoint, images, text, HTML or EPUB to PDF, and PDF to JPG, PNG, Word or text.Scanned PDF to Word (OCR)OCR scanned PDFs or page photos into an editable Word document with rebuilt paragraphs.Word to JPGTurn every page of a Word .docx document into a JPG image, free and in your browser.Cursive Writing WorksheetMake cursive tracing worksheets from any text: joined letters, dotted and faded rows. PDF.EPUB MakerWrite or import chapters, add title, author and cover, and export a valid EPUB 3 e-book.DjVu to PDFConvert DjVu scans and books to PDF, with resolution, compression and page range options.EML to PDFConvert .eml emails to PDF with sender, recipients, date, formatted body, images and attachments.MOBI to PDFConvert DRM-free MOBI, AZW and AZW3 e-books to PDF with chapters, images and page size options.MSG to PDFConvert Outlook .msg emails to PDF with headers, formatted body, images and attachment list.ODT to PDFConvert OpenDocument Text (.odt) files to PDF with headings, lists, tables and images.EPS to PDFConvert EPS and PostScript files to vector PDF in your browser, cropped to the artwork.PDF to CSVExtract tables from a PDF to CSV files, with draggable column lines to fix the columns.PDF to SVGConvert PDF pages to scalable SVG vector files, with text kept as text or as paths.PDF to WEBPConvert PDF pages to small, sharp WEBP images with a DPI choice and a quality slider.Images to PowerPointTurn photos into a PowerPoint .pptx deck, one image per slide, with captions and 16:9 or 4:3.LaTeX to PDFCompile LaTeX to PDF in your browser with a TeX engine, live preview, log and PDF download.Merge Word DocumentsCombine several .docx files in any order into one Word document, with page or section breaks.PDF to FlipbookTurn a PDF into a page-turning flipbook with zoom and fullscreen, and export it as an HTML ZIP.PowerPoint ViewerOpen and present .pptx files in your browser with thumbnails, speaker notes and full screen.Whiteboard Photo to PDFClean up whiteboard and blackboard photos: straighten, remove glare, whiten, then save as PDF.
See all 53 PDF Converters →