harmmy

Favicons: the five files browsers actually ask for

What to generate, where to put it, and why your icon is blurry in one place and fine in another.

2026-11-29

The short list

A modern site needs favicon.ico or a 32×32 PNG for tabs, a 180×180 apple-touch-icon for the iOS home screen, 192 and 512 PNG for Android, and ideally one maskable 512 for adaptive icons. Browsers fall back in odd ways, so shipping the first four covers almost everything.

The .ico still matters for old bookmarks and some Windows surfaces. It is a container: one file can carry 16, 32 and 48 px versions, which is why it survives next to PNG.

Design for 16 pixels, not for a portfolio

The tab icon is 16×16. Thin strokes disappear, gradients turn to mud, and text becomes a smear. Start with a bold shape and check it at actual size before polishing detail that nobody will see.

Transparency is fine in browser tabs, but iOS puts the icon on a solid background and rounds the corners itself. Do not bake a white rounded square into the artwork unless you also ship a proper maskable version.

Where the files go

Put favicon.ico at the site root so /favicon.ico resolves without markup. Declare the PNGs in the document head with explicit sizes; the browser picks the closest match, while some crawlers and previews use the largest.

Cache is the usual complaint: browsers keep favicons far longer than other assets. Change the filename when the icon changes, or append a version, and expect Google results to lag for days.

A quick test

Check the browser tab, a bookmark, the iOS home screen and an Android launcher. Each uses a different file and crop. If one looks soft, the wrong size is being upscaled.

Our generator exports PNG sizes plus a multi-size ICO and a ZIP of the set; the ICO is limited to 256 px per entry because that is the format's ceiling, not an arbitrary choice.

Related tools

Favicons: the five files browsers actually ask for | harmmy