Favicon Sizes in 2026: What You Need and Why

By The UtilCraft team · 3 min read ·

Favicons used to be simple: one 16×16 favicon.icoin the site root. Then came high-density screens, home-screen bookmarks, Android launchers and dark mode, and favicon generators started producing twenty files and a page of HTML. You don't need most of that. Here's what a modern site actually needs, and why.

The short list

FileSizeUsed by
favicon.ico32×32 (optionally with 16×16 and 48×48)Browser tabs and bookmarks, plus anything that requests /favicon.ico directly: older browsers, RSS readers, some search features
icon.svgVectorModern browsers; scales perfectly and can adapt to dark mode
apple-touch-icon.png180×180iPhone and iPad home screen, and some other platforms
icon-192.png and icon-512.png192×192, 512×512Android home screen and installable web apps, via a web manifest

That's five files, and if you don't care about installable web apps, you can drop the last two.

The HTML

<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.webmanifest">

The sizes="32x32" on the ICO line matters: without it, some browsers prefer the ICO over the SVG. If you use a framework, check its conventions first. Next.js, for example, picks up favicon.ico, icon.png and apple-icon.png placed in the app directory and writes the tags for you.

And the minimal manifest, if you include the Android icons:

{
  "name": "Your Site",
  "icons": [
    { "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
  ]
}

Why ICO is still around

ICO is a Windows icon format from the 1980s. Its one trick is that a single file can contain several images at different sizes, so the system picks whichever fits. Every browser supports it, and many tools and services still request /favicon.icowithout reading your HTML at all. That's reason enough to keep one, even though PNG and SVG do the real work in modern browsers.

Since Windows Vista, the images inside an ICO can be stored as PNG, which keeps transparency and makes files small. That's how our Image Converter builds them: pick the sizes you want and each one is exported as a ready-to-use .ico. For a website, the 32×32 file is the one to name favicon.ico.

Why one 512 px PNG isn't enough

It's tempting to provide one big image and let browsers scale it down. It works, but the results at 16 and 32 pixels are usually poor, because automatic downscaling blurs thin lines and small text into grey mush. Icons that look sharp in the tab are typically:

  • Simplified. Use just the symbol or initial instead of the full logo with its wordmark.
  • Bold. Thicker strokes and fewer details than the full-size logo.
  • Tightly cropped, with little empty margin, since every pixel counts at 16×16.

The Apple touch icon is the opposite case: iOS doesn't support transparency there and fills it with black, so give it a solid background and some padding, since corners are rounded automatically.

Dark mode with SVG

A dark logo disappears on a dark browser tab. SVG favicons can include a media query that switches colours:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
  <style>
    path { fill: #111; }
    @media (prefers-color-scheme: dark) { path { fill: #fff; } }
  </style>
  <path d="…"/>
</svg>

Step by step

  1. Start from a square master image, at least 512×512, ideally exported from your vector logo.
  2. Make a simplified version for small sizes if the logo has fine detail.
  3. Use the Image Resizer to produce the 180, 192 and 512 px PNGs.
  4. Use the PNG to ICO converter for favicon.ico.
  5. Add the four <link> tags, deploy, and check the result in a private window, since favicons are cached aggressively.

Tools used in this guide

Keep reading