ICO to PNG Converter
Convert an ICO icon or favicon into a PNG image. Drop in the ICO and download a PNG, all in your browser.
Drop an image here or tap to choose
Your image is processed in your browser and never uploaded.
About ICO to PNG Converter
This tool provides a client-side conversion from the ICO[8] (Windows Icon) file format to the PNG[13] (Portable Network Graphics) format. It enables developers, designers, and archivists to extract high-quality, web-compatible images from icon resources. The conversion process is lossless, preserving the full visual fidelity of the source icon, including any transparency information. This is particularly useful for modernizing application assets, creating favicons for websites, or simply making icon resources viewable and editable in standard image manipulation software that may not fully support the multi-image ICO container format.
The ICO file format, originating with Microsoft Windows[12], is a container designed to store one or more small images at multiple sizes and color depths. A single `.ico` file typically includes common sizes like 16x16, 32x32, and 48x48 pixels, and can go up to 256x256 pixels. The file structure consists of an `ICONDIR` header that catalogs each image via an `ICONDIRENTRY` structure, which specifies the image's dimensions, color count, and its byte offset within the file. These embedded images are historically stored as BMP[2] data, but since Windows Vista, they can also be PNG-compressed images, which this tool can extract directly.
In contrast, Portable Network Graphics (PNG) is a single-image raster graphics file format that supports lossless data compression. Standardized as ISO[10]/IEC[9] 15948 and as a W3C Recommendation[16], PNG was designed as a more capable and patent-free replacement for GIF[7]. Its key advantages include support for a full alpha channel[1], allowing for variable transparency, and its use of the DEFLATE[5] compression algorithm, which provides efficient, lossless compression. Unlike JPEG[11], which is a lossy format ideal for photographs, PNG is perfect for graphics with sharp lines and solid colors, such as logos, diagrams, and icons.
The conversion process involves parsing the ICO file's header to identify all available image entries. When a user selects an entry, the tool reads the corresponding image data. If the data is a classic Device-Independent Bitmap (DIB), the tool decodes the pixel data, including any 1-bit XOR and AND masks used for simple transparency, and re-encodes it as a PNG with a full 8-bit alpha channel. If the embedded image is already in PNG format, the tool performs a direct, lossless extraction of the PNG data stream, which is the most efficient conversion path.
Converting an ICO resource to PNG is a common requirement for web development. While the ICO format is still necessary for legacy browser support of the favicon[6], modern web design favors linking to high-resolution PNG icons for use in manifests and for display on high-DPI screens. A single, high-quality PNG extracted from an ICO file serves as a versatile asset that can be used directly in web pages with the `<img>` element, styled with CSS[4], or referenced in a `manifest.json` file, providing a more standardized and flexible alternative to the ICO format for web and cross-platform applications.
How to Use
- Use the 'Upload File' button to select an `.ico` file from your local storage, or drag and drop the file onto the designated area.
- The tool will parse the ICO[8] container and display a list of all embedded images, showing their dimensions (e.g., 32x32) and color depth (e.g., 32-bit).
- Select the specific image resource you wish to convert to PNG. For general use, selecting the entry with the largest dimensions and highest color depth is recommended.
- The conversion from the source bitmap or embedded PNG to a standalone PNG[13] file happens instantly in your browser.
- A preview of the final PNG image is shown. Click the 'Download' button to save the generated file.
Frequently Asked Questions
What is the fundamental difference between an ICO file and a PNG file?
An ICO[8] file is a container format designed to hold multiple images at different sizes and color depths. A PNG[13] file is a single-image format that uses lossless compression. An ICO file can even contain PNG images within it.
Why do ICO files contain multiple images?
This allows an operating system like Microsoft Windows[12] to select the most appropriate icon size for different contexts, such as a desktop, a taskbar, or a file explorer list view, ensuring the icon remains sharp and clear at any scale.
Is the conversion from ICO to PNG lossless?
Yes. If the selected image within the ICO is an uncompressed or RLE[14]-compressed BMP[2], it is converted to PNG without any data loss. If the image within the ICO is already a PNG (a feature supported since Windows Vista), the process is a simple, lossless extraction.
How is transparency handled during the conversion?
Transparency is fully preserved. For 32-bit images with an 8-bit alpha channel[1], the transparency data is directly transferred to the PNG. For older 24-bit images with a 1-bit AND mask, the mask is converted into a full 8-bit alpha channel in the output PNG, ensuring compatibility with modern graphics software.
Can I choose which icon image to convert from a multi-image ICO file?
Yes. This tool inspects the ICO file's `ICONDIR` structure and presents all available `ICONDIRENTRY` resources. You can select the specific dimensions and color depth you need before converting.
What is a `favicon.ico` and is PNG a better alternative?
A favicon[6] is a website's icon. Traditionally, browsers requested a file named `favicon.ico` from a website's root. While this is still supported for backward compatibility, modern web standards favor linking to PNG icons using `<link rel="icon" type="image/png" ...>`, as PNGs often offer better compression and alpha transparency support.
What is the maximum standard size for an image inside an ICO file?
The ICO file format header specifies the width and height in single bytes, which limits the standard dimensions to a maximum of 256x256 pixels. Within the specification, a value of 0 in these fields is interpreted as 256, establishing this as the effective limit for standard-compliant files.
Does the PNG format use a color palette?
PNG supports multiple color types. It can be paletted (like GIF[7]), grayscale, or full RGB truecolor. Paletted images use a PLTE chunk to define the color palette[3]. Truecolor PNGs, which are common for icons, do not require a palette and can represent millions of colors directly.
Sources (16)
- Wikipedia: Alpha compositing
- Wikipedia: BMP file format
- Wikipedia: Color palette
- Wikipedia: CSS
- Wikipedia: Deflate
- Wikipedia: Favicon
- Wikipedia: GIF
- Wikipedia: ICO (file format)
- Wikipedia: International Electrotechnical Commission (IEC)
- Wikipedia: International Organization for Standardization (ISO)
- Wikipedia: JPEG
- Wikipedia: Microsoft Windows
- Wikipedia: Portable Network Graphics (PNG)
- Wikipedia: Run-length encoding
- Wikipedia: World Wide Web Consortium (W3C)
- W3C: Portable Network Graphics (PNG) Specification
About Matt George
I'm Matt George, a software engineer in the startup space. I run my own shop building software for early-stage founders, and I love making free tools and experiences that people actually use. Enjoy using ICO to PNG Converter!