The favicon is the tiny icon in browser tabs, bookmarks and search results. Over the years, the list of “required” icon sizes grew absurdly long. Today a small, sensible set covers everything. Ours is a little maroon page with a “4”, taken from the dom4j logo.
The modern minimal set
| File | Size | Used by |
|---|---|---|
| favicon.svg | Scalable | Modern browsers |
| favicon-32.png (or favicon.ico) | 32 × 32 | Fallback, older software |
| apple-touch-icon.png | 180 × 180 | iPhone and iPad home screens |
| icon-192.png, icon-512.png | 192 and 512 | Web app manifest (installable sites) |
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="icon" href="favicon-32.png" sizes="32x32">
<link rel="apple-touch-icon" href="apple-touch-icon.png">Designing for tiny sizes
- Simplify: use a symbol or initial, not your full logo with text.
- Use strong contrast and few colours.
- Test at 16 × 16 pixels – details disappear.
- Give the Apple touch icon a solid background; iOS adds rounded corners.
Dark mode favicons
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<style>path{fill:#6e0a0a} @media (prefers-color-scheme: dark){path{fill:#f08f84}}</style>
<path d="M8 4h48v56H8z"/>
</svg>Showing in search results
Google shows favicons for search results when the icon is a square, at least 48 × 48 pixels (or SVG), crawlable and stable. Changes can take time to appear.
Frequently asked questions
Do favicons help SEO?
Indirectly. Google shows favicons next to search results on many devices, so a clear icon helps recognition and clicks. Follow Google’s favicon guidelines so it is shown.
Do I still need favicon.ico?
Not strictly, but some tools and older software still request /favicon.ico. Placing one in the root avoids 404 errors in your logs.