A complete favicon setup comes down to five files: a favicon.ico containing 16, 32 and 48 pixel images, a 180 × 180 apple-touch-icon.png, and 192 × 192 and 512 × 512 PNG icons listed in a web app manifest, plus a separate maskable 512 pixel icon if you want a clean Android home-screen icon. Make them all from one square master of at least 512 pixels, then add four <link> tags to your pages. An SVG icon is a useful extra, not a replacement.
For a quick letter or emoji icon for a browser tab, the FindPicked favicon generator exports 16, 32 and 64 pixel PNGs in your browser. This guide explains which other sizes exist and why, and how to produce the complete set. We generated and checked every file described below on November 17, 2026.
The short version
| File | Size | Used by |
|---|---|---|
favicon.ico |
16, 32 and 48 px in one file | Browser tabs and bookmarks; the /favicon.ico fallback; Google Search |
apple-touch-icon.png |
180 × 180 | iPhone and iPad home screen shortcuts |
icon-192.png |
192 × 192 | Web app manifest (Chrome and Android) |
icon-512.png |
512 × 512 | Web app manifest (Chrome and Android) |
icon-maskable-512.png |
512 × 512 | Manifest icon for Android’s shaped masks |
icon.svg (optional) |
Scalable | Browsers that support SVG favicons |
<link rel="icon" href="/favicon.ico" sizes="16x16 32x32 48x48">
<link rel="icon" href="/icon-192.png" type="image/png" sizes="192x192">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
Why one size is not enough
Each place that shows your icon asks for something different:
- Browser tabs. MDN’s favicon glossary notes that a favicon is usually 16 × 16 pixels. On a high-density screen, a 16-pixel slot is drawn with 32 device pixels, so include a 32-pixel image as well.
- Google Search. Google’s favicon guidelines require a square icon of at least 8 × 8 pixels and recommend one larger than 48 × 48 “so that it looks good on various surfaces”. The supported formats are BMP, GIF, ICO, PNG, JPEG, PPM and TIFF. Google shows one favicon per hostname, and Googlebot-Image must be allowed to crawl the file.
- iOS home screens. Apple’s (archived) web clip documentation uses
rel="apple-touch-icon"and lists 180 × 180 as the iPhone retina size. Without a link, Safari searches the site root for files named likeapple-touch-icon.png. - Installed web apps. web.dev’s manifest guide says Chromium needs at least a 192 × 192 and a 512 × 512 icon, and scales them for each device.
The HTML standard defines how browsers choose. The sizes attribute is “merely advisory”. Browsers pick the most appropriate icon by type, media and size, and among equally suitable icons they use the last one declared. If a page declares no icon at all, the standard lets browsers fetch /favicon.ico from the site root, which is why that file is still worth having.
Step 1: Start from one square master
Design the icon once, as a square of at least 512 × 512 pixels (or an SVG), and keep it simple. A mark that reads well at 512 pixels can turn into a smudge at 16. Before exporting, shrink your design to 16 and 32 pixels and look at it at actual size.
If you only need a quick tab icon, the favicon generator draws a letter or emoji (up to two characters) on a colored square. We ran its page code in headless Chrome 157 with the letter “F” and the default blue and white colors. Its three downloads were PNG files of 501 bytes (64 × 64), 342 bytes (32 × 32) and 219 bytes (16 × 16). That covers the tab sizes. It does not produce an ICO file or the 180, 192 and 512 pixel icons, and scaling a 64-pixel image up to 512 would look blurry. Use it for a starter icon, or follow the make a favicon steps, then build the full set from a larger master.
Step 2: Export every size from the master
This Python script uses Pillow, which can write multi-size ICO files. Save your master as logo.png and run python3 make_icons.py:
import json
from PIL import Image
logo = Image.open("logo.png").convert("RGBA") # square, 512 px or larger
assert logo.width == logo.height >= 512, "use a square logo of at least 512 px"
def icon(px):
return logo.resize((px, px), Image.LANCZOS)
logo.save("favicon.ico", sizes=[(16, 16), (32, 32), (48, 48)])
icon(180).save("apple-touch-icon.png")
icon(192).save("icon-192.png")
icon(512).save("icon-512.png")
# Maskable icon: logo at 56% of the width on a solid background, so even the
# corners of a square logo stay inside the central safe-zone circle.
maskable = Image.new("RGBA", (512, 512), "#2563eb")
inner = icon(288)
maskable.alpha_composite(inner, ((512 - 288) // 2, (512 - 288) // 2))
maskable.save("icon-maskable-512.png")
manifest = {
"name": "Example Site",
"short_name": "Example",
"icons": [
{"src": "/icon-192.png", "sizes": "192x192", "type": "image/png"},
{"src": "/icon-512.png", "sizes": "512x512", "type": "image/png"},
{"src": "/icon-maskable-512.png", "sizes": "512x512",
"type": "image/png", "purpose": "maskable"},
],
}
with open("site.webmanifest", "w") as f:
json.dump(manifest, f, indent=2)
We ran it with Pillow 13.0.0 on a 1024 × 1024 test logo, a white “F” on a blue rounded square. It wrote:
| File | Bytes | What we checked |
|---|---|---|
favicon.ico |
2,255 | Reading it back listed exactly 16, 32 and 48 px images |
apple-touch-icon.png |
3,867 | 180 × 180 |
icon-192.png |
3,832 | 192 × 192 |
icon-512.png |
10,499 | 512 × 512 |
icon-maskable-512.png |
6,233 | Logo inside the safe zone (below) |
site.webmanifest |
395 | Valid JSON, three icon entries |
The whole set weighs about 27 KB. At 16 pixels, our resized logo looked softer than the generator’s letter, which is drawn smaller with more padding. If the smallest size matters to you, design a simplified 16-pixel version and use it for the 16-pixel image in the ICO.
Step 3: Make the maskable icon properly
Android can crop app icons into circles and other shapes. A maskable icon is drawn for that. According to web.dev’s maskable icon guide, the important part must sit inside a central circle with a radius of 40% of the icon width, and the outer edge may be cropped. The same guide advises against "purpose": "any maskable", because the extra padding makes the icon look small where no mask is applied. Provide two icons instead, as the script does.
The script places the logo at 56% of the width. 0.8 divided by the square root of 2 is about 0.566, so even the corners of a square logo fit inside the safe circle. We checked the output: the corners of the inner logo sit 203.6 pixels from the center, inside the 204.8-pixel safe radius, and the letter itself reaches only 83.9 pixels. If the corners of your logo are only background, you can scale it up further.
Step 4: Install and test
- Upload the files to your site root, or adjust the paths in the HTML and manifest.
- Add the four
<link>tags to the<head>of every page, or at least the home page, which is where Google looks. - Open Chrome DevTools, then Application > Manifest. Per Chrome’s documentation, the Icons section lists every icon the manifest declares, and a checkbox shows only the minimum safe area for maskable icons.
- Check that
https://your-site/favicon.icoloads directly, without a redirect to a login page. - If you replaced an older icon and still see it, test in a private window before changing anything else.
Optional: an SVG favicon
A single SVG scales to every size. The HTML standard’s sizes="any" keyword exists for exactly this kind of scalable icon:
<link rel="icon" href="/icon.svg" type="image/svg+xml" sizes="any">
Support has caught up. caniuse lists SVG favicons in Chrome and Edge from version 80 and Firefox from version 41, and the WebKit team announced that Safari 26.0 “now supports the SVG file format for icons everyplace there are icons in the interface, including favicons.” Keep the ICO and PNG files anyway: Google Search’s supported formats do not include SVG, and the HTML standard tells browsers to try the next most appropriate icon when a format is unsupported.
How we tested
On November 17, 2026, on macOS, we ran the FindPicked favicon generator’s page code in headless Chrome 157 and saved its three downloads. We generated the full set with the script above (Pillow 13.0.0), read the ICO back to confirm its sizes, checked every PNG’s dimensions, and measured the maskable icon’s safe zone with NumPy. We then served the files with the four <link> tags above and loaded the page in headless Chrome 157: Chrome’s own manifest parser (the DevTools protocol’s Page.getAppManifest) reported no errors and listed all three icons, and every file loaded with HTTP 200. We did not test icons on physical iOS or Android devices or in Google Search results, so those behaviors rest on the documentation linked above.
Frequently Asked Questions
What size should a favicon be?
There is no single size. Browser tabs show icons at about 16 CSS pixels, so a 16 and a 32 pixel version cover normal and high-density screens. Google recommends a favicon larger than 48 by 48 pixels for search results, iOS uses a 180 by 180 pixel touch icon, and Chrome needs 192 and 512 pixel icons in a manifest to install a web app.
Do I still need a favicon.ico file?
It is still the safest fallback. The HTML standard lets browsers request /favicon.ico when a page declares no icon, and Google Search accepts the ICO format. One ICO file can hold 16, 32 and 48 pixel images.
What is a maskable icon?
It is an app icon designed to survive masks that crop it into a circle or another shape on Android. Keep the important part inside a central circle whose radius is 40 percent of the icon width, and list it as a separate icon with the maskable purpose instead of reusing your normal icon.
Can I use an SVG favicon?
Yes, in current browsers: Chrome and Edge from version 80, Firefox from version 41 and Safari from version 26. Keep favicon.ico and PNG icons as well, because Google Search does not list SVG among its supported favicon formats and older browsers ignore SVG icons.