A favicon is the small icon in a browser tab, a bookmark, a phone home screen and next to your site in Google results. Search “favicon sizes” and you will find lists of twenty files. You do not need twenty. A modern site needs about five, and they can all come from one SVG logo. This guide explains each one and gives you the HTML.
The short answer
| File | Size | Used by |
|---|---|---|
favicon.ico | 16, 32 (and larger) inside one file | Older browsers, tools that request /favicon.ico directly |
icon.svg | Any (vector) | Modern Chrome, Firefox, Edge and Safari tabs |
apple-touch-icon.png | 180 × 180 | iPhone and iPad home screen |
icon-192.png | 192 × 192 | Android home screen (web app manifest) |
icon-512.png | 512 × 512 | Android splash screen and install prompts |
And in your page ``:
Why ICO still matters
The ICO format comes from Windows and is decades old, but browsers and many other programs (RSS readers, chat link previews, crawlers) still request /favicon.ico from the root of your domain without reading your HTML. If the file is missing, those requests fail and you get a blank icon in some places. One small ICO in the root covers them all.
An ICO can hold several sizes. For a favicon, 16 and 32 pixels are what matter; larger sizes are harmless and help Windows when someone pins the site. The SVG to ICO converter draws your SVG at 512 pixels or more and scales it down to 256, 128, 64, 32 and 16 pixels, so every size is sharp.
Why add an SVG favicon
Modern browsers accept an SVG favicon, which stays crisp on any screen density. It also has a party trick: an SVG can contain a CSS media query, so the icon can change colour in dark mode:
path { fill: #111; } @media (prefers-color-scheme: dark) { path { fill: #fff; } }
Keep the SVG simple and small; tidy it with the SVG Optimizer to remove editor metadata.
Apple touch icon: 180 × 180
When someone adds your site to an iPhone or iPad home screen, iOS uses apple-touch-icon.png. Use a 180 × 180 PNG with a solid background — iOS fills transparent areas with black or white, which rarely looks good, and it rounds the corners itself, so do not add your own. The Apple Touch Icon Generator makes this file.
Android and the web app manifest: 192 and 512
Android Chrome reads icons from your web app manifest, a small JSON file:
{
"name": "My Site",
"icons": [
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
]
}The Manifest.json Generator writes this for you.
What Google Search requires
Google shows your favicon next to your result. Its guidelines ask for:
- A favicon linked from your home page with ``
- A square image whose size is a multiple of 48 pixels (48, 96, 144, 192…); SVG has no size problem
- A stable URL that Googlebot is allowed to crawl
- An icon that represents your brand (not offensive content)
The 192-pixel PNG and the SVG both satisfy this. Changes can take days or weeks to appear in results, because Google recrawls favicons on its own schedule.
Making the whole set from one SVG
- Start from a square SVG of your logo mark (not the full wordmark — names are unreadable at 16 pixels).
- Convert it to
favicon.icowith SVG to ICO. - Keep the SVG itself as
icon.svg. - Export 180, 192 and 512 pixel PNGs with the SVG Converter after setting the SVG's width and height, or generate everything at once with the Favicon Generator.
- Upload the files to your site root and add the four `` lines.
Common problems
My new favicon does not appear. Browsers cache favicons hard. Test in a private window, or add a version to the URL (/icon.svg?v=2).
The tab shows a blurry icon. The browser is shrinking a large PNG. Provide the ICO with a real 16 and 32 pixel size, or an SVG.
The icon is invisible in dark mode. A dark logo on a transparent background disappears on dark tabs. Add a light outline, a background shape, or a dark-mode style in the SVG.
The logo looks squashed. The source was not square. The icon keeps the logo's proportions, so a wide logo becomes a thin strip; use a square symbol.


