Favicon Size Guide: What Is a Favicon and Sizes You Need
The standard favicon size is 16x16 and 32x32 pixels, plus 180x180 for iOS and 192x192 and 512x512 for Android. See which files and HTML tags a site needs.
Updated
A favicon is the small icon a browser shows for a website in tabs, bookmarks and history. The core favicon sizes are 16 x 16 and 32 x 32 pixels, usually bundled with 48 x 48 in one favicon.ico file. A complete modern set adds a 180 x 180 PNG for iPhone home screens and 192 x 192 and 512 x 512 PNGs for Android.
What is a favicon
The word is short for "favorites icon". Internet Explorer 5 introduced it in 1999 to mark sites saved to the Favorites menu, and it looked for a file named favicon.ico at the root of the site. Every major browser adopted the idea, and that file name is still requested by default today.
The icon now appears in many more places than a bookmarks list:
- Browser tabs and the tab switcher
- Bookmarks, history and address bar suggestions
- Home screen shortcuts on phones and tablets
- Installed web apps and their splash screens
- Search results on mobile, next to the site name
Each of those places draws the icon at a different size, which is why one image is not enough.
Which sizes browsers and devices use
| Size | File | Used for |
|---|---|---|
| 16 x 16 | Inside favicon.ico | Browser tabs on standard-density screens |
| 32 x 32 | Inside favicon.ico, plus favicon-32x32.png | Tabs on high-density screens, taskbar and shortcut icons |
| 48 x 48 | Inside favicon.ico | Larger desktop shortcut icons on Windows |
| 180 x 180 | apple-touch-icon.png | iPhone and iPad home screen shortcuts |
| 192 x 192 | android-chrome-192x192.png | Android home screen icon, listed in the web app manifest |
| 512 x 512 | android-chrome-512x512.png | Android splash screen and install prompt, listed in the manifest |
This is the set that covers current browsers and devices with the fewest files. Older guides list a dozen or more sizes, such as 57, 72, 114, 144 and 152. Those targeted devices and browser versions that have long since been retired. Devices that want an in-between size scale down the next larger icon, so a single 180 x 180 Apple touch icon serves every current iPhone and iPad.
Search engines also show favicons next to results. Google's documentation asks for a square icon and recommends one larger than 48 x 48 pixels. Its exact wording has changed over the years, so check the current Google Search Central page if search appearance matters to you.
ICO vs PNG vs SVG
| Format | Strengths | Limits |
|---|---|---|
| ICO | Holds several sizes in one file. Requested automatically at /favicon.ico. Works in every browser. | Not practical above small sizes. Needs a tool to create. |
| PNG | Simple, supports transparency, works for all the larger icons. | One file per size, each needs its own tag or manifest entry. |
| SVG | One vector file that is sharp at any size. Can adapt to dark mode with a CSS media query inside the file. | Not supported by older browsers, and not used for Apple touch icons or manifest icons, so it cannot be the only file. |
An ICO file is a container. It can hold the same icon at several sizes, and the browser or operating system picks the one closest to what it needs. That is why a single favicon.ico with 16, 32 and 48 pixel images covers tabs, taskbars and shortcuts.
SVG favicons are supported by current versions of Chrome, Firefox and Edge. Safari added support later than the others. If you use one, declare it alongside an ICO or PNG so browsers without support fall back cleanly:
<link rel="icon" href="/favicon.ico" sizes="32x32"><link rel="icon" href="/favicon.svg" type="image/svg+xml">
The HTML tags
Place these in the head of every page. The file names match the package produced by the Favicon Generator, which also gives you this snippet ready to copy.
<link rel="icon" type="image/x-icon" href="/favicon.ico"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png"><meta name="theme-color" content="#ffffff">
What each part does:
rel="icon"marks a favicon. Thesizesattribute lets the browser choose the best match.rel="apple-touch-icon"is read by Safari on iOS when someone adds the site to their home screen.theme-colortints the browser interface on some mobile browsers to match your brand.
A web app manifest is a small JSON file that lists the 192 and 512 pixel icons for Android and installed web apps. Link it with one more tag: <link rel="manifest" href="/site.webmanifest">.
Even with no tags at all, browsers request /favicon.ico from the site root. Keeping a file there means the icon appears on pages you forgot to tag, including error pages and plain file downloads.
Platform details worth knowing
- iOS ignores transparency. A transparent Apple touch icon is shown on a black background. Give that icon a solid background color.
- iOS rounds the corners itself. Supply a full square. If you round the corners in the file, the result is a rounded shape inside another rounded shape.
- Android may mask the icon into a circle or a rounded square, depending on the launcher. Keep the logo away from the edges so nothing is clipped.
- Tabs can be dark. A black logo on a transparent background vanishes in a dark browser theme. Check the icon against both light and dark backgrounds.
Getting every size from one image
Scaling a logo by hand to six sizes and packing three of them into an ICO is tedious. The Favicon Generator takes one PNG, JPG, WebP or SVG image and produces:
favicon.icocontaining 16, 32 and 48 pixel imagesfavicon-32x32.pngapple-touch-icon.pngat 180 pixelsandroid-chrome-192x192.pngandandroid-chrome-512x512.pngsite.webmanifestand the HTML snippet
It previews the icon at 16, 32, 48, 180 and 192 pixels on light and dark backgrounds, and lets you set a transparent or solid background, square, rounded or circular corners, and padding. It does not output an SVG favicon, so if you want one, export it from your vector editor and add the SVG tag shown above.
Start from a square source of at least 512 x 512 pixels, because the largest icon is generated at that size. If your logo is not square, crop it first in the Image Cropper using the 1:1 preset.
For the full walkthrough, from choosing a design that works at 16 pixels to installing and testing the files, see how to make a favicon.
Try it
Drop your logo into the Favicon Generator, check the 16 pixel preview on both light and dark backgrounds, and download the package with every size listed in this guide.