The favicon.ico format is an ICO container, not a single bitmap and not a PNG whose extension was renamed. One favicon.ico holds several images, usually 16×16, 32×32, and 48×48. Each image inside is either a PNG or a classic BMP. Chrome, Firefox, Safari, and Edge read that container, and they still request /favicon.ico when the page does not name an icon.

Favicon.ico format: an ICO container with 16×16, 32×32, and 48×48 embedded as PNG (modern browsers) or BMP (older Windows). Browsers pick the closest size. Use a separate PNG for the Apple touch icon and the manifest, and an SVG for the tab.

What the favicon.ico format is

ICO is a directory of images, the same idea as a small archive. A short header records how many images the file stores, then a 16-byte entry for each one records the width, height, and where those bytes sit in the file. A browser or operating system reads the directory and extracts the size closest to the slot it is painting. It does not scale one picture for the tab, a shortcut, and a high-DPI screen.

Those embedded images are not all the same encoding:

Renaming a PNG or JPEG to .ico does not build that directory, so older clients reject the file and the download is larger than a tab needs. SVG and the Apple touch PNG stay separate files. The pixel sizes for the rest of the set are in the favicon dimensions guide.

PieceWhat the favicon.ico format stores
ContainerOne .ico file with a directory of embedded images
Usual sizes16×16, 32×32, and 48×48
Modern image insidePNG, with a real alpha channel
Legacy image insideBMP (DIB) plus a 1-bit AND mask
Browser supportChrome, Edge, Firefox, and Safari. They also request /favicon.ico on their own
Content typeimage/x-icon or image/vnd.microsoft.icon

How to create or convert to .ico

Build the container from a square source. Do not export a PNG and change the extension.

Put the finished file at /favicon.ico so the automatic request succeeds, and link it from the home page. Then check which sizes your site is missing. A byte-level ICO versus PNG comparison is in ICO vs PNG favicon.

The favicon.ico format is the compatible file. The rest of this page compares it with PNG and SVG: which clients accept each one, and the link tags for a 2026 stack.

The Core Formats: ICO, PNG, and SVG

To understand the current landscape, we need to look at the three formats that actually matter in production environments. Everything else is either experimental or deprecated.

The Legacy Container: ICO

The ICO file format is widely misunderstood. It is not a standard flat image format like a JPEG; it is a container. A single .ico file can hold multiple resolutions of the exact same image (typically 16x16, 32x32, and 48x48). When a browser requests an ICO file, it looks inside the container and extracts the specific resolution it needs for the current display context.

Why do we still care about ICO in 2026? Because of hardcoded legacy behaviors. If you do not explicitly declare a favicon in your HTML, almost every browser, web crawler, and RSS reader on the planet will automatically request /favicon.ico from your server root. If it's not there, your server logs will fill up with 404 errors.

For a deeper dive into the technical differences at the byte level, check out our ICO vs PNG Favicon technical breakdown.

The Workhorse: PNG

Portable Network Graphics (PNG) is the absolute workhorse of the modern web icon stack. It supports lossless compression and a full alpha channel for perfect transparency. You will never get those ugly white background boxes if you export your PNG correctly.

PNG is the mandatory format for two critical mobile ecosystems. First, Apple requires a 180x180 PNG for the Apple Touch Icon (the icon used when a user saves your site to their iOS home screen). Second, Android and Progressive Web Apps (PWAs) require PNGs declared inside the manifest.json file, typically at 192x192 and 512x512 resolutions.

The Modern Standard: SVG

Scalable Vector Graphics (SVG) is the holy grail of favicons in 2026. Because it is math-based rather than pixel-based, an SVG icon scales infinitely. It looks perfectly crisp on a low-resolution monitor and equally flawless on a 6K Apple Pro Display XDR.

The real superpower of SVG, however, is CSS support. You can embed media queries directly inside the SVG file. This means you can serve a single icon file that automatically changes its colors based on whether the user's operating system is in light mode or dark mode. This is impossible with PNG or ICO.

If you haven't implemented vector icons yet, read our guide on the modern approach to SVG favicons.

The Fringe Formats: WebP, JPEG, and APNG

What about the other image formats? You might be tempted to use them for performance reasons, but they carry significant risks when used as browser icons.

JPEG (Never Use)

JPEG does not support an alpha channel (transparency). If your logo is circular or has irregular edges, saving it as a JPEG will force a solid background color (usually white) behind it. In a browser tab, especially if the user is using a dark theme, this looks terrible. Avoid JPEG entirely for favicons.

WebP (Proceed with Caution)

