2ClickKit

Convert ICO to PNG Online Free

Files Never Leave Your Device

Extract embedded multi-resolution icons from Windows ICO and CUR files into lossless PNG images. Download individual resolutions (16x16 to 256x256) or export all frames as a ZIP archive.

Drop your ICO file here

Unpack all embedded multi-resolution icon frames (16x16 up to 256x256) into lossless PNGs

Select ICO File

Dissecting the Windows Icon Container: Deconstructing Multi-Resolution ICO Files into Lossless PNG

The Windows Icon format (.ico) has been a cornerstone of Microsoft operating systems since the introduction of Windows 1.0 in 1985. Unlike monolithic image formats such as PNG or JPEG that represent a single fixed-resolution raster canvas, an ICO file is a multi-resource container. It was engineered specifically to store multiple resolutions and color depths of a single graphical symbol within a single file.

When Windows displays an application icon, the desktop shell queries the ICO container to select the optimal resolution based on the display scaling factor (DPI): a 16x16 icon for title bars, a 32x32 icon for desktop lists, a 48x48 icon for Explorer tiles, and a 256x256 icon for modern high-DPI displays. Converting an ICO file into clean, standalone Portable Network Graphics (PNG) images requires demuxing these nested resources and rendering both legacy DIB bitmasks and modern PNG byte streams.

Binary Architecture of the ICONDIR and ICONDIRENTRY Structures

A standard Windows ICO file begins with an ICONDIR header followed immediately by an array of ICONDIRENTRY records describing each embedded image:

Field Byte Offset Data Type Technical Role & Standards
idReserved Offset 0 UINT16 (2 Bytes) Reserved; must always be 0.
idType Offset 2 UINT16 (2 Bytes) Resource type: 1 for Icon (.ico), 2 for Cursor (.cur).
idCount Offset 4 UINT16 (2 Bytes) The total number of image frames packaged within the ICO container.
bWidth Offset 6 + i*16 UINT8 (1 Byte) Width in pixels. A value of 0 represents 256 pixels.
bHeight Offset 7 + i*16 UINT8 (1 Byte) Height in pixels. A value of 0 represents 256 pixels.
bColorCount Offset 8 + i*16 UINT8 (1 Byte) Number of colors in palette (0 if >= 8bpp).
wPlanes / wBitCount Offset 10 + i*16 UINT16 (4 Bytes) Color planes (typically 1) and bits per pixel (e.g., 32 for truecolor with alpha).
dwBytesInRes Offset 14 + i*16 UINT32 (4 Bytes) Total size of the image data payload in bytes.
dwImageOffset Offset 18 + i*16 UINT32 (4 Bytes) Absolute byte offset from the start of the file where the image payload begins.

The Dual Payload Architecture: Compressed PNG vs Legacy DIB Bitmaps

When our parser seeks to the dwImageOffset pointer for each entry, it must handle two radically different payload formats introduced across different eras of Windows:

1. Modern Vista / Windows 7+ Compressed PNG Payloads

Beginning with Windows Vista, Microsoft updated the ICO specification to allow 256x256 high-resolution icons to be stored directly as compressed PNG streams instead of massive uncompressed bitmaps. The encoder simply checks if the first 4 bytes of the payload match the standard PNG magic signature:

// Checking for PNG Magic Bytes
const isPng = bytes[0] === 0x89 && bytes[1] === 0x50 && bytes[2] === 0x4E && bytes[3] === 0x47;

If the signature matches, the byte slice is directly instantiated into a pure, lossless PNG Blob with zero transcoding overhead.

2. Legacy Windows DIB Payloads with XOR & AND Masks

For smaller resolutions (such as 16x16, 32x32, and 48x48) designed for Windows XP and earlier, the payload contains a Device-Independent Bitmap (BITMAPINFOHEADER). Crucially, the biHeight value declared in the DIB header is double the actual icon height (e.g. 64 for a 32x32 icon).

This double height accommodates two distinct bitmap components:

  • The XOR Mask: The color pixel array (16-color, 256-color, 24-bit, or 32-bit BGRA) storing the visible icon graphic.
  • The AND Mask: A 1-bit monochrome bitmap following the color array. Each bit specifies whether the corresponding pixel is opaque (0) or transparent (1). In modern 32-bit icons, transparency is defined directly by the 8-bit alpha channel of the XOR mask, while the AND mask provides legacy fallback.

Architectural Comparison: Windows ICO vs Portable Network Graphics (PNG)

Characteristic Windows Icon (ICO) Portable Network Graphics (PNG)
Container Structure Multi-image container (ICONDIR + Entries) Single raster image (Chunk-based)
Supported Resolutions Multiple sizes simultaneously (16x16 to 256x256) Single fixed canvas dimension
Web Browser Usability Limited to legacy favicon.ico tag Universal standard for web, PWAs, mobile UI
Figma / Photoshop Support Cannot be imported into modern design tools First-class standard across all creative software
Compression Type Uncompressed DIB or encapsulated PNG Adaptive row filtering + DEFLATE

Why Transcode ICO Files into PNG?

  1. Extract Modern Web & PWA Favicons: Modern web development standards demand explicit PNG icons declared in HTML headers: apple-touch-icon.png (180x180), icon-192.png, and icon-512.png for Progressive Web App (PWA) web manifests. Extracting clean PNGs from existing desktop ICO assets streamlines web deployment.
  2. Import Desktop Software Assets into Figma: Creative directors and UI designers cannot import legacy .ico files into Figma, Sketch, or Adobe Illustrator. Converting to PNG allows designers to dissect, trace, and modernize software iconography.
  3. Asset Extraction from Legacy Software: System administrators and reverse engineers frequently extract embedded icons from legacy Windows executables (.exe, .dll). Converting them to PNG makes them immediately viewable and editable.

