Most clients use the favicon if it is named
favicon.ico and placed in the root path of a website.
Is it possible to use an image format other than
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.Sign up to join this community
It's true that by default the browser only checks the
/favicon.ico path, however we can use an HTML meta tag to tell it explicitly where the favicon is if it's at a different path or in a different image format than
In addition to
.ico, you can use the
.png file formats in all modern browsers as long as you use an HTML meta tag on your page to specify their path:
<link rel="shortcut icon" type="image/png" href="image/favicon.png">
There are some other file formats that can be used for favicons, but only
.png are widely supported.
To address your comment, the
/favicon.ico path is the only path that browsers will check without being prompted by an HTML meta tag. If you want to serve up a favicon of a different file type without using an HTML meta tag, you can always 30X-redirect the
/favicon.ico path to the path of a