# Convert HTML to EPUB

Files are processed on our server, and the results are kept for a few minutes so you can download them, then deleted — whether or not you did. Free, no account, no watermark.

Results are deleted 15 minutes after the job finishes.

## API

POST the file as the raw request body to https://toolsforfree.app/api/jobs?from=html&to=epub, then

GET https://toolsforfree.app/api/jobs/{taskId}?engine={engine} until state is done,
then GET https://toolsforfree.app/api/jobs/{taskId}/output?engine={engine}&format={format}, with the taskId, engine and format the 202 answers.

Details: https://toolsforfree.app/api.md

MCP: call convert_file at https://toolsforfree.app/mcp with from "html" and to "epub".

## Options

Sent as JSON in the x-tff-options header. Bounds and allowed values are in https://toolsforfree.app/openapi.json.

- `epub`: title, author, language, version, split

## Questions

### Does converting HTML to EPUB lose quality?

In look, yes. The page is read as a document: headings, paragraphs, lists, tables and pictures come across, but most of its styling is dropped and its scripts never run. A page built like an app, with menus, layouts drawn in CSS or content filled in by JavaScript, will not look the way it does in a browser; for that, use Print, then Save as PDF in the browser itself.

### Can I convert the EPUB back to HTML?

Yes, but not as the page it was. The EPUB holds the page as a document, so converting it back gives you a plain web page with its text, headings, tables and pictures, not the original styling or scripts.

### Are linked pictures and stylesheets included?

Only what is inside the file comes across: pictures and stylesheets it links to are not fetched, because the converter has no network access. Pictures embedded in the page itself are kept. A web address cannot be converted either: open the page in your browser, keep a copy with Save page as, and convert that file.

### What can I change about the EPUB it produces?

You can choose the title, the author, the language, the EPUB version, and where chapters start. Leave Title or Author empty and the book keeps the document's own. By default it is EPUB 3, with a new chapter at each heading.
