Skip to content
All guides

A little guidance

How to convert a PNG, JPG or WebP image to ICO

Save any PNG, JPG or WebP as a real .ico file in your browser, choose its size up to 256 × 256 pixels, keep transparency and name it favicon.ico.

Advertisements

Convert an image to ICO

A square logo and a photo of dice turned into icons

We added a 512 × 512 logo with transparent corners and an 800 × 600 PNG of dice and chose ICO in the toolbar at original size. Then we converted the logo again at 32 pixels wide and renamed it favicon.

Compare the actual downloads

Image Format Changer with ICO selected in the toolbar and Compress off; the logo row shows 256 by 256 px and the dice row 256 by 192 px, both in ICO.
ICO at original size: both images are scaled to fit 256 pixels, and the dice keep their 4:3 shape. View full size
Image Format Changer with ICO and a width of 32 in the toolbar; the single logo row is named favicon.ico and shows 32 by 32 px, PNG 17 KB to ICO 1 KB.
A 32 pixel favicon: width 32 with the link on, and the row renamed to favicon.ico. View full size
SourceSize settingICO download
favicon-cropped-512.png · 512 × 512Original sizefavicon-cropped-512.ico · one 256 × 256 image · 7,394 bytes
transparent-dice.png · 800 × 600Original sizetransparent-dice.ico · one 256 × 192 image · 49,916 bytes
favicon-cropped-512.png · 512 × 512Width 32, link on · renamed faviconfavicon.ico · one 32 × 32 image · 896 bytes

Each ICO from Image Format Changer holds exactly one image. The dice ICO above is the real download from this run.

Repeat this example

  1. Add your image and click ICO in the toolbar.
  2. Leave the size empty for up to 256 pixels, or type a width such as 32.
  3. Click the row’s name to rename it if needed, then click the download icon in the row.

Check the result

The download ends in .ico, opens as an icon, and its corners are still transparent where the source was transparent.

A common mistake

Expecting several sizes in one file. This ICO has one size; for a favicon.ico with 16, 32 and 48 pixels, use Favicon & App Icon Generator.

Open Image Format Changer

Sources and credits

Square logo: original geometric sample artwork. Made for these guides; the 512 × 512 PNG is the cropped image from the Favicon & App Icon Generator example. Screenshots come from a real Image Format Changer run.

Dice image: Daniel G., Ed g2s and CyberShadow · CC BY-SA 3.0. The supplied PNG is unchanged. The ICO version is shared under the same license.

Add the image and choose ICO

Add a PNG, JPG, WebP or GIF to Image Format Changer and click ICO in the format buttons of the toolbar. Every image without its own settings becomes an icon; to convert just one image in a batch, choose ICO in that row’s Format menu instead. Compress turns off, because ICO stores its picture with lossless PNG encoding.

Know what the ICO contains

Each download is a real .ico file with one image inside, never several sizes. It can be up to 256 pixels per side. At original size a larger picture is scaled down to fit: a 512 × 512 logo becomes 256 × 256 and an 800 × 600 photo 256 × 192, without stretching. Smaller sizes you enter are kept as they are.

Set the size and keep transparency

Type the size you need in the width field with the link on, for example 32 for a classic 32 × 32 favicon; a square source gives a square icon. A non-square image keeps its shape, so crop it square first, or unlink the fields and enter equal values if slight stretching is fine. Transparent pixels stay transparent; a JPG has none, so its background stays.

Download, or use the Favicon Generator

Click the name next to the row’s pencil and type favicon to download favicon.ico. Several images download together as separate ICO files in one ZIP while ZIP is on. If a website needs one favicon.ico holding 16, 32 and 48 pixel versions, plus Apple and Android icons, use Favicon & App Icon Generator instead.

  • Favicon & App Icon Generator

    How to create a favicon and app icons from an image

    Turn a logo into favicon.ico, PNG app icons and a web manifest. Follow a real download example and install the files on your website.

  • Image Format Changer

    How to convert JPG, PNG and WebP without uploading

    Convert images in batches on your device. Compare JPG, PNG and WebP, export ICO icons, set individual file options and follow a practical conversion example.

Advertisements