DigitalApplications

How to Install and Configure a Favicon for a Website (Chrome, Safari, and Edge)

Use the .svg format to ensure your icon looks crisp on all screen resolutions.

Before adding an icon to your website, you need to know:

  1. Modern browsers support vector icons in .svg format.
  2. The icon set for the browser tab will be displayed in search engines.
  3. Bing does not always update the icon automatically; you may need to contact Bing support.
  4. There are additional icon requirements, for example if you want to support Safari or the operating system desktop.
  5. An icon can be set for different browser themes: light or dark.

Website icon in a browser tab

To Set an Icon for a Website

You need to add the following tag inside the <head>...</head> tag in your HTML file:

<link rel="icon" href="/icons/favicon.svg">

If you want to set different icons for different themes:

<link rel="icon" href="/icons/favicon-dark.svg" media="(prefers-color-scheme: dark)">
<link rel="icon" href="/icons/favicon-light.svg" media="(prefers-color-scheme: light)">

Use the .svg format so that your icon displays clearly at all screen resolutions.

Author: Dmitry Girsky-Updated: June 9, 2026