How to use the Favicon generator tool
- Choose a logo or picture under Image file. PNG, JPEG, WebP, AVIF, GIF and BMP files up to 30 MiB are accepted.
- Select Build icons and wait for the message 7 icon files ready.
- Select Download to save favicons.zip, then unpack it.
- Copy favicon.ico and the PNG files to your site and reference them from the page head or the web app manifest.
What the favicon generator puts in the ZIP
The archive always contains seven files. The tool writes no HTML and no manifest, so you can rename the files to fit your project.
- favicon.ico: one file holding 16, 32 and 48 pixel images, the sizes used for browser tabs, bookmarks and desktop shortcuts.
- icon-16.png, icon-32.png and icon-48.png: the same three sizes as separate PNG files.
- icon-180.png: the size iOS uses for an Apple touch icon on the home screen.
- icon-192.png and icon-512.png: the two sizes a web app manifest normally lists for Android home screens and splash screens.
How the favicon.ico file is built
An ICO file is a small container. It starts with a 6-byte header: two reserved bytes, the type 1 for icons and the number of images. A 16-byte directory entry follows for each image, giving width, height, color planes, bits per pixel, data size and data offset. The image data comes last.
Since Windows Vista, an ICO entry may hold a complete PNG file, and that is what this tool stores, declared as 32 bits per pixel so transparency survives. With three entries the directory ends at byte 54, where the first PNG begins. The bytes below are the header from a real run: sizes 0x10, 0x20 and 0x30, PNG lengths of 224, 363 and 523 bytes, and offsets 54, 278 and 641.
00 00 01 00 03 00 header: icon, 3 images
10 10 00 00 01 00 20 00 e0 00 00 00 36 00 00 00 16 x 16, 224 bytes at 54
20 20 00 00 01 00 20 00 6b 01 00 00 16 01 00 00 32 x 32, 363 bytes at 278
30 30 00 00 01 00 20 00 0b 02 00 00 81 02 00 00 48 x 48, 523 bytes at 641
89 50 4e 47 ... first PNGAdding the icons to a website
Browsers request /favicon.ico from the site root when a page declares no icon, so placing the file there already works. Link elements make the choice explicit and add the touch icon. The 192 and 512 pixel files belong in the icons array of your web app manifest. The markup below is an example to adapt, not output of the tool.
<link rel="icon" href="/favicon.ico" sizes="16x16 32x32 48x48">
<link rel="icon" type="image/png" sizes="32x32" href="/icon-32.png">
<link rel="apple-touch-icon" href="/icon-180.png">
"icons": [
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
]Choosing a good source image
Start with a square image of at least 512 × 512 pixels. Smaller sources are enlarged to fill the 512 pixel icon and look soft. A source that is not square is scaled to fit and centered, and the leftover area stays transparent. Nothing is cropped.
Detail disappears at 16 pixels, so a simple mark with strong contrast reads better than a full wordmark. iOS does not show transparency in touch icons and fills it with black, so give the artwork an opaque background if you rely on icon-180.png.
Frequently asked questions
What sizes are inside the generated favicon.ico?
Three: 16 × 16, 32 × 32 and 48 × 48 pixels. Each one is stored as a PNG image with an alpha channel inside the ICO container, which current browsers and Windows versions since Vista can read.
Do I still need a favicon.ico if I have PNG icons?
It is worth keeping. Browsers, feed readers and crawlers often request /favicon.ico from the site root without reading your markup, and a small ICO file there answers those requests instead of a 404.
Is my logo uploaded to generate the icons?
No. The image is decoded and resized on canvas elements in your browser, and the ZIP is assembled in memory on the same page before you download it.
Does the tool create an SVG favicon or a manifest file?
No. The output is raster only: six PNG files and one ICO file. You write the link elements and the manifest yourself and point them at the generated files.
Why does my new favicon not show up in the browser tab?
Browsers cache favicons for a long time. Reload the icon URL directly, clear the cache for the site, or change the file name or add a version query string so the browser fetches the new file.