# Convert PDF to MD

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=md, 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 "md".

## 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 MD lose quality?

Some of it. The words come across in order, and text set larger than the rest becomes a heading, lines that start with a bullet become a list, and bold stays bold. A PDF never says which is which, so these are worked out from how each line looks; tables, columns, pictures and page breaks do not come across. A scanned PDF has no text to lift out at all: run it through OCR PDF first.

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

Yes. Both formats store the data exactly, so converting back gives you the same content again.

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

You can choose the password that opens a locked PDF.
