PDF to EPUB
Convert PDF documents to EPUB e-book format
100% Private: All processing happens in your browser. Your files never leave your device.
TryDocsy’s PDF to EPUB converter extracts selectable text from PDF documents and packages it into reflowable, standard EPUB 2.0 e-books right in your browser. While fixed-layout PDF files require endless pinching and horizontal panning on mobile screens, EPUB files reflow naturally to match any screen dimensions, font size, or reading device.
The conversion engine operates 100% on your device using client-side JavaScript and WebAssembly, ensuring that private documents, unreleased manuscripts, and personal reading materials are never sent to a cloud server. Keep in mind that this tool is designed for text-centric publications: it reconstructs paragraphs and headings into clean XHTML chapters, but omits embedded images and complex vector artwork.
How it works
1. Upload your PDF document
Under “Drop a PDF here”, select a text-based PDF up to 100 MB. The tool verifies your document and displays its file name, file size, and total page count.
2. Set custom e-book metadata
In the “Book Metadata (optional)” card, enter your preferred “Title” and “Author” so that e-reader apps display the book accurately in your digital library.
3. Extract text and compile the e-book
Click “Convert to EPUB”. The tool reads text content page by page, groups lines into paragraphs, and builds an EPUB package directly in memory.
4. Download your completed EPUB
Once the “EPUB Created!” confirmation appears, click “Download EPUB” to save your new e-book, or click “Convert Another” to process another document.
When you'd use it
Reading long PDF documents on mobile smartphones and e-readers
Fixed A4 or Letter PDFs are difficult to read on 6-inch phone screens or e-ink readers. Converting to EPUB allows you to adjust font size, margins, and line spacing without horizontal scrolling.
Transferring articles and reports to Amazon Kindle devices
Amazon’s “Send to Kindle” service natively accepts EPUB files and converts them seamlessly into Kindle format with custom fonts, Whispersync progress, and dictionary lookups.
Enabling accessibility, screen readers, and text-to-speech
Reflowable EPUB markup structured with standard HTML paragraphs and heading tags allows screen readers and assistive text-to-speech tools to parse content smoothly.
Comfortable nighttime reading with dark mode and custom fonts
Unlike fixed PDF scans that can blind readers with bright white page backgrounds, EPUB files let e-reader software apply true dark mode, sepia tones, and dyslexic-friendly typefaces.
Text-layer requirements and scanned document handling
TryDocsy extracts text using Mozilla’s pdf.js parser, reading positioned font glyphs and character coordinate matrices from each page. This means the tool requires a digital text layer to operate. If your PDF consists of scanned paper pages or photographed book pages without optical character recognition, the extractor finds zero character tokens and reports “No selectable text found — this looks like a scanned PDF. Use the OCR tool first.”
If you encounter this notification, pass your file through TryDocsy’s OCR tool first to recognize the letterforms and generate a searchable text layer. Additionally, if a document is password-protected, you must unlock it before uploading, as encrypted streams block client-side extraction.
EPUB 2.0 container architecture and structural formatting
The generated .epub file is a standards-compliant ZIP archive compiled with JSZip. It features an uncompressed mimetype file (application/epub+zip) at byte offset zero, standard container metadata (META-INF/container.xml), a Georgia serif stylesheet (OEBPS/styles/style.css), an OPF package manifest (content.opf), and an NCX navigation map (toc.ncx).
Each page of your PDF is mapped to an individual XHTML chapter (text/page1.xhtml, text/page2.xhtml). The extractor analyzes font sizes and vertical gaps between lines to distinguish section headings from body text. Lines with oversized font metrics are tagged as semantic “<h2>” headings, while regular lines are grouped into indented body paragraphs with clean line-height formatting.
Understanding what is excluded from the conversion
To deliver fast client-side performance and clean text reflow, the converter focuses exclusively on text. Embedded JPEG/PNG images, vector illustrations, complex spreadsheet grids, and background watermarks are not imported into the EPUB package. Tables are flattened into sequential text lines.
Similarly, in multi-column layouts like academic research papers or newspapers, text items are grouped based on vertical coordinate proximity. While simple layouts flow cleanly, complex multi-column sidebars may occasionally merge into the main reading stream. For heavily illustrated magazines or complex technical manuals, retaining the original PDF layout is often preferable.
Frequently asked questions
Can I read the converted EPUB file on Amazon Kindle?
Yes. Amazon Kindle devices and apps support EPUB files via the “Send to Kindle” feature (via email, web upload, or the Kindle app). Amazon converts the EPUB into its native Kindle format while preserving adjustable typography and bookmarking.
Why does the tool show “No selectable text found” on my PDF?
This error occurs when a PDF is made of flattened image scans rather than true digital text. Because the converter extracts existing character glyphs, image-only documents contain no text to parse. Run your file through TryDocsy’s PDF OCR tool first to generate a digital text layer.
Are illustrations, photos, and diagrams included in the EPUB?
No. The converter extracts text content only. Graphics, diagrams, raster images, and mathematical equations drawn as vectors are omitted to produce lightweight, purely reflowable e-books.
How does the tool distinguish chapter headings from regular paragraphs?
The parsing algorithm checks the font size and character length of each line. Lines with larger font sizes (above 13pt) and fewer than 100 characters preceded by a vertical line gap are automatically formatted as heading elements (“<h2>”).
Can I customize the e-book title and author in my e-reader library?
Yes. Before clicking “Convert to EPUB”, fill in the “Title” and “Author” inputs in the Book Metadata card. These fields are written directly to the Dublin Core metadata elements inside the EPUB package.

