# Convert PDF to HTML

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=pdf&to=html, 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 "pdf" and to "html".

## Options

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

- `doc`: password

## Questions

### Does converting PDF to HTML lose quality?

Yes, all but the words. The text of every page comes across as text you can select, search and copy, line by line in reading order, but not laid out as the page was. Pictures, lines and anything else drawn are left out, so the web page is one file with nothing linked from it; a scanned page, which is all picture, comes out empty.

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

Yes, but not as the PDF it was. The web page is read as a document and laid out again, so you get the text back without the pictures and drawing this conversion left out, on pages that break where the new layout puts them.

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

You can choose the password that opens a locked PDF. There is nothing else to set: every page goes into the web page, and the pictures are always left out.
