1. What is a Favicon?
A favicon (short for “favorite icon”) is a small square graphic associated with a website or web page. It appears in browser tabs, bookmark menus, history, some search results, and as the icon when a site is added to a phone’s home screen.
2. The History of the Favicon
Microsoft introduced the favicon with Internet Explorer 5 in March 1999.
- Original behavior: The browser looked for a file named exactly
favicon.icoin the site’s root directory. If found, it displayed the icon next to the URL (when bookmarked) and in the Favorites list. - Bookmark-counter side effect: In the early days, many sites treated requests for
favicon.icoas a rough proxy for how often the page was bookmarked, because IE often fetched the icon when a user added it to Favorites. Modern browsers request the favicon on ordinary page loads, so this metric no longer works. - Standardization: The HTML
<link rel="icon">element (later refined by the W3C and browser vendors) allowed icons to live anywhere, support multiple sizes, and use formats beyond ICO — most commonly PNG and SVG today.
3. Modern Usage & Implementation
High-DPI screens, mobile home screens, and Progressive Web Apps mean a single 16×16 ICO is no longer enough. A solid 2026 setup usually includes:
- A multi-size
favicon.ico(or PNG fallback) for broad compatibility - An SVG for crisp scaling and optional dark-mode adaptation
- An Apple touch icon (180×180)
- 192×192 and 512×512 PNGs declared in a web app manifest for Android / PWA
Recommended HTML
<!-- Classic ICO (multi-size 16/32/48 recommended) -->
<link rel="icon" href="/favicon.ico" sizes="any">
<!-- Modern SVG (crisp at any resolution, can adapt to dark mode) -->
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<!-- Apple home-screen / bookmarks -->
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- Web App Manifest (PWA / Android icons live here) -->
<link rel="manifest" href="/site.webmanifest">
<!-- Optional: theme color for browser chrome -->
<meta name="theme-color" content="#3182ce">
4. Live Demo — Icon Sizes in Context
Here’s the same simple “F” icon rendered at the most common sizes. Notice how readability changes dramatically at 16×16 versus larger sizes.
(browser tab)
(Retina tab)
(Windows taskbar)
(Apple touch — shown smaller)
Tip: Design at a large size first, then test the 16×16 version. Simple shapes and high contrast win.
5. Minimal Web App Manifest
For Progressive Web Apps (or just better Android home-screen icons), create a site.webmanifest (or manifest.json) and link it as shown above. A minimal, standards-compliant version looks like this:
{
"name": "Example Website",
"short_name": "Example",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#3182ce",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "/icon-512-maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
The 192 px and 512 px icons are the minimum required by Chromium-based browsers. A maskable variant gives Android more room to apply its adaptive-icon shapes cleanly.
6. Why Favicons Matter
A few pixels of branding influence recognition, trust, and how easily people find your site among many open tabs.
- Tab management: With dozens of tabs open, titles disappear. The favicon is often the only remaining visual cue.
- Brand & professionalism: A clear, consistent icon reinforces identity. A missing or generic icon can make a site feel unfinished.
- Search results: Google and other engines frequently show favicons next to results. A distinctive icon can support click-through rates; it is not a ranking signal by itself.
- Mobile & PWA: When users add a site to the home screen, the touch icon and manifest icons become the everyday app-like icon they see.