Favicon
A favicon is a small image that can be displayed:
- In a snippet.
- In Yandex search results.
- Next to a site address in your browser's address bar.
- Next to the name of a site in Favorites or Bookmarks in your browser.
The favicon helps users find your site faster and recognize it easier in search results.
Example of a favicon:
Example of favicons displayed in the search results:
![]()
How do I install a favicon?
Step 1. Place a favicon on the site
-
Place a file with the name
faviconin the site's root directory.Recommendations on the format, size, and appearance of favicons
Size: 120 × 120, 32 × 32, or 16 × 16 pixels.
Format: SVG (recommended), ICO, GIF, JPEG, PNG, or BMP. Animation is not supported.
Tip
Use 120 × 120 pixels or the SVG format to make the site logo clearer and more noticeable in Yandex services.
-
Add the file link to the HTML code of the main site page, in the
headelement.<head> ... <link rel="icon" href="https://example.com/favicon.ico" type="image/x-icon"> ... </head>Attribute
Description
Possible values
relResource type
icon;shortcut icon.
hrefFile URL
To enter a Cyrillic URL of a favicon, use Punycode. For example, for the address
https://мой-сайт.рф/favicon.ico, specifyhttps://xn----8sbzclmxk.xn--p1ai/favicon.ico.typeData type to be sent. Depends on the file format
image/svg+xmlfor SVG format.image/x-iconorimage/vnd.microsoft.iconfor the ICO format.image/giffor the GIF format.image/jpegfor the JPEG format.image/pngfor PNG format.image/bmpfor the BMP format.
If your page's HTML code contains multiple favicon links, the robot can select any of them.
-
Check if the favicon is displayed in the browser when viewing your site's pages.

Step 2. Check the if the icon is available for the Yandex robot
-
Make sure that:
- The file is accessible via a direct link (server response 200 OK). Use the Server response check tool.
- The file is not prohibited for indexing (for example, in the
robots.txtfile with the Disallow directive). Check prohibitions not only for the file itself, but also for the file directory.
-
Make changes if necessary.
-
Check if the robot loaded the file. This may happen when the robot visits your site. A few days after adding the favicon to the site, go to Website optimization → Site diagnostics in Yandex Webmaster. If you see a warning about favicon problems in the Possible problems section, follow the instructions:
Error
Solution
The file responds with an HTTP code other than 200 OK
Check the server response. The response should be 200 OK.
For other response statuses, see Server response check.The file redirects to another URL
Incorrect data type
Check the
typeparameter value in the file link. It should match the file format.To make sure your favicon is loaded, go to Website optimization → Site diagnostics, click View list of everything being checked by Webmaster, and find the favicon warning. If it shows the Everything is OK, it means that the robot processed the file.
Step 3. Check how the favicon is displayed in search results
If the robot downloaded the favicon, it will appear in search results within two weeks.
For your favicon to be displayed correctly in search results, we recommend that you choose an image that looks good in both the dark theme and the light theme. The favicon background color doesn't always affect its display. It can be transparent or a solid fill.
How are favicons displayed in Yandex services?
Any favicon that is accessible to the robot and meets the requirements of the service where it's going to be shown, can be used for display. This means, if there are multiple favicons of different sizes or formats on your site, Yandex services can use any of them.
The robot can also download your favicon from the apple-touch-icon tag.
If the robot can't access your site during indexing, search results might display your hosting provider's favicon instead of yours.
How do I edit or delete a favicon?
To change the favicon that is displayed in search results, update the favicon file on your site.
To delete the favicon from the search, delete the file from the site. Changes will take effect within two weeks after the robot crawls your site next time.
To make your changes appear in search results sooner, submit your site's home page (where the favicon link was placed) for reindexing: open Yandex Webmaster and go to Indexing → Reindex pages. The favicon will update in the search results within three days.