What Is an ICO File?
ICO is a Windows icon format that can store multiple sizes in one file—commonly used for website favicons and app shortcuts.
Quick answer
An ICO file is a container image format that stores one or more icon sizes (often 16×16, 32×32, and 48×48 pixels) in a single file. Browsers and operating systems use ICO files for favicons and shortcut icons.
Overview
If you are preparing a website favicon or Windows shortcut icon, you will encounter the .ico extension. Unlike a single PNG, an ICO file can bundle several resolutions so the icon looks sharp on browser tabs, bookmarks, desktop shortcuts, and pinned taskbar items. Understanding how ICO works helps you choose the right export settings, size embedded frames correctly, and avoid blurry or cropped icons across platforms. Whether you maintain a marketing site, ship an internal portal, or publish a desktop app installer, ICO remains the most reliable single-file fallback for environments that expect favicon.ico at the domain root.
How ICO files work
ICO (icon) is a bitmap container format originally designed for Microsoft Windows. Each file can include multiple embedded images at different dimensions and color depths, along with metadata that tells the operating system which image to render at a given display context. A single favicon.ico might contain 16×16, 32×32, 48×48, and even 256×256 pixel versions of the same logo, all packaged together.
The format supports both BMP and PNG compression inside the container. Modern ICO files often store PNG-encoded frames because PNG achieves smaller file sizes at larger dimensions while preserving transparency. When a browser or shell requests an icon, it selects the closest matching size rather than scaling a tiny image up, which is why multi-size ICO files look noticeably sharper than a lone 16×16 graphic stretched to fit.
PNG vs ICO for favicons
PNG is a single-resolution raster image. You export one width and height, and every consumer of that file scales it as needed. That works well for apple-touch-icon links and web manifest entries where you explicitly declare a 180×180 or 512×512 asset. ICO differs because it holds several resolutions in one download, which helps older browsers and Windows shell integration pick the best match without issuing separate HTTP requests for each size.
If you already have a square PNG—typically exported at 512×512 or 256×256 from your brand guidelines—converting to ICO is a practical step before uploading to a CMS or dropping favicon.ico into your site root. The conversion step downscales your master artwork into the tab-friendly sizes browsers expect. PNG remains the better choice when you need one large marketing icon; ICO remains the better choice when you need broad legacy desktop support from a single root file.
When to use ICO instead of PNG alone
Reach for ICO when you want a single favicon.ico at the domain root that Just Works across Internet Explorer-era behavior, classic desktop browsers, and Windows shortcut pinning without maintaining a long list of link tags. Many enterprise intranet templates and older CMS themes still assume favicon.ico exists at /favicon.ico and never read modern manifest files.
Prefer PNG (plus manifest and apple-touch-icon tags) when you are building a progressive web app, targeting mobile home-screen installs, or optimizing for Lighthouse audits that reward explicit icon declarations. The strongest production setups combine both: an ICO for backward compatibility and PNG declarations for high-DPI mobile contexts. Neither format replaces the other entirely—they cover overlapping but not identical platform requirements.
Creating a quality ICO from source artwork
Start with a square master image. Logos designed on rectangular canvases should be centered on a square artboard with safe padding so circular masks and browser chrome do not clip corners. Export at least 256×256 pixels; vector sources should be rasterized at this size or higher before conversion so downscaled tab icons retain clean edges.
Include 16×16, 32×32, and 48×48 in the ICO bundle at minimum. Optionally add 64×64 and 256×256 for Windows shell views and high-DPI taskbar pinning. After conversion, open the ICO in a preview tool and inspect each embedded size—fine details that read well at 256×256 often disappear or muddy at 16×16, so you may simplify the mark for the smallest frames.
Browser and platform support today
All major desktop browsers still accept favicon.ico, whether referenced explicitly in HTML or discovered automatically at the site root. Chromium, Firefox, Safari, and Edge also support PNG favicons via link rel="icon" with a type attribute, and Safari uses separate apple-touch-icon assets for iOS home-screen bookmarks.
ICO does not support animation, SVG vectors, or adaptive light/dark variants inside one file. For animated tab indicators or theme-aware icons, use separate PNG or SVG link tags and treat ICO as the conservative baseline. Search engines index favicons for result listings, so a crisp multi-size ICO can improve brand recognition in SERPs even when most users never think about the format.
File size and performance considerations
A well-built favicon.ico with four to six embedded PNG-compressed sizes typically weighs 10–40 KB for simple geometric logos. Complex photographic artwork balloons quickly because each embedded frame stores full raster data. Optimize the master PNG before conversion, reduce color depth where transparency allows, and avoid unnecessary 512×512 frames if your audience is exclusively modern mobile browsers using manifest PNGs.
Browsers fetch favicon.ico on nearly every first visit to a domain, so bloated icons slightly hurt performance metrics even though they rarely dominate total page weight. CDN caching and long Cache-Control headers help after the first request. Treat ICO as one asset in a broader icon strategy rather than the only icon asset on a performance-critical landing page.
Examples
Website favicon from a logo PNG
Export a 512×512 PNG logo on a square canvas, convert to ICO with 16, 32, and 48 px sizes embedded, upload as favicon.ico to the site root, and add <link rel="icon" href="/favicon.ico" sizes="any"> in the document head for explicit discovery.
Windows desktop shortcut
Pack 256×256, 48×48, 32×32, and 16×16 sizes into one ICO so a pinned shortcut stays crisp in File Explorer large-icon view, the taskbar, and the Start menu without Windows upscaling a single tiny bitmap.
Intranet CMS with legacy template
A corporate SharePoint-style theme only checks for /favicon.ico. Converting the approved brand PNG to ICO satisfies the template requirement while a separate 180×180 apple-touch-icon PNG covers mobile employee bookmarks.
Common mistakes and edge cases
- Using a non-square source image—favicons should be square to avoid asymmetric cropping in browser tabs and circular masks on mobile.
- Including only one tiny 16×16 size, which looks soft or pixelated when pinned to a taskbar or saved to a high-DPI home screen.
- Assuming ICO supports animation—it does not; use GIF or separate PNG frames for animated indicators elsewhere.
- Embedding a 1024×1024 single frame without smaller sizes, bloating every page load while tabs still render a poorly scaled down version.
- Placing fine text or thin strokes in the mark without testing at 16×16, where details become an unreadable smear.
Related resources
Related tools
Last reviewed: 2026-05-23