ICOForgeON YOUR DEVICE

PNG TO ICO / PRACTICAL GUIDE

Convert PNG to ICO format: what the format is

To convert PNG to ICO format, the converter writes an ICO container that holds your image resized to one or more square sizes. The ICO format is a binary container with a header and directory entries for each size frame. It is not a rename, not a zip, and not a single raster image like PNG.

Convert your PNG to ICO format →

What "ICO format" means

ICO is a file format for Windows icons. Its structure has two parts:

  • ICONDIR header: 6 bytes declaring the file type and the number of images inside.
  • ICONDIRENTRY array: one 16-byte entry per image, each declaring that image's width, height, color depth, and byte offset inside the file.

Each image inside the ICO can be a bitmap or an embedded PNG (for sizes 64×64 and above in modern usage). The container tells the reading application how many images exist and where each one starts.

A PNG file has none of this structure. It has its own 8-byte signature followed by chunks of image data for a single image. Renaming .png to .ico does not add an ICONDIR header or directory entries.

The steps to produce an ICO-format file

  1. Open the converter. Use the button above.
  2. Select your PNG. Choose your image or drag it onto the input area.
  3. Select icon sizes. The default is 16, 32 and 48 pixels. Each selected size becomes one frame inside the ICO.
  4. Choose padding or stretch. For a rectangular source, padding keeps proportions; stretch fills the square.
  5. Press Convert to ICO. The converter writes the ICONDIR header, directory entries, and image data for each selected size.
  6. Download the .ico file. Save it from the result card.

ICO format versus PNG format

AspectPNG formatICO format
Container typeSingle raster imageContainer holding one or more images
HeaderPNG signature (89 50 4E 47 0D 0A 1A 0A)ICONDIR (00 00 01 00 followed by image count)
Multiple sizes in one fileNoYes, each with its own directory entry
TransparencyAlpha channel per pixelAlpha channel preserved per frame from source
Native platformCross-platform web imageWindows icon; browser favicon fallback
File extension.png.ico

Why the format matters

An application that expects an ICO file reads the ICONDIR header to find image entries. If it finds a PNG signature instead, it either rejects the file or falls back to treating it as a PNG. Some applications are lenient; many are not. A favicon link with type="image/x-icon" that points to a renamed PNG may work in some browsers and fail in others.

The ICO format also allows multiple sizes in one file. This lets a browser or Windows shell choose the appropriate resolution for the display context: 16×16 for a small tab, 32×32 for a desktop shortcut, 48×48 for a large icon view. A single PNG cannot provide this.

How to confirm the output is ICO format

  1. Check the first bytes. A valid ICO file starts with bytes 00 00 01 00. A PNG starts with 89 50 4E 47.
  2. Use the inspector. The ICO frame inspector decodes each entry and reports its dimensions.
  3. Check the file in the destination. A Windows icon properties dialog or a browser favicon link should display it correctly.

Where conversion goes wrong

ProblemCauseFix
File is not recognized as an iconSource was renamed, not convertedRun the converter and download from the result card
Icon is blankSource has an opaque background with no visible artwork at small sizesUse a transparent PNG with clear artwork; check the 16-pixel preview
Icon is distortedStretch used on a non-square sourceReconvert with transparent padding
Icon is too small in the tabSource has large transparent marginsCrop the source to the artwork, then reconvert

Questions before you convert

Is ICO format the same as PNG format?

No. ICO is a container with a header and directory entries for multiple images. PNG is a single-image format with its own structure. They have different headers and different capabilities.

Can I convert PNG to ICO format by changing the extension?

No. Changing .png to .ico changes the filename, not the binary structure inside. The file remains a PNG that applications may reject when they expect ICO format.

Does ICO format support transparency?

Yes. Each frame in the ICO preserves the alpha channel from the source PNG. Transparent pixels in the source remain transparent in the ICO.

What sizes does the ICO format support?

The ICOForge converter offers 16, 24, 32, 48, 64, 96, 128 and 256 pixels. The ICO format itself supports square sizes up to 256×256.

Should I also produce PNG files for my site?

Yes. Apple touch icons and Android manifest icons are separate PNG files, not ICO frames. See the favicon size checklist for which file goes where.

Scope

This guide explains what the ICO format is and how to produce it from a PNG. It does not claim a conversion speed, an accuracy percentage, or universal application compatibility. Your PNG stays in your browser during conversion.

Detailed conversion walkthrough · Why icons look too small · Which size goes where · Inspect an existing ICO

Verification record

Verification date: guide reviewed 2026-10-31 against current ICOForge converter behavior and ICO format specification.

Source: icoforge.com converter; ICO file format documentation.

Last updated: 2026-10-31.