# Convert PGM to ICO

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=pgm&to=ico, 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 "pgm" and to "ico".

## Questions

### Does converting PGM to ICO lose quality?

Yes, in one way. An ICO holds the picture at a few fixed square sizes, so it is resized to each of them, padded with transparency if it is not square, and a small picture comes out soft at the larger sizes.

### Can I convert the ICO back to PGM?

Not here. We can read ICO but no engine of ours writes PGM, so this conversion only goes one way.
