Skip to content

Formats

Favicon Formats Compared: ICO vs PNG vs SVG (and When to Use Each)

ICO, PNG and SVG each do a different job. Browser support, dark mode, file size, where each format is actually used, and the HTML for a setup that works everywhere.

January 5, 2026
Updated October 12, 2026
6 min read

The short answer

You do not pick one favicon format — you use each one for the job it is good at:

  • ICO for /favicon.ico at 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.
FormatUse it forSupported byDark mode
ICO/favicon.ico fallback, Windows shortcutsEvery browserNo
PNGTab icon, Apple touch icon, Android/PWA iconsEvery browser and platformNo
SVGSharp tab icon in modern desktop browsersChrome, Edge, Firefox; recent Safari onlyYes
JPG / WebPNothing — avoidInconsistentNo

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.png for iPhone and iPad home screens. iOS does not use SVG or ICO here.
  • 192×192 and 512×512 in site.webmanifest for 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

FeatureICOPNGSVG
TypeRaster containerRasterVector
Several sizes in one fileYesNoScales to any size
TransparencyYesYesYes
Dark-mode switchingNoNoYes, via CSS
Requested automatically at /favicon.icoYesNoNo
Browser tabAll browsersAll browsersChrome, Edge, Firefox, recent Safari
Apple touch icon (iOS home screen)NoYes — requiredNo
Android / PWA manifest iconNoYes — requiredNot reliable for install
Windows shortcuts and pinned sitesYesPartialNo
Typical size for a simple icon5–15 KB (multi-layer)0.5–3 KB per size0.3–1 KB

Browser support by format

BrowserICOPNGSVG favicon
Chrome (desktop and Android)YesYesYes (80+)
EdgeYesYesYes (80+)
FirefoxYesYesYes (41+)
Safari (macOS)YesYesRecent versions only
Safari (iOS) — tabYesYesRecent versions only
iOS home screenNo180×180 apple-touch-iconNo
Android home screenNo192/512 manifest iconsNo

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.

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. Use sizes="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+xml and ICO as image/x-icon or image/vnd.microsoft.icon. A server sending text/plain makes 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.svg if 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.

Frequently asked questions

What is the best format for a favicon?▾
There is no single best format. Use favicon.ico at the site root because browsers and crawlers request it automatically, PNG for the fixed-size tab, Apple touch and Android icons, and optionally SVG for sharp, dark-mode-aware tab icons in Chrome, Edge and Firefox.
Is ICO or PNG better for a favicon?▾
You need both. ICO is what browsers request at /favicon.ico and what Windows uses for shortcuts. PNG is required for the 180×180 Apple touch icon and the 192×192 and 512×512 Android manifest icons. In a browser tab they look the same.
Can I use only an SVG favicon?▾
Not safely. Older Safari versions ignore SVG favicons, iPhone home screens need a PNG apple-touch-icon, Android needs PNG manifest icons, and many tools only read /favicon.ico. Use SVG as an addition to ICO and PNG.
Should I link favicon.ico in my HTML?▾
You can, and it makes the setup explicit. Use <link rel="icon" href="/favicon.ico" sizes="32x32">. Avoid sizes="any" on the ICO line, because Chrome will then prefer the ICO over an SVG favicon.
Can I use a JPG or WebP image as a favicon?▾
Browsers may display them, but JPG has no transparency and blurs sharp edges, and WebP support for favicons is inconsistent. Convert to PNG and ICO instead.
How do I convert between favicon formats?▾
Upload a PNG, JPG or SVG to a favicon generator that outputs favicon.ico and PNG sizes. FaviconStudio does this in the browser: use the Image tab or the SVG to favicon page for logos, or the PNG to ICO converter when you only need the ICO file.

Related posts