← All guides

The Right Favicon Sizes for Every Browser and Device

One image, resized on the fly, is how most sites end up with a blurry icon. Here's what actually generates each size cleanly needs, and why.

Why one file isn't enough

It's tempting to think a single large, high-resolution image should cover every use case — after all, browsers can resize images on the fly. In practice, shrinking one large icon down to 16×16 pixels tends to look muddy, because fine detail that reads fine at full size turns into indistinct noise at icon size. Generating each size independently from the original, rather than scaling one small master copy down further, keeps every size sharp regardless of how small it ends up.

The sizes that actually matter

SizeUsed for
16×16Browser tabs and bookmark bars
32×32Taskbar shortcuts and higher-density tab displays
48×48Windows site shortcuts and some browser UI
180×180Apple touch icon — shown when someone adds your site to an iPhone/iPad home screen
192×192Android home screen icon
512×512Android/PWA splash screens and app store style listings

Each one exists for a specific display context, not out of redundancy — the tiny sizes show up where screen space is at a premium, while the larger ones are what mobile operating systems use when your site starts behaving like an installed app rather than a browser tab.

Where the files actually go

Once you have the sizes, they're referenced from the <head> of your HTML, typically placed in your site's root folder so the paths are simple:

<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<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="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png">

Modern browsers all support PNG favicons directly, so there's no real need for the older .ico format most sites used to require.

What if my source image isn't square?

Center-crop it to a square before resizing, rather than squashing or stretching it — a non-square icon distorted to fit will look wrong at every size, while a clean center crop preserves the important part of the image (usually a logo or mark) without warping it.

Designing for a tiny canvas

A favicon is often shown at 16 by 16 pixels, which is smaller than most fingernails on a screen. Fine detail disappears, so start from the simplest version of your logo. One bold shape, one or two letters, or a simple symbol works better than a full wordmark. Use strong contrast, because the icon may sit on a light or a dark tab. If your logo is wide, crop it to the most recognisable part rather than shrinking the whole thing.

Checking it works

  1. Open the page in a new tab and look at the tab icon at normal size.
  2. Look at it in a dark theme and a light theme.
  3. Add the site to your phone's home screen and see how the larger icon looks.
  4. Clear the browser cache or open a private window, because browsers keep old favicons for a long time.

If you still see the old icon, try adding a version number to the file name or the link, for example favicon.png?v=2.

Common questions

Do I still need a .ico file? Modern browsers accept PNG icons, but a small .ico at the site root is a safe fallback for older ones and some tools that look for it automatically.

Why does Google show a different icon? Search engines fetch the icon separately and update it slowly. A clear square icon of at least 48 pixels, linked from the page, gives it the best chance.

Can I use a transparent background? Yes, but test it on dark and light tabs, because a dark logo on transparent can vanish in a dark theme.

Try it yourself

The Favicon & App Icon Generator does all of this in one step — upload one image, and it generates every size above (center-cropped automatically if needed), packaged as a zip with the exact HTML snippet to paste into your site.