# Convert ASF 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=asf&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 "asf" and to "gif".

## Options

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

- `resize`: width, height, fit, padColor, fps, rotate, flip, aspect
- `trim`: startMs, endMs, mode, fadeCuts
- `gif`: loop, dither

## Questions

### Does converting ASF to GIF lose quality?

Yes. ASF has already discarded some detail and GIF discards more, because re-encoding starts from what survived the first pass rather than from the original. If you need every detail kept, convert to PNG instead.

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

Yes, and the file will open — but a round trip is not free. Each pass re-encodes, so going ASF to GIF and back leaves you with less than you started with.

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

You can choose the width, the frame shape, how it fits, the frame rate, where it starts and stops, how many times it plays, and how its colours are dithered.
