The short answer
You do not pick one favicon format — you use each one for the job it is good at:
- ICO for
/favicon.icoat your site root. Browsers, Windows, RSS readers and many crawlers request this path automatically, so it is the one file you should never skip. - PNG for everything with a fixed size: the 32×32 tab icon, the 180×180 Apple touch icon, and the 192×192 and 512×512 icons in your web manifest.
- SVG as an optional extra for Chrome, Edge and Firefox. It stays sharp at any zoom level and is the only format that can switch colours in dark mode.
| Format | Use it for | Supported by | Dark mode |
|---|---|---|---|
| ICO | /favicon.ico fallback, Windows shortcuts | Every browser | No |
| PNG | Tab icon, Apple touch icon, Android/PWA icons | Every browser and platform | No |
| SVG | Sharp tab icon in modern desktop browsers | Chrome, Edge, Firefox; recent Safari only | Yes |
| JPG / WebP | Nothing — avoid | Inconsistent | No |
If you only have time for one file, ship favicon.ico. If you have five minutes, ship the full set — the free favicon generator builds the ICO and every PNG size in one ZIP, and the SVG to favicon converter does the same from a vector logo.
ICO: the file every browser asks for
ICO is a container format from the Internet Explorer era. One .ico file holds several bitmap images — typically 16×16, 32×32 and 48×48 — and the browser or operating system picks the layer closest to the size it needs. Modern ICO files store those layers as PNG data, so quality is identical to a standalone PNG.
ICO matters in 2026 for one reason: convention. Browsers request /favicon.ico even if your HTML never mentions it, and so do bookmark managers, feed readers, chat apps that unfurl links, and plenty of crawlers. A missing root ICO shows up as a stream of 404s in your logs and a blank icon in those tools.
What ICO cannot do: scale beyond the layers it contains, or react to dark mode. Whatever pixels you embed are what users see.
How to make one: every download from the favicon generator includes a multi-size favicon.ico (16, 32, 48 and 64 px). If you already have a logo, the favicon ICO generator builds one from PNG, JPG, WebP or SVG and shows each layer at actual size, and the PNG to ICO converter lets you add the large 128 and 256 px layers. Renaming a .png file to .ico is not the same thing — some browsers tolerate it, Windows does not.
PNG: fixed sizes for tabs and home screens
PNG is lossless, supports full transparency, and every browser and platform accepts it. It is the format for every icon with a fixed pixel size:
- 32×32 (and optionally 16×16) for browser tabs, declared with
<link rel="icon" type="image/png">. - 180×180
apple-touch-icon.pngfor iPhone and iPad home screens. iOS does not use SVG or ICO here. - 192×192 and 512×512 in
site.webmanifestfor Android home screens and installed web apps. Chrome expects PNG for these.
PNG's limit is the same as ICO's: it is raster. A 32×32 PNG on a 3× display is upscaled and slightly soft. That is usually fine for a tab icon, but it is why you should never upscale a small PNG to fill the 512×512 slot. Which sizes you need and why is covered in the favicon sizes guide.
SVG: sharp at any size, with dark mode
An SVG favicon is a vector file: one small XML document that renders crisply at 16 px in a tab and at 64 px in a zoomed bookmark bar. Chrome (since version 80), Edge (80) and Firefox (41) support it. Safari added support much later, and older Safari versions ignore SVG favicons entirely — so an SVG must always sit alongside ICO and PNG, never replace them.
The headline feature is dark mode. Because SVG can contain CSS, one file can carry two colour schemes:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<style>
.bg { fill: #1e40af; }
@media (prefers-color-scheme: dark) {
.bg { fill: #60a5fa; }
}
</style>
<rect class="bg" width="100" height="100" rx="20"/>
<path fill="#fff" d="M30 25h40v12H44v10h22v12H44v16H30z"/>
</svg>
Note the letter is drawn as a path rather than <text>. Text inside an SVG favicon uses whatever fonts the visitor has installed, so the same file can look different on different machines.
Where SVG is not used: the Apple touch icon, Android manifest icons and Windows shortcuts. Those always need PNG or ICO. For a full walkthrough of dark-mode SVG favicons, see the SVG favicon guide.
JPG, WebP and GIF
Browsers will display a JPG favicon if you link one, but JPG has no transparency and its compression smears sharp edges — exactly what a tiny icon is made of. WebP and AVIF favicons work in some browsers and not others, and they save a few hundred bytes at best. Animated GIF favicons are ignored by most browsers. There is no situation where these beat PNG or SVG for a favicon.
Complete format comparison
| Feature | ICO | PNG | SVG |
|---|---|---|---|
| Type | Raster container | Raster | Vector |
| Several sizes in one file | Yes | No | Scales to any size |
| Transparency | Yes | Yes | Yes |
| Dark-mode switching | No | No | Yes, via CSS |
Requested automatically at /favicon.ico | Yes | No | No |
| Browser tab | All browsers | All browsers | Chrome, Edge, Firefox, recent Safari |
| Apple touch icon (iOS home screen) | No | Yes — required | No |
| Android / PWA manifest icon | No | Yes — required | Not reliable for install |
| Windows shortcuts and pinned sites | Yes | Partial | No |
| Typical size for a simple icon | 5–15 KB (multi-layer) | 0.5–3 KB per size | 0.3–1 KB |
Browser support by format
| Browser | ICO | PNG | SVG favicon |
|---|---|---|---|
| Chrome (desktop and Android) | Yes | Yes | Yes (80+) |
| Edge | Yes | Yes | Yes (80+) |
| Firefox | Yes | Yes | Yes (41+) |
| Safari (macOS) | Yes | Yes | Recent versions only |
| Safari (iOS) — tab | Yes | Yes | Recent versions only |
| iOS home screen | No | 180×180 apple-touch-icon | No |
| Android home screen | No | 192/512 manifest icons | No |
The practical takeaway: PNG and ICO work everywhere, SVG is an enhancement, and the mobile home-screen slots are PNG-only. The mobile favicon guide covers the Apple touch icon and Android Chrome icon sizes in detail.
Implementation examples
1. Minimum: ICO only
Put favicon.ico in your site root. No HTML is needed — browsers find it on their own. This gives you a tab icon everywhere but nothing on mobile home screens.
2. Recommended: ICO + PNG + manifest
This is exactly what the generator downloads, and it covers desktop, iOS and Android:
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
{
"name": "Your Site",
"short_name": "Site",
"icons": [
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
],
"theme_color": "#1e40af",
"background_color": "#ffffff",
"display": "standalone"
}
3. Adding an SVG with dark mode
Add one line for the SVG. Keep sizes="32x32" on the ICO line: if you write sizes="any" there, Chrome treats the ICO as scalable and picks it over your SVG.
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
4. Next.js App Router
Next.js generates the tags for you from file names. Put favicon.ico in app/, add app/icon.svg (or icon.png) and app/apple-icon.png, and keep the manifest in public/. Next writes the matching <link> tags into every page automatically. Other frameworks and CMSs are covered in how to add a favicon.
Mistakes that break favicon formats
sizes="any"on the ICO link. Chrome then ignores your SVG. Usesizes="32x32".- A PNG renamed to
.ico. It is still a PNG. Convert it properly with the PNG to ICO converter. - SVG only. Safari on older devices, iOS home screens and Android installs all need raster files.
- Wrong MIME types. Serve SVG as
image/svg+xmland ICO asimage/x-iconorimage/vnd.microsoft.icon. A server sendingtext/plainmakes some browsers drop the icon. - Transparent dark logo. On a dark tab bar it disappears. Use a solid background, or an SVG with a dark-mode colour.
After changing formats, run your URL through the favicon checker to confirm every file loads, then hard-refresh — browsers cache favicons aggressively.
Which format should you use?
- Starting from scratch with no logo: make a favicon from text or an icon and download the ICO + PNG set.
- You have a vector logo: convert it with SVG to favicon for the ICO and PNG files, and also ship the original as
favicon.svgif you want dark mode. - You have a PNG, JPG or WebP logo only: the favicon package generator makes the ICO, every PNG, the manifest and the HTML in one go; use the favicon ICO generator if you only need the ICO.
- Your platform takes a single upload (WordPress, Shopify, Squarespace): upload a 512×512 PNG and let the platform generate the rest.
Ready to create your favicon? Use FaviconStudio free — no sign-up needed →