PDF to EPUB

Convert PDF documents to EPUB e-book format with reflowable content

Convert PDF documents to EPUB e-book format using pure Node.js.

Features:

  • Extracts text and structure from PDF files
  • Creates standard EPUB 2.0 format
  • Generates reflowable content for e-readers
  • Includes table of contents (NCX navigation)
  • Adds CSS stylesheet for better reading experience
  • Supports multi-chapter documents
  • Works on Kindle, Kobo, Nook, and other e-readers

Example Results

1 examples

PDF Document to EPUB

Convert a PDF document to EPUB e-book format

pdf-to-epub-output.epub View File
View input parameters
{ "sourceFile": "/public/samples/pdf/book.pdf", "title": "My Book", "author": "John Doe" }

Click to upload file or drag and drop file here

Maximum file size: 50MB Supported formats: application/pdf

Key Facts

Category
Documents & PDF
Input Types
file, text
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Convert your static PDF documents into reflowable EPUB e-books optimized for e-readers like Kindle, Kobo, and Nook. This tool extracts text and structure from your PDF, generates a standard EPUB 2.0 file with a table of contents, and applies a clean CSS stylesheet for an improved reading experience.

When to Use

  • When you want to read a PDF document on an e-reader but the text is too small or difficult to zoom.
  • When you need to convert a multi-chapter PDF report or book into a reflowable EPUB format.
  • When you want to customize the metadata, such as the title and author, of a PDF before transferring it to your mobile reading app.

How It Works

  • Upload your PDF document using the file selector.
  • Enter the optional book title and author name to customize the e-book metadata.
  • Click the convert button to extract text, structure, and chapters from the PDF.
  • Download the generated EPUB file, complete with a table of contents and reflowable layout.

Use Cases

Converting academic PDF papers or textbooks into reflowable EPUBs for comfortable reading on mobile screens.
Preparing self-published PDF manuscripts for distribution on e-book platforms that require EPUB format.
Formatting multi-chapter business reports into e-books for offline reading on e-ink devices.

Examples

1. Converting a Public Domain Novel PDF

Avid Reader
Background
An avid reader downloaded a classic novel in PDF format from a public archive but found it hard to read on their 6-inch e-reader due to fixed page margins.
Problem
The text was too small, and zooming in required constant horizontal scrolling.
How to Use
Uploaded the novel PDF, entered the book title and author name in the options, and initiated the conversion.
Example Config
{
  "title": "Pride and Prejudice",
  "author": "Jane Austen"
}
Outcome
Received a reflowable EPUB file that automatically adjusts font size and margins on the e-reader, complete with a table of contents.

2. Preparing a Business Report for Offline Reading

Business Analyst
Background
A business analyst needs to review a 100-page corporate report PDF during a long flight using their Kobo e-reader.
Problem
Reading a multi-column PDF on an e-ink screen is straining and lacks proper chapter navigation.
How to Use
Uploaded the report PDF, set the title to "Q4 Financial Report", and converted the file.
Example Config
{
  "title": "Q4 Financial Report",
  "author": "Finance Team"
}
Outcome
Generated a clean EPUB file with a structured table of contents, allowing easy chapter navigation and comfortable reading on the e-ink screen.

Try with Samples

pdf, file

Related Hubs

FAQ

Will the converted EPUB file support reflowable text?

Yes, the tool extracts text and structure from the PDF to create a standard EPUB 2.0 file with reflowable content that adjusts to your screen size.

Can I set a custom title and author for the EPUB?

Yes, you can fill in the optional Book Title and Author fields before conversion to update the metadata.

What is the maximum PDF file size supported?

The tool supports PDF files up to 50 MB in size.

Does the generated EPUB include a table of contents?

Yes, it automatically generates an NCX navigation table of contents based on the document structure.

Will this EPUB work on my Kindle or Kobo e-reader?

Yes, the output is a standard EPUB 2.0 file compatible with Kindle, Kobo, Nook, and most other e-readers.

API Documentation

Request Endpoint

POST /en/api/tools/pdf-to-epub

Request Parameters

Parameter Name Type Required Description
sourceFile file (Upload required) Yes -
title text No -
author text No -

File type parameters need to be uploaded first via POST /upload/pdf-to-epub to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-pdf-to-epub": {
      "name": "pdf-to-epub",
      "description": "Convert PDF documents to EPUB e-book format with reflowable content",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-to-epub",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]