Old favicon tutorials generate 20 different PNG files and a dozen <link> tags for discontinued browsers. Modern websites only need a small, well-structured set of files to look sharp across Chrome, Safari, Firefox, iOS home screens, Android launchers, and Google Search results.
The minimal favicon file set for 2026
Seven static icon files plus site.webmanifest cover desktop tabs, bookmarks, mobile home screens, Progressive Web Apps, and search result badges:
| File | Size | Purpose |
|---|---|---|
favicon.ico | 16×16, 32×32, 48×48 px | Root fallback for legacy clients, RSS readers, and Google Search |
icon.svg | Vector (viewBox) | Crisp infinite scaling in modern desktop tabs and dark-mode adaptation |
favicon-16x16.png | 16×16 px | Explicit small raster fallback |
favicon-32x32.png | 32×32 px | Standard desktop tab and Retina fallback |
apple-touch-icon.png | 180×180 px | iOS and iPadOS home-screen shortcut icon (use an opaque fill) |
android-chrome-192x192.png and android-chrome-512x512.png | 192×192 and 512×512 px | Android launcher, splash screens, and site.webmanifest |
Clean HTML head markup
Place the icon files and site.webmanifest in your site’s public root directory (such as public/ in Next.js or Vite), then declare them in <head>:
<link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<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" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="theme-color" content="#080808" />
Pair that <head> block with a compact site.webmanifest:
{
"name": "Your Site Name",
"short_name": "Site",
"icons": [
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
],
"theme_color": "#080808",
"background_color": "#080808",
"display": "standalone"
}
Design rules that keep 16 px icons legible
Icons that look detailed at 512 px turn into grey noise at 16×16 px inside a crowded browser tab bar. Test your mark at real tab size before shipping.
How recognizable products stay sharp at 16 px
Every strong browser tab icon reduces the logo to a single bold silhouette with zero small text.
- Geometric markLinearlinear.app
Three diagonal bands slice a single circle so the shape stays unmistakable even in pinned 16 px tabs.
- Color contrastFigmafigma.com
Five distinct geometric shapes separate cleanly at 16 px so the mark stays recognizable without small text.
- Negative spaceRaycastraycast.com
A high-contrast coral prism reads instantly at small sizes without relying on a wordmark.
- Geometric markVercelvercel.com
A single equilateral triangle scales cleanly to 16 px and stays crisp in both dark and light browser tabs.
- Monogram tileStripestripe.com
One bold letter centered on a solid square works unchanged across desktop bookmarks and iOS home screens.
- SilhouetteGitHubgithub.com
A solid high-contrast silhouette stays unmistakable across dark and light browser tab bars.
- Simplify thin strokes and drop small wordmarks from the favicon. Use a single symbol or one-to-two letter monogram instead.
- Check contrast on both light and dark browser chrome. Inside
icon.svg, a<style>block with@media (prefers-color-scheme: dark)lets a monochrome mark invert cleanly between light and dark tabs. - Give
apple-touch-icon.pngan opaque background with about 10–15% inner padding. iOS applies its own rounded-square mask and fills transparent edges with solid black. - Include a 48×48 px frame inside
favicon.ico(or a 48 px multiple PNG) so Google Search picks up your site icon reliably.
Working from SVG, PNG, or an existing ICO
Starting from a clean vector logo keeps every generated PNG frame sharp. If your logo is currently a flat PNG, trace it into editable vector paths with Image to SVG Converter, then strip editor metadata with SVG Compressor before using it as icon.svg.
When you only need a multi-size Windows or browser .ico file from a square transparent PNG, PNG to ICO Converter packs 16 px through 256 px resolutions into modern PNG-in-ICO encoding with full 32-bit alpha transparency. If you inherited a legacy site and want to verify which resolutions live inside its existing favicon.ico, open the Inspect & Extract tab in ICO Converter & Inspector to view every embedded frame and extract individual PNGs.
Cache-busting favicon updates
Browsers cache /favicon.ico and /icon.svg aggressively. After replacing an old logo, append a version query string such as /icon.svg?v=2 and /apple-touch-icon.png?v=2 in your <link> tags while keeping the root /favicon.ico updated for crawlers that request the bare path.
Frequently asked questions
- Do websites still need favicon.ico if they have an SVG icon?
- Yes. Feed readers, legacy tools, enterprise browsers, and crawlers still request /favicon.ico at the root. Shipping a compact multi-size favicon.ico containing 16x16, 32x32, and 48x48 frames prevents 404 logs and broken bookmarks.
- What size should apple-touch-icon.png be?
- Export apple-touch-icon.png at 180 by 180 px with an opaque background fill. iOS adds its own rounded corner mask and renders transparent areas as solid black on the home screen.
- Why does Google Search sometimes ignore a favicon?
- Google Search expects a square icon that is a multiple of 48 px (such as 48x48, 96x96, or 192x192) served at a stable URL that robots.txt does not block.
