Skip to content

Free toolsImages

PNG to ICO

One picture, an ICO holding 256, 128, 64, 48, 32 and 16 pixel versions.

More free conversions, where you upload. The Fylane extension does the same work inside any upload form, on its own free share every day.About the extension

How to convert PNG to ICO

  1. Drop the image.
  2. Nothing to choose.
  3. Press Convert and download.

What happens to your file

The picture is fitted inside 256 pixels and ImageMagick writes an ICO holding it at 256, 128, 64, 48, 32 and 16 pixels, each resized with care, transparency kept. That is the file Windows uses for a program icon and browsers for a favicon. A picture that is not square is fitted inside the square, not stretched — start from a square one for the cleanest icon.

Questions

Which sizes does a favicon need?

Browsers pick from what the ICO offers: 16 and 32 for tabs, 48 for shortcuts, 256 for Windows tiles. This file carries all of them.

Do this in code

curl -X POST https://api.fylane.dev/v1/jobs \
  -H "Authorization: Bearer $FYLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "<file id>",
    "operation": "image.convert",
    "options": {
      "format": "ico"
    }
  }'

The same operation, image.convert — Re-encode to WebP, JPEG, PNG or AVIF at your quality. Upload first with the quickstart; every option is on the operations page. 500 free credits a month, then $5 per thousand.