Favicon sizes and files you actually need
A short, current list of favicon files and sizes, with the link tags to use, design tips for tiny icons and common mistakes.
By the tools4free.dev team · Last reviewed 4 December 2026
For most sites you need only a handful of favicon files: an SVG or PNG icon for modern browsers, a small favicon.ico as a fallback, a 180 x 180 pixel apple-touch-icon.png for iOS home screens, and 192 and 512 pixel PNGs listed in a web app manifest if the site is installable. This guide explains what each file does, which sizes are worth making, and how to link them without clutter.
What a favicon is used for
A favicon is the small icon that represents a site. It appears in browser tabs, bookmarks, history, search results on some engines, and on a phone's home screen if a visitor adds the page. Different places ask for different sizes, which is why old advice suggested a long list of files. Browsers have since become better at scaling a single good source, so a short list is enough.
The files that matter
| File | Size | Used by | Needed? |
|---|---|---|---|
favicon.ico | 32 x 32 (can hold 16 and 48 too) | Legacy browsers and tools that request it at the site root | Recommended fallback |
icon.svg | Scalable | Browsers that accept SVG icons | Optional, very handy |
icon-192.png | 192 x 192 | Android home screen, installable web apps | If you ship a manifest |
icon-512.png | 512 x 512 | Splash screens and install prompts | If you ship a manifest |
apple-touch-icon.png | 180 x 180 | iOS and iPadOS "Add to Home Screen" | Recommended |
You will see lists with a dozen other sizes (57, 60, 72, 76, 114, 120, 144, 152 and so on). Those came from older device generations. Today the browser or operating system scales one of the larger images down, so you can skip them unless a platform you target explicitly asks for one.
The markup
This is a compact, widely used set of tags:
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
The manifest lists the larger icons:
{
"name": "Example",
"icons": [
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
]
}
Using sizes="32x32" on the ICO link stops some browsers from choosing the ICO over a better SVG. Always keep a file at /favicon.ico if you can, since many crawlers and tools request that path directly even when your HTML points elsewhere.
Worked example 1: a minimal static site
You run a small blog and want the least work that still looks right everywhere.
- Draw a simple mark on a 512 x 512 canvas with generous padding.
- Export a 32 x 32
favicon.icoand a 180 x 180apple-touch-icon.png. - Optionally export the same mark as
icon.svg. - Add the three link tags from the section above.
That is three files and no manifest. Tabs, bookmarks and iOS home screens are all covered. If the blog is never installed as an app, a manifest adds nothing.
Worked example 2: an installable web app
A tool site wants to be installable on Android. Add the manifest with 192 and 512 pixel PNGs, plus a "purpose": "maskable" version if the icon should fill whatever shape the system applies. A maskable icon needs its important content inside a central safe zone, because the operating system may crop the edges into a circle or rounded square. Keep the logo within about the middle 80% of the canvas and fill the whole background with a solid colour. Test it in your browser's application panel, which previews maskable icons.
Why 32 pixels and not 16
A tab icon is drawn at 16 CSS pixels, but many screens have two or three device pixels for each CSS pixel. A 32 x 32 file therefore looks sharp on a high-density display, while a 16 x 16 file looks soft. An ICO file can hold several sizes in one container, and the browser picks the closest match, so including 16, 32 and 48 pixel versions is a reasonable way to cover small tabs, high-density tabs and Windows shortcuts. If you only export one size, make it 32.
Design rules for tiny icons
- Keep it simple. A tab icon is displayed at roughly 16 to 32 pixels. Fine lines, small text and gradients turn to mud.
- One shape, one or two colours. A single bold letter or symbol reads better than a full logo.
- Design on a large canvas, then check small. Always view the final export at its actual size, not zoomed.
- Test on light and dark. Browser tab bars come in both. A dark icon vanishes on a dark tab. A transparent background, a contrasting outline, or a shape with its own background colour all help. An SVG can adapt to dark mode with a
prefers-color-schememedia query inside the file. - Square. Keep the image 1:1. Non-square images are cropped or squashed.
Search engines and favicons
Google Search can show your favicon beside results. Its documentation asks for a square image, with a size that is a multiple of 48 pixels, at a stable URL that it can crawl. A 48 x 48 or larger icon and a link tag in the home page's head are the usual way to satisfy it. Check the current Search Central page before relying on specifics, as such guidance changes.
Common mistakes
- Shipping only a large PNG and no
favicon.ico, so tools that look at the root see a 404. - Making a logo with small text, which is unreadable at 16 pixels.
- Using a transparent PNG for the Apple touch icon. iOS fills transparency with black, so use a solid background.
- Relative paths that break on nested pages. Use root-relative paths (starting with
/) or correct relative ones for each page depth. - Changing the icon and not seeing the change. Browsers cache favicons aggressively; rename the file or add a version query string such as
?v=2and hard refresh. - Blocking the icon in
robots.txt, which can prevent a search engine from fetching it. - Forgetting the MIME type. Serve SVG as
image/svg+xmland ICO asimage/x-iconorimage/vnd.microsoft.icon.
Checklist before publishing
- Open the site in a fresh private window and look at the tab.
- Request
/favicon.icodirectly and confirm it loads. - Check the page in a dark browser theme.
- If you have a manifest, open it in developer tools and confirm every icon path resolves.
- Add the page to an iOS or Android home screen if you can, and view the result.
Frequently asked questions
Do I still need a .ico file?
It is not strictly required for modern browsers, but it costs little and protects you against tools and crawlers that request /favicon.ico by default.
Can I use SVG alone?
For current browsers that accept SVG icons, yes. It is not enough for iOS home screens, which use the Apple touch icon, or for a manifest, which expects PNG sizes.
What size should the master file be?
Start from a square image of at least 512 x 512 pixels, or a vector. You can then export every smaller size from it without upscaling.
Why does my old favicon still appear?
Favicons are cached separately from page content. Clear the site's data, change the file name, or add a query string, and give the browser time to refetch it.