Which favicon sizes you actually need, when to use favicon.ico, PNG or SVG, the exact HTML to paste, and why your favicon may not be showing.
| Size | Format | Used for |
|---|---|---|
| 16×16, 32×32 | ICO or PNG | Browser tabs and bookmarks |
| 48×48 | ICO or PNG | Google Search results and some desktop shortcuts |
| 180×180 | PNG | Apple touch icon (iPhone and iPad home screen) |
| 192×192, 512×512 | PNG | Android home screen and web app manifests |
| Scalable | SVG | Modern browsers, sharp at any size, supports dark mode |
A favicon is the tiny icon shown in browser tabs, bookmarks, history and, on mobile, next to your site in Google results. It looks like a minor detail, yet it affects how recognisable and trustworthy your site looks next to competitors. The confusing part is the number of files and sizes people recommend. This guide explains what you really need.
The word comes from "favourite icon", because browsers first used it for bookmarks. Today it appears in tabs, bookmarks, browser history, search results, and when someone saves your site to their phone's home screen. A clean favicon helps visitors find your tab among twenty open ones.
The classic format. An ICO file can hold several sizes (for example 16, 32 and 48 pixels) inside a single file. Many browsers and crawlers still request /favicon.ico from your site root automatically, even when your HTML points elsewhere, so keeping one is a safe default.
PNG gives sharper results and transparency, and it is required for Apple touch icons and Android icons. For tab icons you typically provide 32×32, plus larger versions for devices.
SVG is a vector format, so one file stays crisp at any size. Modern browsers support it, and you can make the icon adapt to dark mode with a small CSS media query inside the file. Older browsers ignore it, which is why most sites still ship an ICO or PNG as a fallback.
| Format | Best for | Limitation |
|---|---|---|
| ICO | Maximum compatibility, root-level default | Large files if many sizes are bundled |
| PNG | Sharp tab icons, Apple and Android icons | One file per size |
| SVG | Sharp scaling and dark-mode icons | Not supported by very old browsers |
favicon.ico and the PNG files where your web server can serve them.<head> of every page, or to your shared template.If your logo is the wrong size or a different format, use Resize Image or Convert Image Format first. For example, convert a JPG to PNG to keep a transparent background after removing it with the Background Remover.
Paste this inside the <head> section:
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
If you also publish a web app manifest, list the 192×192 and 512×512 PNGs inside it.
Google shows a favicon next to your site name in mobile and desktop results. Google's guidance asks for a square icon whose size is a multiple of 48 pixels (48×48, 96×96, 144×144 and so on), at a stable URL that Google can crawl. Use a simple, recognisable design, because Google may replace icons it considers inappropriate. After changing the file, it can take days or weeks before the new icon appears in results.
/favicon.ico returns the image and not a 404 page.You do not need dozens of files. A favicon.ico, 32×32 and 16×16 PNGs, a 180×180 Apple icon and 192/512 PNGs for Android cover almost every device. Start from a simple square logo, generate the sizes, add the four tags, and clear your cache to check the result. Use the free Favicon Generator to create the set in a few clicks.
Turn any logo or image into favicon files and get your site looking professional in every tab.
Open Favicon GeneratorAuthor: Vaibhav
Last Updated: November 2026