Log/Tooling/

Google showed a grey globe instead of my logo: favicon.ico

My site had only an SVG favicon, so Google search showed a blank globe. The fix: favicon.ico plus PNG sizes in multiples of 48 px.

Google crawled my new site and the result looked fine, except for one thing: next to the site name there was a grey globe instead of my logo. Small, but it makes a result look unfinished, and people do notice it in a list of ten links.

What was wrong

The site had one icon: favicon.svg, linked in the page head. Browsers are happy with that. Google is pickier:

  • It prefers a raster icon in a size that is a multiple of 48 px.
  • It also checks /favicon.ico at the root by default. On my site that returned 404.

So Google had nothing it liked and fell back to the globe.

The fix

From the same logo I made:

  • favicon.ico with 16, 32 and 48 px inside
  • PNG icons at 96, 192 and 512 px
  • apple-touch-icon.png at 180 px for iPhones

There was no SVG converter on the machine, so I rendered the SVG in headless Chrome at 512 px with a transparent background and scaled it down with Python’s PIL. Then four <link rel="icon"> lines in the layout, a build, a deploy, and a check that every file returns 200 with the right content type.

Getting Google to look again

Google updates favicons when it recrawls the home page, which can take days or weeks. To speed it up I opened URL Inspection in Search Console, entered the home page and clicked Request Indexing. It goes into a priority queue. Asking again does not move it forward.

The one thing to check on your own site

Open https://yoursite.com/favicon.ico in a browser. If it is a 404, Google is probably showing a globe for you too, whatever your HTML says.

All entries · Book a call · Discuss on X