Developer Code Examples: Programmatic ICO to PNG Transcoding

Automate batch ICO to PNG extraction across modern development environments:

Node.js (Using Sharp)

const sharp = require('sharp');

async function extractIcoToPng(icoPath, outputPath) {
  // Sharp automatically selects the highest resolution frame
  await sharp(icoPath)
    .png()
    .toFile(outputPath);
  console.log('Successfully extracted PNG from ICO container.');
}

Python (Using Pillow to Extract All Frames)

from PIL import Image

def extract_all_ico_frames(ico_file, output_prefix):
    with Image.open(ico_file) as im:
        # Iterate over all embedded icon frames
        frame_num = 0
        while True:
            try:
                im.seek(frame_num)
                out_name = f"{output_prefix}_{im.size[0]}x{im.size[1]}.png"
                im.save(out_name, "PNG")
                print(f"Extracted frame {frame_num}: {out_name}")
                frame_num += 1
            except EOFError:
                break

Zero-Server Privacy Guarantee

Software trademarks, proprietary brand icons, and internal app symbols must be protected from third-party leakage. 2ClickKit ensures complete privacy:

  • 100% In-Browser Execution: ICONDIR binary decoding, mask interpretation, and ZIP compilation execute exclusively in your browser local memory.
  • Zero Server Uploads: No files or images ever leave your device.
  • Air-Gapped Operation: Works seamlessly offline without an active internet connection.

How to Use ICO to PNG Converter

  1. Select or Drop ICO File

    Select a Windows Icon (.ico) or Cursor (.cur) file. The file is parsed in local device memory with zero server uploads.

  2. Inspect Extracted Resolutions

    Preview all embedded resolution frames (16x16, 32x32, 48x48, 64x64, 128x128, 256x256) with preserved alpha transparency.

  3. Download Single PNG or ZIP Archive

    Download your chosen icon resolution individually, or export all embedded PNG frames at once in a convenient ZIP archive.

Multi-Resolution Favicon Extraction

Source Windows ICO File
app-icon.ico: 68 KB (Embedded 16x16, 32x32, 48x48, and 256x256 frames)
Extracted PNG Assets
app-icon-256x256.png (Clean 32-bit RGBA) + Full ZIP package with all 4 sizes

Alpha transparency preserved across all extracted resolutions.

Technical Specifications

  • Supported Inputs: ICO (.ico), CUR (.cur), Windows Icon & Cursor
  • Input Limit: Unlimited (100% Client-Side Memory)
  • Processing Engine: 100% In-Browser (ICONDIR Demuxing & Canvas DIB Extraction)
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your application icons, website favicons, and system cursors are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Best Practices & Tips

  • Use the 256x256 or 128x128 extracted PNG frame when designing high-resolution application mockups in Figma.
  • Download the full ZIP package to obtain a complete suite of favicon sizes for modern PWA web manifests.
  • If your ICO file contains legacy 16-color icons, our converter smoothly upscales and remaps the palette to truecolor RGBA.
  • You can run this conversion tool completely offline once the page has loaded in your browser.

Frequently Asked Questions

What is inside a Windows ICO file?

A Windows ICO file is not just a single image—it is an archive container holding multiple discrete image frames at different pixel dimensions (such as 16x16 for browser tabs, 32x32 for desktop shortcuts, 48x48 for taskbars, and 256x256 for high-DPI retina monitors). Each entry inside the file can be stored either as an uncompressed DIB bitmap (with XOR and AND masks) or as a modern compressed PNG stream.

Does this tool extract all embedded resolutions from the ICO?

Yes! Our parser reads the ICONDIR header, iterates across every ICONDIRENTRY structure, and renders each frame independently. You can inspect and download any individual resolution, or click "Download All Sizes as ZIP" to export all frames simultaneously.

Is transparency preserved when extracting PNG from ICO?

Yes. Modern 32-bit ICO frames contain an 8-bit alpha channel, while legacy 24-bit/8-bit ICO frames utilize a 1-bit monochrome AND mask to specify transparency. Our converter extracts both formats cleanly into standard 32-bit RGBA PNG images with transparent backgrounds.

How does in-browser ICO parsing work without servers?

The browser reads the raw binary ArrayBuffer into memory using DataView. It evaluates the 6-byte ICONDIR header, extracts the byte offsets and lengths for each image resource, unpacks compressed PNG payloads directly or renders DIB scanlines via HTML5 Canvas, and triggers instantaneous local downloads.

Can I convert cursor files (.cur) using this tool?

Yes! Windows Cursor (.cur) files share an identical binary structure with ICO files (differing only by type identifier 2 instead of 1, and storing hotspot coordinates in place of color planes). Our parser automatically detects and converts .cur files to PNG.

Are my proprietary app icons or logos uploaded to any server?

Never. 2ClickKit operates on a strict zero-server privacy architecture. Your icons remain strictly inside your computer local memory and are never uploaded to any remote server or third-party cloud.

Why do I need PNG instead of ICO for web development?

While browsers accept favicon.ico in the root directory, modern web development, Progressive Web Apps (PWAs), Apple touch icons, and Android home screen shortcuts require standard PNG images declared in the HTML header (e.g. apple-touch-icon.png or icon-192x192.png).

How do I convert ICO to PNG programmatically in Node.js or Python?

In Node.js with Sharp: await sharp("favicon.ico").png().toFile("favicon.png"). In Python with Pillow: from PIL import Image; img = Image.open("favicon.ico"); img.save("favicon.png", "PNG").