What is a favicon?

Favicon is a small picture that is displayed in “Favorites” or “Bookmarks” instead of a standard one that all the other sites use by default.

An example of a favicon:

In the search results, a favicon looks like this:

How can I specify a favicon for my site?

To make a favicon appear in search results, you should place a 16x16 pixel image (a favicon.ico file) in the root directory of your site. ICO is the preferable format for a favicon, but other formats are possible: GIF, JPEG, PNG, or BMP. It is not recommended to use images with alpha channel (semi-transparency), or the favicon may display in search results incorrectly. The image you prepare should be displayed correctly in all the browsers. Make sure that, when sending a favicon, the correct type of transferred data is indicated in the HTTP headers passed on by the web server, Content-Type:

  • image/x-icon or images/vnd.microsoft.icon for the format ICO;
  • image/gif for the format GIF;
  • image/jpeg for the format JPEG;
  • image/png for the format PNG;
  • image/bmp for the format BMP.

To describe the favicon in the html code of your pages, place the following code inside the <head> </head> tag:

<link rel="icon" href=​"sitename/favicon.ico" type="image/x-icon">


<link rel="shortcut icon" href=​"sitename/favicon.ico" type="image/x-icon">

If your favicon does not reside in the root, specify the file path in the href field.

If the favicon is published correctly and at least one page from your site appears in Yandex search results, the favicon will appear in search results after the robot's visit to your site. You will find the information about the robot in the How does the robot work section.

How can I change a favicon for my site?

To make another favicon appear next to your site in Yandex search results, change the favicon.ico file in the root directory and wait until the robot indexes your changes.

How can I remove a favicon from my site?

If your site appears in Yandex search results, the favicon will disappear from search results in about three weeks after you remove it from the site.