Free, independent guides since 2010

Design

Favicons and app icons: the complete, modern set

Which favicon and app icon files a website needs today: SVG favicon, fallback PNG, Apple touch icon, web app manifest icons, sizes, dark mode and how to add them to your HTML.

<guide section="Design" type="article" read="1 min"/>

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

FileSizeUsed by
favicon.svgScalableModern browsers
favicon-32.png (or favicon.ico)32 × 32Fallback, older software
apple-touch-icon.png180 × 180iPhone and iPad home screens
icon-192.png, icon-512.png192 and 512Web app manifest (installable sites)
HTML
<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

XML
<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.