What is a favicon?

DEFINITION

A favicon is the small icon that represents a website in browser tabs, bookmarks, history, home-screen shortcuts and sometimes next to the site in search results.

The name comes from 'favorites icon', from when browsers showed it next to bookmarked sites. Today it appears in browser tabs, bookmark bars, history lists, mobile home screens when a site is saved, and in Google's mobile and desktop search results next to your site name.

Favicons are usually derived from a brand's logo mark or initial, simplified to stay recognizable at very small sizes such as 16 by 16 pixels.

Why a favicon matters

When someone has many tabs open, the favicon is often the only thing identifying your site. A clear icon makes it easy to return to, and a missing one looks unfinished.

In search results, Google can show your favicon beside your listing, which helps brand recognition and can make your result stand out. Google's guidelines require the favicon to be crawlable, square and representative of your brand, and it will not show icons it considers inappropriate.

Which files you need and how to add them

A practical modern setup uses a few files. Place a favicon.ico (containing 16 and 32 pixel sizes, or 32 pixels alone) at the site root for older tools. Add an SVG icon for crisp scaling: <link rel='icon' href='/icon.svg' type='image/svg+xml'>. Add a 180 by 180 PNG for iPhones: <link rel='apple-touch-icon' href='/apple-touch-icon.png'>. If the site is a progressive web app, list 192 and 512 pixel PNG icons in the web app manifest. Design the icon as a bold, simple shape, since thin lines and small text vanish at tab size.

Best practices

  • Simplify your logo to a bold symbol or letter that reads clearly at 16 pixels.
  • Use a square canvas with enough padding so the icon is not cropped on any platform.
  • Check that robots.txt does not block the favicon file, so Google can show it.
  • Test the icon on both light and dark browser themes.

Common mistakes

  • Shrinking a full horizontal logo with text into a tiny unreadable icon.
  • Forgetting the apple-touch-icon, leaving a blurry screenshot on iPhone home screens.
  • Changing favicon files without updating caches, so old icons linger.

Frequently asked questions

What size should a favicon be?

Provide a multiple of 48 pixels square for Google Search, such as 48, 96 or 192 pixels, or an SVG that scales to any size. Also include a 32 pixel favicon.ico for older tools, a 180 pixel apple-touch-icon for iOS, and 192 and 512 pixel icons in a web manifest if relevant.

Why is my favicon not showing in Google search results?

Google may take time to crawl and update favicons. Check that the icon is linked in your homepage head, is square and crawlable, is not blocked by robots.txt and follows Google's favicon guidelines. Requesting indexing of the homepage in Search Console can speed up the update.

Can I use an SVG favicon?

Yes. Modern browsers support SVG favicons, which stay sharp at any size and can even adapt to dark mode using CSS media queries inside the SVG. Keep a PNG or ICO fallback for browsers and tools that do not support SVG icons, and an apple-touch-icon PNG for iOS.

Need help with this?

Branding e identità by VYZEON — Un brand che il mondo ricorda.

Fixed packages from $49. Written scope, no surprises.

See Branding e identità

Related terms

More Web development terms