Favicon
≈ 8 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
's favicon, shown in Firefox A favicon ( ; short for favorite icon), also known as a shortcut icon, website icon, tab icon, URL icon, or bookmark icon, is a file containing one or more small icons associated with a particular website or web page. A web designer can create such an icon and upload it to a website (or web page) by several means, and graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page's favicon in the browser's address bar (sometimes in the history as well) and next to the page's name in a list of bookmarks. Browsers that support a tabbed document interface typically show a page's favicon next to the page's title on the tab, and site-specific browsers use the favicon as a desktop icon.
's favicon, shown in Firefox A favicon ( ; short for favorite icon), also known as a shortcut icon, website icon, tab icon, URL icon, or bookmark icon, is a file containing one or more small icons associated with a particular website or web page. A web designer can create such an icon and upload it to a website (or web page) by several means, and graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page's favicon in the browser's address bar (sometimes in the history as well) and next to the page's name in a list of bookmarks. Browsers that support a tabbed document interface typically show a page's favicon next to the page's title on the tab, and site-specific browsers use the favicon as a desktop icon.
History
In March 1999, Microsoft released Internet Explorer 5, which supported favicons for the first time. Originally, the favicon was a file called favicon.ico placed in the root directory of a website. It was used in Internet Explorer's favorites (bookmarks) and next to the URL in the address bar if the page was bookmarked. A side effect was that the number of visitors who had bookmarked the page could be estimated by the requests of the favicon. This side effect no longer works, as all modern browsers load the favicon file to display in their web address bar, regardless of whether the site is bookmarked.
Standardization
In 2003, the .ico format was registered by a third party with the Internet Assigned Numbers Authority (IANA) under the MIME type image/vnd.microsoft.icon . However, when using the .ico format to display as images (that is, not as favicon), Internet Explorer cannot display files served with this standardized MIME type. A workaround for Internet Explorer is to associate .ico with the non-standard image/x-icon MIME type in web servers. RFC 5988 established an IANA link relation registry, and rel="icon" was registered in 20101 based on the HTML5 specification. The popular theoretically identifies two relations, shortcut and icon , but shortcut is not registered and is redundant. In 20111 the HTML living standard specified that for historical reasons shortcut is allowed immediately before icon ; however, shortcut does not have a meaning in this context.
Legacy
Internet Explorer 5–10 supports only the ICO file format. Netscape 7 and Internet Explorer versions 5 and 6 display the favicon only when the page is bookmarked, and not simply when the pages are visited as in later browsers.
Examples of favicons
File:Etsy icon.svg|alt=|Etsy File:Google_Favicon_2025.svg|Google File:Microsoft icon.svg|alt=|Microsoft File:PayPal Logo Icon 2014.svg|alt=|PayPal File:Roblox player icon black.svg|alt=|Roblox File:Spotify icon.svg|alt=|Spotify File:Wikipedia W favicon on white background.png|alt=|Wikipedia File:X logo 2023.svg|alt=|X (formerly Twitter) File:YouTube full-color icon (2024).svg|alt=|YouTube
Browser implementation
The following tables illustrate support of various features with major web browsers. Unless noted, the version numbers indicate the starting version number of a supported feature. Many browsers such as Google Chrome, Microsoft Edge and Opera are based on Chromium (web browser). They use the same engine.
Image file format support
The following table illustrates the image file format support for the favicon. Additionally, such icon files can be 16×16, 32×32, 48×48, or 64×64 pixels in size, and 8-bit, 24-bit, or 32-bit in color depth. The ICO file format article explains the details for icons with more than 256 colors on various Microsoft Windows platforms. The following ways to specify a favicon are supported in Firefox, Chromium and Safari: Internet Explorer does not support SVG favicons. Only Safari supports mask-icon: The Internet Explorer way ( favicon.ico located in the website's root / ) is still supported by all browsers for now. However if a linked favicon is specified, moder browsers will choose the linked favicon instead of the favicon in the root of the website. Firefox only accepts favicon.ico in the website's root without a <link> tag if the setting browser.chrome.site_icons is set to true in about:config . The default value is true . If set to false , these favicons are ignored.
Animated favicons
Various browsers such as Firefox and Opera support animation of favicons. A bug report has been open for Firefox since 2001 requesting a way to disable this feature.
Multiple resolutions
Nowadays, most modern browsers support having a single SVG favicon, which has the advantage of being scalable without losing its quality. For the icon to appear on the Android home screen when a shortcut is created there, a minimal .webmanifest file may be needed for reasons unknown, which is likely to be a bug.
HTML5 recommendation for icons in multiple sizes
The current HTML5 specification recommends specifying multiple sizes for the icons, using the attributes rel="icon" sizes="space-separated list of icon dimensions" within a <link> tag. Multiple icon formats, including container formats such as Microsoft .ico and Macintosh .icns files, as well as Scalable Vector Graphics may be provided by including the icon's content type in the format type="file content-type" within the <link> tag. As of iOS 5, Apple mobile devices ignore the HTML5 recommendation and instead use the proprietary apple-touch-icon method detailed below. The Google Chrome web browser however, will select the closest matching size from those provided in the HTML headers to create 128×128 pixel application icons, when the user chooses the Create application shortcuts... from the "Tools" menu.
Home screen icons on mobile devices
On mobile devices, users can pin web pages as shortcuts icons to their home screen. These shortcut icons look similar to regular apps and web developers can provide dedicated icons for them. The app icon sizes on the different device classes differ. The recommended sizes for the icons are 152×152 for iPads (until iPad 2, released in 2011), 167×167 for iPads with Retina screens (iPad 3 and later) and 180×180 for iPhones. If no icon in the matching size is provided, iOS will pick the largest icon with rel="apple-touch-icon" and scale it automatically. Example code: The icon file referenced by apple-touch-icon is modified to add rounded corners. On the iOS versions prior to iOS 7, a drop shadow, and reflective shine would be added, and apple-touch-icon-precomposed icon may be provided to instruct devices not to apply reflective shine on the image. No HTML is required by browsers or mobile devices to retrieve these icons. The website's root is the default location for the file apple-touch-icon.png (in order of priority). Android also supports Web Manifest files, which makes it possible to integrate web sites deeper within the system. A Web Manifest is a JSON file, that specifies meta data for a progressive web app. It allows the developer to not only provide the icons but also a short name for display on the home screen as well as theme colors. However, providing a web manifest file is not necessary for the Add to home screen feature to work.
References
External links
W3C web standards organization on how to add a Favicon Systems and Methods Involving Favicons 2008 patent application
Text derived from https://en.wikipedia.org/w/index.php?oldid=1375764179 under CC BY-SA 4.0; modifications have been made.