ICO File Sizes: Icon Dimensions and Format Guide
An ICO file is not a single flat picture—it is a small archive of icons at different pixel resolutions. Here is how ICO dimensions work, which sizes actually matter, and how to avoid blurry scaling.
How an ICO Container Works
Every valid .ico file starts with a 6-byte header (ICONDIR) that declares how many icon images live inside the file, followed by one 16-byte directory entry (ICONDIRENTRY) per image. Each entry stores its width, height, color depth, byte length, and exact byte offset.
Because width and height are each stored in a single unsigned byte (0–255), the ICO specification uses the value 0 to represent 256 pixels. That single-byte ceiling is why an individual ICO directory entry cannot exceed 256×256 pixels—even if your original PNG is 1024×1024 or 4K.
icon.png to icon.ico leaves the PNG header intact without an ICO directory. While a few browsers may sniff the bytes and forgive it, Windows Explorer, desktop shortcuts, and desktop app build tools expect a genuine ICO header and will reject the file or display a blank icon.
Standard ICO Sizes and Where Each One Appears
You do not have to pack every possible dimension into every icon, but including the key sizes below ensures Windows and web browsers rarely have to stretch a low-resolution layer:
| Dimensions | Where It Is Used |
|---|---|
| 16×16 px | Browser tabs, bookmarks, compact list views, and window title bars |
| 32×32 px | Standard desktop shortcuts, taskbar buttons, and high-DPI browser tabs |
| 48×48 px | Medium desktop icons, Windows Explorer tiles, and Google Search favicon baseline |
| 64×64 px | Scaled Windows UI views (125%–150% DPI) and desktop widgets |
| 128×128 px | Large icon views, app launchers, and high-DPI desktop displays |
| 256×256 px | Extra-large Windows Explorer icons and crisp downscaling on 4K monitors |
For most Windows apps, folders, and shortcuts, a four-size set of 16×16, 32×32, 48×48, and 256×256 hits the best balance between crisp display at every zoom level and compact file size. Add 64×64 and 128×128 if you want extra precision on Windows displays set to 125%, 150%, or 200% scaling.
Embedded PNG vs. Legacy BMP/DIB Layers
Inside an ICO file, each image layer is stored in one of two formats:
- BMP/DIB format (classic): Stores an uncompressed
BITMAPINFOHEADER, bottom-up pixel rows, and a 1-bit AND transparency mask. Older 1-, 4-, 8-, and 24-bit icons rely on the AND mask for cutout transparency, while 32-bit DIB layers include an 8-bit alpha channel for smooth edges. - Embedded PNG format (modern): Introduced with Windows Vista so 256×256 icons would not bloat to hundreds of kilobytes of uncompressed bitmap data. Most modern browsers and operating systems decode PNG-in-ICO directly.
For maximum reliability, our PNG to ICO converter encodes 16×16, 32×32, and 48×48 layers as standard 32-bit BGRA DIB bitmaps (with both alpha and AND masks) and writes 64×64 through 256×256 layers as compact embedded PNGs.
What About 180×180, 192×192, and 512×512 Website Icons?
Modern websites need sizes larger than 256×256—such as 180×180 for Apple Touch Icons and 192×192 / 512×512 for Android Chrome and Progressive Web Apps. Those belong in standalone PNG files referenced by HTML <link> tags and site.webmanifest, not inside favicon.ico.
If you are preparing icons for a website, use our Favicon Generator to build both a properly sized favicon.ico and all matching PNG assets in one ZIP download.
Tips for Preparing a Sharp Source PNG
- Start with a square image at least 256×256 px (or 512×512 px for web favicons): Downscaling preserves sharpness; upscaling a tiny 32×32 graphic to 256×256 will always look soft.
- Keep small-size silhouettes simple: Thin text and fine gradients disappear at 16×16. Bold shapes and high contrast stay readable in browser tabs and taskbars.
- Leave clean padding around non-square logos: Use Contain mode to keep your full logo inside the square with transparent margins rather than slicing off edges.