Favicon Best Practices for SEO and Design
Expert tips for creating favicons that look great, load fast, and help your site stand out in search results.
Design Principles
Keep It Simple
Your favicon will be displayed as small as 16x16 pixels. At that size, complex logos, detailed illustrations, and small text become unrecognizable blobs. The most effective favicons use a single bold element: one letter, one simple shape, or one recognizable symbol.
Look at the favicons of major websites — Google uses a simple "G", GitHub uses their octocat silhouette, and Twitter/X uses a bold geometric mark. Each is instantly recognizable even at tiny sizes.
Use High Contrast
A favicon needs to stand out against various browser chrome backgrounds — light tabs, dark tabs, bookmark bars, and search results. Choose colors with strong contrast between the icon and its background. A dark icon on a light background (or vice versa) works best.
Avoid colors that blend into common browser UI colors (light gray, white) as your favicon may become invisible.
Design at 512x512, Test at 16x16
Always create your favicon at the largest size (512x512) for maximum detail, then verify it still looks good when scaled down to 16x16. If details are lost at small sizes, simplify the design. Some designers create slightly different versions for small and large sizes — a simplified version for 16x16 and a more detailed version for 512x512.
File Format Strategy
PNG: The Safe Default
PNG is supported by all modern browsers and offers the best balance of quality, transparency support, and file size. For most websites, PNG favicons are the right choice. Generate PNGs at all recommended sizes (16, 32, 48, 180, 192, 512) for complete coverage.
SVG: The Modern Choice
SVG favicons are supported by Chrome, Firefox, and Edge. Their key advantage is scalability — a single SVG file looks crisp at any size. SVG also supports CSS media queries, enabling dark mode adaptive icons:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<style>
circle { fill: #000; }
@media (prefers-color-scheme: dark) {
circle { fill: #fff; }
}
</style>
<circle cx="16" cy="16" r="14" />
</svg>Note: Safari doesn't support SVG favicons, so always provide a PNG fallback alongside your SVG.
ICO: Only If Needed
The ICO format is only necessary if you need to support very old browsers (IE 10 and earlier). Modern sites can safely skip ICO and use PNG exclusively. If you do need ICO support, a single 32x32 ICO file is sufficient as a fallback.
SEO Considerations
Google Search Results
Google displays favicons in mobile search results next to your site's URL. A recognizable favicon improves click-through rates by making your result more visually distinctive. Google has specific requirements:
- The favicon must be a multiple of 48x48 pixels
- It should be square (not rectangular)
- Google will resize it to 16x16 for display, so it must be legible at that size
- The favicon URL must be accessible to Googlebot (not blocked by robots.txt)
- It should represent your brand and be consistent across your site
Don't Block Googlebot
Ensure your robots.txt doesn't block access to your favicon files. Google needs to fetch and index your favicon to display it in search results. This is a common mistake that causes favicons to not appear in SERPs.
Use Consistent Favicons
Use the same favicon across all pages of your site. Google associates favicons with entire domains, not individual pages. Changing favicons frequently or using different ones for different sections confuses both users and search engines.
Performance
- Optimize file size: Compress your PNG favicons. A 32x32 PNG favicon should be under 5KB. Use tools like TinyPNG or ImageOptim for lossless compression.
- Set cache headers: Favicons are requested on every page load. Set long cache headers (at least 1 month) to avoid unnecessary re-downloads.
- Avoid redirect chains: Serve favicon files directly from the URL specified in your link tags. Redirects add latency.
- Don't use a CDN subdomain: Serve favicons from your main domain. Some browsers look for
/favicon.icoon the root domain regardless of link tags.
Dark Mode Support
With dark mode becoming standard, consider how your favicon looks on both light and dark backgrounds. A dark favicon on a dark tab bar may become invisible. Options:
- Add a subtle border or background: A thin light border around a dark icon ensures visibility on dark backgrounds
- Use an SVG with media queries: Automatically switch icon colors based on the user's color scheme preference
- Choose neutral colors: Medium-brightness colors with good contrast work acceptably on both light and dark backgrounds
Common Mistakes to Avoid
- Using your full logo: Logos with text or complex details don't work at 16x16. Extract the simplest element of your brand instead.
- Only providing one size: This forces browsers to scale your favicon, often resulting in blurry rendering.
- Forgetting the Apple Touch Icon: Without it, iOS shows a screenshot of your page as the home screen icon — unprofessional.
- Not testing across browsers: A favicon that looks great in Chrome may render differently in Safari or Firefox.
- Using transparent backgrounds carelessly: A transparent PNG favicon may become invisible on certain browser backgrounds. Always test against both light and dark UIs.
Ready to create your favicon?
Create Your Favicon Now