WebP is fantastic for standard web images, offering superior compression to PNG. However, browser support for `<link rel="icon" type="image/webp">` is still inconsistent across older mobile operating systems. Since the file size difference between a 32x32 PNG and a 32x32 WebP is negligible (often just a few bytes), the compatibility risk of WebP outweighs the performance benefit.

APNG / GIF (The Distraction)

Animated icons (using APNG or legacy GIF) are technically supported by browsers like Firefox and Chrome. However, having a constantly moving image in a user's peripheral vision is a massive UX anti-pattern. It is highly distracting. The only valid use case for an animated favicon is a temporary state change (like a loading spinner while a web app processes a task), never as a static brand icon.

Favicon File Formats Comparison Table

Here is how the formats stack up against each other based on real-world browser behavior in 2026.

FormatBrowser SupportTransparencyDark Mode CSSBest Used For
SVGModern OnlyYesYesPrimary desktop browser tabs
PNGUniversalYesNoApple Touch Icons, Android Manifest
ICOUniversalYesNoLegacy fallback, RSS bots
JPEGUniversalNoNoNever

Real-World Architecture: How GitHub Does It

Let's look at a production example. GitHub has a masterclass setup for their favicons. If you inspect their source code, you won't see a single, monolithic icon declaration.

Instead, they serve an SVG icon as their primary visual asset. If you switch your macOS or Windows theme from light to dark, you'll notice the GitHub Octocat icon in the browser tab instantly flips from black to white. They achieve this by embedding a @media (prefers-color-scheme: dark) rule directly inside the SVG file.

But GitHub knows that not every client supports SVG. So, sitting quietly at the root of their server is a traditional favicon.ico file. They don't even link to it in the HTML; they just let legacy browsers and automated bots request it naturally. This hybrid approach ensures cutting-edge features for modern users while maintaining perfect backward compatibility.

The 2026 Implementation Strategy

Based on this comparison, the conclusion is clear: you should not pick just one format. You need a multi-format stack. Here is the exact HTML you should be using in 2026 to cover 100% of devices efficiently.

<!-- 1. The Modern Vector Icon (Primary) -->
<link rel='icon' href='/icon.svg' type='image/svg+xml'>

<!-- 2. The Apple iOS Icon (PNG) -->
<link rel='apple-touch-icon' href='/apple-touch-icon.png'>

<!-- 3. The Android/PWA Manifest (Points to PNGs) -->
<link rel='manifest' href='/site.webmanifest'>

<!-- 4. The Legacy Fallback (ICO) -->
<link rel='alternate icon' href='/favicon.ico' sizes='32x32'>

Notice the alternate icon attribute on the ICO file. This tells modern browsers to ignore the ICO file entirely if they successfully loaded the SVG, saving a network request. Older browsers that don't understand SVG will ignore the first tag and load the ICO file instead.

Final Recommendation

Stop trying to force a single image format to do everything. The web is too diverse for that. Use SVG for your primary browser tabs to get crisp scaling and dark mode support. Use PNG for your Apple Touch Icons and web manifests to satisfy strict mobile OS requirements. And keep a favicon.ico with 16, 32, and 48 at the server root so browsers and older clients still find the favicon.ico format.

Manually generating all these different formats, resizing them, and writing the HTML is tedious. That is exactly why we built Mzu favicondl. You can upload a single high-resolution image, and our tool will automatically generate the perfect SVG, PNG, and ICO stack, complete with the correct HTML tags. Don't let a bad file format ruin your brand's first impression in the browser tab.

Frequently Asked Questions

What format is favicon.ico?

ICO. The favicon.ico format is a container that embeds multiple images, normally 16×16, 32×32, and 48×48. Each image is a PNG or a BMP (DIB), not a JPEG, and renaming a file to .ico does not create that container. Chrome, Firefox, Safari, and Edge still request /favicon.ico from the site root.

Can favicon.ico contain PNG?

Yes. A modern favicon.ico stores complete PNG files inside the ICO container, which current Chrome, Firefox, Safari, and Edge read. Older files store BMP bitmaps with an AND mask instead. Image to Favicon and the PNG to ICO converter write 16, 32, and 48 as PNG images inside one favicon.ico.

What is the standard favicon format?

ICO is the original and most compatible format; every browser reads /favicon.ico. PNG and SVG are the modern formats browsers prefer when declared. More: ICO file format.

Should a favicon be ICO or PNG?

Use both: ICO as the universal fallback and PNG for high-resolution and touch icons. Full comparison: ICO vs PNG favicon.

Can a favicon be a JPG?

Technically yes, but JPEG has no transparency and blurs at small sizes, so it is not recommended.

Which favicon sizes go with each format?

ICO: 16, 32, 48 px; PNG: 32, 180, 192, 512 px; SVG: any size. See the favicon sizes guide.