Google's favicon rules
For Google to show your favicon in search results, declare it in the head of your homepage with a link rel="icon" tag. The file must be square (1:1 aspect ratio) and at least 8 × 8 pixels, though Google recommends going larger than 48 × 48 pixels so it looks sharp everywhere. Google Search supports BMP, GIF, ICO, PNG, JPEG, PPM and TIFF, so an SVG favicon, handy for browsers, needs an ICO or PNG alongside it. Googlebot must be able to crawl the homepage and Googlebot-Image the favicon file, with nothing blocked in robots.txt, and the favicon URL should stay stable.
Files to prepare
- favicon.ico at 32 × 32 pixels in the site root for older browsers and tools.
- An SVG favicon for modern browsers, sharp at every size and able to include a dark mode variant.
- An apple-touch-icon PNG at 180 × 180 pixels for iPhone and iPad home screens.
- 192- and 512-pixel icons declared in the web app manifest for Android.
Designing a readable favicon
A full logo turns into an unreadable smudge at 16 pixels. Use the symbol, monogram or initial, with thick shapes and minimal detail. Put it on a solid color square if the symbol is thin, and test it in both a light and a dark browser tab before you ship it.
Common mistakes
Leaving the default icon from your CMS or host, which looks unfinished in search results. Using a black PNG with a transparent background that disappears in dark-mode tabs. Changing the favicon URL often, which delays updates in search results, a process that can take days anyway.
