
The small square icon that appears beside a site name in search results, browser tabs and bookmarks is the favicon. It is a small piece of branding that does a disproportionate amount of work: people scanning a page of results recognise the icon before they read the words.
How Google finds it
Google reads a link element in the header of your home page, with a rel value of icon, shortcut icon, apple-touch-icon or apple-touch-icon-precomposed, and an href pointing at the file. The href can be a relative path or a full address, and the file does not have to be hosted on your own domain.
The rules that matter
One favicon per hostname, not per folder: a subdomain can have its own, a subdirectory cannot. The image must be square and at least 8 by 8 pixels, though anything under 48 by 48 will look soft on modern screens. Google supports BMP, GIF, ICO, PNG, JPEG, PPM and TIFF, and the URL should stay stable rather than changing with each deploy.
It is not guaranteed
Even with everything correct, Google may choose not to show a favicon, and it will not show one it considers inappropriate. Googlebot has to be able to crawl the home page and the icon file, so a robots.txt rule or a login wall in the way is enough to stop it.
A practical check
Look at your own site in a search result and in a browser tab. If the icon is a blurry copy of a full logo squeezed into a square, it is worth drawing a simplified mark at 512 pixels and letting it scale down. Then allow a few days to a few weeks for Google to pick it up.
Source: https://developers.google.com/search/docs/appearance/favicon-in-search. This article combines the linked guidance with editorial workflow advice; it is not a certification or a promise of business results.
Explore the Pixeleator portfolio or discuss your website project.