Favicon Sizes in 2026: The Few Files You Actually Need
Which favicon files a modern website needs (ICO, SVG, 180 px Apple icon, 192 and 512 px for the manifest), the HTML tags to add, and how to beat favicon caching.
Search for favicon sizes and you will find lists of twenty or thirty files: 57, 60, 72, 76, 114, 120, 144, 152 pixels, Windows tile images, Safari pinned tab masks. Most of that is history. Today a handful of files covers browsers, phones, home screens and search results. This guide lists them, explains what each one is for, and gives you the HTML. The favicon generator makes the whole set from one square logo.
The short list
| File | Size | Used by |
|---|---|---|
favicon.ico | 16, 32 and 48 px in one file | Browser tabs, bookmarks, tools that request /favicon.ico directly |
| SVG icon (optional) | Scalable | Modern browsers, sharp at any size, can adapt to dark mode |
apple-touch-icon.png | 180 × 180 px | iPhone and iPad home screen |
| PNG icons in the web manifest | 192 × 192 and 512 × 512 px | Android home screen, installable web apps, splash screens |
Small PNGs at 16 and 32 pixels are a common addition for browsers that prefer PNG over ICO. That is it. You can skip the long list of old Apple sizes (iOS scales the 180 px icon), browserconfig.xml for old Windows tiles, and the Safari mask-icon.
The HTML
Put the files in the root of your site and add this to the <head> of every page:
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
The sizes="32x32" on the ICO line stops some browsers from preferring the ICO over the SVG. Drop the SVG line if you do not have an SVG icon. The manifest is a small JSON file that lists the larger icons:
{
"name": "Example",
"icons": [
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
]
}
Use the file names your generator actually produced. A wrong path in the manifest fails silently.
Designing for 16 pixels
- Use the logo mark, not the full logo. A company name in a 16 × 16 square is an unreadable grey smudge. One letter or a simple symbol works.
- Strong contrast and thick shapes. Thin lines disappear at small sizes.
- Check both light and dark browser themes. A black icon on a transparent background vanishes on a dark tab bar. Add a subtle outline or a coloured background shape.
- Apple icons need a solid background. iOS does not support transparency there and adds its own rounded corners, so do not round them yourself.
- Android may crop icons into circles or other shapes. Keep important parts away from the edges, roughly in the middle 80% of the image.
The SVG favicon
An SVG favicon stays sharp on any screen and can switch colours for dark mode with a media query inside the SVG:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<style>path{fill:#111} @media (prefers-color-scheme:dark){path{fill:#fff}}</style>
<path d="M4 4h24v24H4z"/>
</svg>
The generator builds the ICO and PNG files from a raster image; an SVG icon is something you export from your design tool. Chrome, Edge and Firefox support SVG favicons. Safari has been slower to adopt them, which is one reason to keep the ICO and PNG files as fallbacks. SVGs exported from design tools are full of editor metadata, so run the file through the SVG minifier before using it. A favicon is requested on every first visit and should be tiny.
Caching: why your new favicon does not show
Browsers cache favicons stubbornly, sometimes long after the page itself has been updated. If you change the icon:
- Open the icon URL directly, for example
/favicon.ico, and reload it. If you see the new icon there, the server is fine and it is only the browser cache. - Check in a private window or another browser.
- For a definite change, add a version to the URL in your HTML:
/favicon.svg?v=2. Browsers treat it as a new file.
Search engines are slower still. Google shows favicons in its results and recommends a square icon whose size is a multiple of 48 px, with a stable URL. After a change, it can take days or weeks before the new one appears there.
Our take
Generate the set once from a clean square source at 512 px or more, upload the files to the site root, paste the four lines and move on. Do not spend an afternoon on thirty sizes nobody requests anymore. Spend the time on the design at 16 pixels instead: if your icon is recognisable in a crowded row of browser tabs, it has done its job.
Anthony has worked in IT for more than 17 years: office and field networks, servers, telephony, user support and security patching in international organisations. He writes about networking, security, developer tools and calculators.




