# Convert PDF to GIF

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

## Options

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

- `image`: quality, targetKb, lossless, effort, width, height, fit, focus, allowEnlarge, stripMetadata, rotate, autoOrient, density, page, flip, background, crop

## Questions

### Does converting PDF to GIF lose quality?

Yes. PDF keeps everything, and GIF does not: it throws away detail to make the file smaller, and converting back cannot bring it back. If you need every detail kept, convert to PNG instead. A GIF holds one page, so only the first page of the PDF comes across.

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

Yes, and the file will open — but a round trip is not free. Each pass re-encodes, so going PDF to GIF and back leaves you with less than you started with. And only the first page comes back: the others never made it into the GIF.

### How is a PDF made into a GIF?

In two steps, one after the other, both on our server: the PDF is made into a PNG, and that PNG into the GIF. The PNG in between never leaves the server and is deleted as soon as the second step has read it. The settings on this page are for the second step.

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

You can choose the quality, how long to spend, whether to keep EXIF, whether to turn it the way the camera recorded, the DPI a printer reads, the width and height, whether to keep the shape, a size by percent, and whether to enlarge. Anything left on Auto is decided by the encoder, which is usually the right answer unless you are targeting a specific size or device.
