Favicon Best Practices in 2026: The Small Icon Setup That Actually Works
A practical 2026 favicon guide covering SVG, ICO, Apple touch icons, PWA manifest icons, maskable icons, Google Search requirements, dark mode, caching and debugging.
Favicons are a perfect example of web development folklore outliving the problem it originally solved.
Search for a favicon generator and you can still end up downloading a ZIP containing 20 PNGs, multiple XML files, browser-specific metadata and icons for platforms that have not mattered for years.
Go too far in the opposite direction, though, and the popular “just use one SVG” advice is also incomplete.
A website icon now appears in several distinct places:
- browser tabs and bookmarks;
- Google Search results;
- iOS/iPadOS home-screen shortcuts;
- installed Progressive Web Apps;
- operating-system launchers and task switchers;
- browser history/new-tab surfaces.
Those surfaces do not all use the same discovery mechanism or have identical format requirements.
The good news is that you still do not need a folder full of 30 favicon files. You just need to understand which jobs you are solving.
The practical 2026 setup
For most modern websites, this is a strong, deliberately boring baseline:
/favicon.ico legacy/fallback browser icon
/icon.svg scalable modern browser favicon
/apple-touch-icon.png iOS/iPadOS touch icon
/icon-192.png PWA/app icon
/icon-512.png PWA/app icon
/icon-512-maskable.png maskable PWA icon if installability matters
/manifest.webmanifest app metadata/icons when you support installation
And your <head> can remain simple:
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.webmanifest">
If your site is not installable and has no PWA ambitions, you may not need manifest icons at all.
That distinction matters. A favicon and a PWA application icon solve related but different problems.
Start with the browser favicon
The standards-based mechanism is:
<link rel="icon" href="/icon.svg" type="image/svg+xml">
Modern browsers can use an SVG favicon, which has several nice properties:
- one source scales cleanly across display densities;
- small file size for simple artwork;
- easy to keep crisp;
- can adapt to color scheme;
- no need to export a collection of 16/32/48px PNGs purely for tabs.
But “SVG is supported” does not mean every icon design works well at 16 pixels.
That is a design problem, not a file-format problem.
Design for 16 pixels first
Your full company logo may look beautiful at 600 pixels and become an indistinguishable smudge in a browser tab.
At favicon scale, favour:
- one strong silhouette;
- large internal shapes;
- minimal fine detail;
- good contrast;
- enough padding that the mark does not touch every edge;
- recognisability without text.
Avoid forcing an entire wordmark into the icon.
If your brand says “Northern Architecture Studio”, the favicon probably needs the symbol or an N, not the full company name rendered in microscopic type.
A useful test is brutally simple: render the icon at 16×16 and look at it without zooming.
If you cannot recognise it, a vector file will not save it.
SVG favicons can react to dark mode
One of the nicer reasons to use SVG is that the SVG itself can contain CSS.
For example:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<style>
.mark { fill: #111; }
@media (prefers-color-scheme: dark) {
.mark { fill: #fff; }
}
</style>
<path class="mark" d="..." />
</svg>
This lets one favicon maintain contrast as the browser/UI theme changes.
Keep the SVG self-contained. A favicon is not the place to depend on remote fonts, stylesheets or complex scripts.
Also test both modes manually. “Supports dark mode” is not the same as “looks good in dark mode”.
Why keep favicon.ico at all?
Because compatibility and convention are cheap here.
Browsers and other user agents have historically requested:
/favicon.ico
even when no explicit link is present.
Keeping a small ICO fallback at the site root costs almost nothing and prevents odd gaps with older software, crawlers, shortcut mechanisms and edge cases.
A multi-resolution ICO can contain more than one raster size, but for an ordinary modern site there is little benefit in obsessively packing every historical dimension into it.
The SVG should do most of the modern browser work.
Do not confuse favicon size with Google Search favicon requirements
Google Search has its own favicon eligibility rules.
As of Google’s documentation updated 28 August 2026, Search can show a site’s favicon alongside organic results, but appearance is not guaranteed.
The important current rules include:
- the favicon must be square;
- minimum size is 8×8 pixels;
- Google recommends using something larger than 48×48 so it renders well across surfaces;
- Googlebot must be able to crawl the homepage;
- Googlebot-Image must be able to crawl the favicon;
- the favicon URL should be stable;
- the icon should represent the site’s brand;
- Google supports one favicon per hostname, not a different favicon for every subdirectory.
That last point catches people out.
You can have different favicons for:
www.example.com
app.example.com
support.example.com
because they are separate hostnames.
You cannot tell Google Search to use independent favicons for:
example.com/products
example.com/blog
example.com/docs
as though each directory were a separate site.
Google Search does not promise to use your favicon
This is worth stating explicitly because favicon guides often overpromise.
Correct markup makes your site eligible for a favicon in Search.
It does not guarantee Google will display that exact icon for every query, device or result surface.
The same principle appears throughout Google’s Search appearance systems: structured hints and valid markup are inputs, not commands.
So debug eligibility and crawlability rather than looking for a mythical “force Google to update favicon now” switch.
Put the favicon declaration on the homepage
Google’s Search documentation specifically tells site owners to include the favicon <link> in the <head> of the site’s homepage.
The standard form is simple:
<link rel="icon" href="/icon.svg">
Google also recognises historical/Apple-related rel values for favicon discovery, but there is no reason to make the primary declaration complicated.
Keep the URL stable.
If your build fingerprints every asset:
/icon-a82c093.svg
and changes that URL on every deployment, consider exposing a stable favicon URL that your deployment updates behind the scenes.
Search engines do not benefit from chasing a new favicon location every release.
Your favicon must be crawlable
A surprisingly common SEO/favicon bug is blocking the asset.
Check:
robots.txt
CDN/WAF rules
hotlink protection
authentication
403 rules
image optimisation middleware
Googlebot-Image needs to fetch the favicon file.
The homepage itself must also be crawlable so Google can discover the declaration.
A perfect icon behind a 403 is still unavailable.
Apple touch icons are a separate surface
For iOS/iPadOS home-screen shortcuts, keep a raster touch icon:
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
A common modern choice is 180×180 PNG.
You do not normally need to maintain the enormous historical Apple matrix of 57, 72, 76, 114, 120, 144, 152, 167 and 180 pixel icons unless you have a specific compatibility requirement.
MDN’s current HTML guidance notes that a sufficiently large icon can generally be scaled down by the browser, while multiple size-specific designs remain an option if you intentionally want different artwork/detail at different sizes.
Use a square design with comfortable safe space.
Do not blindly repeat “Apple icons must never have transparency”
Older favicon articles often state hard rules about Apple touch icon transparency and gloss based on much older iOS behaviour.
The safer modern guidance is simpler:
design the touch icon as a finished application icon, with the background you actually want users to see.
Do not rely on a browser or operating system to make transparent artwork look good against every possible home-screen treatment.
That is a design recommendation rather than a universal file-format law.
PWA icons belong in the Web App Manifest
If your site can be installed as an application, declare application icons in the manifest:
{
"name": "Example App",
"short_name": "Example",
"start_url": "/",
"display": "standalone",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
Those files are application icons, not merely tab favicons.
They can appear in:
- home screens;
- launchers;
- task switchers;
- installed-app lists;
- OS settings;
- splash/install surfaces.
That demands more attention to high-resolution design than a 16px tab icon.
192 and 512 are useful defaults, not magical laws
The familiar 192×192 and 512×512 PNG pair is a practical web-app baseline and is widely used in PWA tooling/examples.
But the Web App Manifest specification is more flexible than “Android requires exactly two PNGs”.
The manifest icons member can contain multiple resources with:
src;sizes;type;purpose.
Browsers/operating systems choose suitable resources for their contexts.
So think in terms of providing useful high-quality application artwork, not satisfying an arbitrary two-file ritual.
Maskable icons solve a real Android/PWA design issue
Operating systems can display application icons inside circles, squircles, rounded squares and other masks.
A normal square icon may be shrunk into a small box with an ugly background so the system avoids cropping important content.
A maskable icon tells the OS:
this artwork has been designed to survive adaptive cropping
Declare one like this:
{
"src": "/icon-512-maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
MDN’s current guidance describes the maskable safe zone as the central circle whose diameter is 80% of the icon’s minimum dimension.
Keep critical artwork inside that area and extend the background all the way to the image edges.
Do not label an ordinary icon maskable just to pass a test
If the important logo fills the entire square and you simply add:
"purpose": "maskable"
an operating system may crop the brand mark aggressively.
purpose: maskable is a statement about the artwork, not a browser feature switch.
Preview the icon under circular and other masks before shipping it.
You can supply both any and maskable icons
A good manifest can contain a normal full-colour icon and a separately designed maskable version:
"icons": [
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-512-maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
This lets the host environment choose the representation suited to the surface.
SVG in the manifest is useful, but raster fallbacks still matter
The manifest format can describe scalable SVG icons using:
{
"src": "/app-icon.svg",
"sizes": "any",
"type": "image/svg+xml"
}
MDN recommends considering SVG for scalable high-resolution artwork while also providing PNG versions for wider OS/small-size compatibility.
This is a good example of why “drop all PNGs” is too absolute.
For browser-tab favicons, SVG is excellent.
For installed-app surfaces, a small deliberate set of PNGs remains useful.
Favicons and CSP can interact
If your Content Security Policy uses a restrictive image directive such as:
img-src 'self'
and you host manifest icons on another domain:
{
"src": "https://assets.example-cdn.com/icon-512.png"
}
browser fetching can be affected by the applicable CSP/security context.
MDN’s current manifest icon documentation explicitly calls out CSP img-src as relevant to icon fetching.
Self-hosting tiny brand icons is often the simplest solution unless you have a real reason to put them elsewhere.
Check the site users and crawlers actually receive
SiteTidy can help surface missing metadata, crawlability and response-header problems around your public site. It is a useful sanity check after changing favicons, manifests or CDN rules.
MIME types and headers should be correct
Serve favicon resources with sensible content types.
Examples:
.svg -> image/svg+xml
.png -> image/png
.ico -> image/x-icon or image/vnd.microsoft.icon depending on server conventions
.webmanifest -> application/manifest+json
Browsers are often forgiving, which is exactly why a wrong MIME type can remain unnoticed until one particular environment behaves differently.
Check the Network panel rather than assuming the extension guarantees the server response.
Cache favicons aggressively — but understand the downside
Favicons are tiny static assets and ideal for caching.
That creates the most common favicon debugging complaint:
“I replaced the icon but the old one is still showing.”
Possible caches include:
- browser HTTP cache;
- special browser favicon database/cache;
- service worker;
- CDN;
- reverse proxy;
- operating-system shortcut cache;
- Google Search’s crawled copy.
The fact that the new file exists on the server does not mean every surface will refresh immediately.
Use stable URLs for Search, versioning carefully for browsers
Ordinary asset advice often says fingerprint everything:
/icon.95c3ab.svg
Google Search specifically asks for a stable favicon URL.
You can reconcile those goals by keeping a stable public favicon path:
/icon.svg
and updating the file behind that URL when branding changes.
Use appropriate cache headers and invalidation when you genuinely need to refresh it.
Do not change the URL on every deployment when the artwork has not changed.
Google can take days or weeks to update
Google’s current documentation says recrawling and processing favicon changes can take several days to several weeks, depending on crawling frequency.
You can request indexing of the homepage in Search Console’s URL Inspection tool, but this is still not an instant favicon refresh button.
If the browser favicon changed five minutes ago but Google Search has not, that is normal.
Check crawlability and then give the recrawl process time.
Common favicon debugging checklist
If the icon is missing or stale, work through the actual surface.
Browser tab
Check:
<link rel="icon"> exists
URL returns 200
correct MIME type
valid image
browser cache
multiple conflicting icon links
media/sizes/type selection
Google Search
Check:
favicon link is on hostname homepage
homepage crawlable by Googlebot
image crawlable by Googlebot-Image
square image
at least 8x8, preferably >48x48
stable URL
brand-appropriate content
allow recrawl time
iOS home-screen shortcut
Check:
apple-touch-icon link
PNG file accessible
artwork square and intentional
sufficient resolution
old home-screen shortcut may need recreation
Installed PWA
Check:
manifest link exists
manifest returns valid JSON/MIME
icon src resolves relative to manifest correctly
sizes/type values accurate
maskable artwork genuinely maskable
install/update cache behaviour
Multiple <link rel="icon"> declarations are allowed
Browsers can choose between multiple icon candidates based on attributes including type, sizes and media.
For example:
<link rel="icon" href="/icon.svg" type="image/svg+xml" sizes="any">
<link rel="icon" href="/favicon-32.png" type="image/png" sizes="32x32">
That can be useful when you want a deliberately hand-tuned small raster icon alongside a scalable version.
It can also make debugging harder if four outdated icon declarations remain in your template.
Remove candidates you no longer intend browsers to choose.
shortcut icon is historical, not required
You will still see:
<link rel="shortcut icon" href="/favicon.ico">
shortcut icon is a historical form retained for compatibility. The modern relation is simply:
<link rel="icon" href="/favicon.ico">
Google Search still recognises the historical value, but new markup does not need it.
Do not generate Windows tile files unless you know who needs them
Legacy favicon packs often include:
browserconfig.xml
mstile-70x70.png
mstile-144x144.png
mstile-150x150.png
mstile-310x150.png
mstile-310x310.png
Do not carry these forever because a generator emitted them in 2016.
If your product has a documented environment that still consumes a platform-specific asset, support it intentionally.
Otherwise, delete the archaeological layer.
The same applies to old Opera Coast assets and enormous legacy Apple size matrices.
A good minimal site can genuinely use three icon assets
For a normal non-installable website, this may be all you need:
/icon.svg
/favicon.ico
/apple-touch-icon.png
with:
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
That is a much better reason to simplify favicons than claiming “PNGs are dead”.
The complexity should match the surfaces your site actually supports.
A good installable PWA needs more
For an installable application, add deliberate application icons:
/icon.svg
/favicon.ico
/apple-touch-icon.png
/icon-192.png
/icon-512.png
/icon-512-maskable.png
/manifest.webmanifest
Example manifest:
{
"name": "Example App",
"short_name": "Example",
"start_url": "/",
"display": "standalone",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-512-maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
Simple, readable and enough for most products.
Do not make every icon visually identical at every size
Brand consistency does not require pixel-identical artwork.
At 512 pixels you can support detail that becomes noise at 16 pixels.
Professional icon systems often simplify as they get smaller:
512px -> full mark
180px -> simplified mark
32px -> simple symbol
16px -> strongest silhouette only
If your brand icon contains fine lines, consider a dedicated small-size variant rather than trusting automatic scaling.
The favicon is part of product design, not merely metadata.
Automate icon generation only from a good master
It is perfectly reasonable to generate raster sizes during the build or design pipeline.
Start from:
- a high-resolution master;
- ideally vector artwork;
- known safe-zone/padding rules;
- deliberate background handling.
Then automate repeatable exports.
Do not generate 15 sizes from a 32×32 PNG and call that high-resolution support.
Check transparency on real browser backgrounds
Browser tab bars can be:
- light;
- dark;
- tinted;
- high-contrast;
- themed.
A transparent black icon may disappear in dark mode. A white icon may disappear in a light tab strip.
Test:
Chrome light/dark
Safari light/dark
Firefox light/dark
Windows/macOS high contrast if relevant
iOS home screen
Android/PWA masking if relevant
Dark-mode SVG is useful, but visual QA is still required.
The simplest rule that survives 2026
Use SVG for the modern browser favicon, keep an ICO fallback, provide a proper Apple touch icon, and only add manifest/maskable raster assets if your site is actually installable. Optimise for real surfaces, not historical generator checklists.
Browse SiteTidy's web toolsFinal recommendation
If I were shipping a normal website today, I would use:
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
and stop there unless installability is part of the product.
If it is a PWA, I would add the manifest and a small, intentional set of any + maskable application icons.
I would keep the favicon URL stable for Google Search, make sure crawlers can fetch it, test the icon at actual tiny sizes, and resist every tool that tells me I need 27 files without explaining which current platform consumes them.
The modern favicon problem is not “how many icon files can I generate?”
It is how few well-designed assets can cover the surfaces my users actually see?
