Design and Social Media

ICO and ICNS Icon Files: What Is Inside and How to Extract or Build Them

How Windows and macOS icon files store many sizes, how to get PNGs out of them, which sizes you need and how to build ICO and ICNS files from one image.

Saizul Amin
Saizul Amin28 Oct 2026 · 3 min read
ICO and ICNS Icon Files: What Is Inside and How to Extract or Build Them

ICO and ICNS Icon Files: What Is Inside and How to Extract or Build Them

Icons look like single pictures, but icon files are containers holding the same image at many sizes. Windows uses .ico files, macOS uses .icns files, and websites use favicons that are usually .ico files too. The ICO and ICNS Extractor opens both kinds and builds new ones.

Why icons need several sizes

An icon shown at 16 pixels in a file list cannot simply be a shrunken 1024 pixel picture: fine details turn to mush. Designers often simplify small sizes, removing details and thickening lines. Icon files therefore hold several hand-tuned or generated sizes, and the operating system picks the best one for each situation.

Inside an ICO file

An ICO file starts with a small directory listing each image: its width, height, colour depth and where its data is. The data for each size is either a complete PNG image or a Windows bitmap with a separate one-bit mask that marks transparent pixels. Modern icons usually store large sizes as PNG and small sizes as bitmaps. Cursor files (.cur) use the same structure with a hotspot.

Inside an ICNS file

An ICNS file is a sequence of typed blocks. Modern types such as ic07, ic08, ic09 and ic10 hold PNG images from 128 up to 1024 pixels, including retina @2x versions. Older types hold 16 to 128 pixel images in a run-length compressed format with separate 8-bit masks. A few icons use JPEG 2000 data, which most browsers cannot decode.

Extracting PNGs

The extractor decodes every entry it understands and shows them all as thumbnails with their sizes and formats. Tick the ones you need and save them as PNG with transparency. This is handy for documentation, presentations and app store screenshots, or for recovering a high-resolution logo when only the icon file is left.

Which sizes to build

  • Windows applications: 16, 24, 32, 48 and 256 pixels.
  • Website favicon: 16, 32 and 48 pixels in the .ico; modern sites also add 180 pixel Apple touch icons and 192 and 512 pixel PNGs for web app manifests.
  • macOS applications: 16, 32, 128, 256 and 512 pixels, each with an @2x version, up to 1024.

Building icons

Start from a square PNG of at least 1024 x 1024 pixels with a transparent background. The builder scales it to each size, optionally with padding, and packs the results into a new .icns or .ico file. For a complete set of mobile and web app icons with all their folders and configuration files, use the dedicated app icon generator on this site.

Quick answers

Can I use any icon I find? Only icons you made or have permission to use.

Why is my 16 pixel icon blurry? Detailed artwork does not survive tiny sizes. Simplify the design for small icons.

A worked example

A support team needs a large copy of an internal app's logo for a slide. The only source is the app's .icns file. Opening it shows ten images, including a 1024 x 1024 PNG. That image is saved for the slide, and a new favicon.ico with 16, 32 and 48 pixel versions is built from it for the team's intranet page.

Designing for small sizes

At 16 pixels, an icon has only 256 pixels to work with. Use solid shapes, high contrast and no more than one or two colours. Test the icon on light and dark backgrounds, because Windows taskbars and macOS menu bars may use either.

Limits

JPEG 2000 entries in old ICNS files are skipped. All processing happens in your browser.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages