Favicon Generator
WM-116Open one square image and get a full favicon set: favicon.ico, six PNG sizes, a web manifest and the link tags to paste into your page head, all in one ZIP.
Runs in your browser. Nothing is uploaded.
Source image
Favicon files
HTML for the <head>
How to use it
- Open a logo or icon image, ideally square and at least 512 by 512 pixels.
- Choose how to handle a non-square image and whether to keep transparency.
- Pick the folder the files will live in, so the HTML tags point to the right place.
- Press Download all, unzip the files into that folder and paste the HTML into your head element.
What is in the favicon set
You get favicon-16x16.png, favicon-32x32.png and favicon-48x48.png for browser tabs, apple-touch-icon.png at 180 pixels for home screens on iPhone and iPad, android-chrome-192x192.png and android-chrome-512x512.png for the web manifest, a favicon.ico that holds the 16, 32 and 48 pixel images in one file, and site.webmanifest. The ZIP also holds favicon-tags.html with the link tags.
How the favicon.ico file is built
The .ico file is written byte by byte in your browser: a small header, one directory entry per size, then each image as a 32-bit bitmap with an alpha channel and a 1-bit mask. That layout is the classic icon format, so the file opens in browsers, Windows Explorer and icon editors. Requests for /favicon.ico at the site root are still common, so keep the file there even if you use other folders for the PNGs.
Getting a sharp icon at 16 pixels
Each size is made by averaging the source pixels that fall inside each icon pixel, which keeps edges smooth. Fine text and thin lines still disappear at 16 pixels, so a bold, simple shape works best. If your source is smaller than 512 pixels, the larger icons are enlarged and look soft, and the tool shows a warning.
Questions people ask
What sizes does a favicon need?
A common set is 16 and 32 pixels for browser tabs, 48 pixels for Windows, 180 pixels for the Apple touch icon, and 192 and 512 pixels for the web manifest used when a site is added to a home screen. This tool makes all six.
How do I add a favicon to my website?
Unzip the files into your site root or the folder you picked, then paste the link tags from the output into the head of every page. Deploy, then reload with the cache cleared, because browsers keep old favicons for a while.
Can I convert a PNG to ICO with this?
Yes. Open the PNG and download favicon.ico on its own with its button, or get it inside the ZIP. The .ico holds 16, 32 and 48 pixel versions of your image, with transparency kept unless you pick a background color.
Should a favicon have a transparent background?
Transparency works for tab icons, but the icon may sit on light or dark tab bars, so check it on both. Home screen icons usually look better on a solid color. Pick White or Black under Background to fill every transparent pixel.
What do I put in site.webmanifest?
The file lists the 192 and 512 pixel icons for you. Replace Your site name and Site in the name and short_name fields with your own, and add theme_color or other fields if your site needs them.
Is my logo uploaded?
No. The image is decoded, resized and packed into the .ico and ZIP files in your browser. Nothing is sent to a server, so you can use unreleased logos safely.
About this tool
Makes six square PNG icons (16, 32, 48, 180, 192 and 512 px), a favicon.ico that holds the 16, 32 and 48 px images as 32-bit bitmaps with transparency, a site.webmanifest that lists the 192 and 512 px icons, and the link tags for your page head. A non-square image is cropped to its center square or fitted inside a transparent square. Shrinking averages the source pixels each icon pixel covers, and enlarging uses linear interpolation, so small sources look soft. Edit the name fields in site.webmanifest before you publish it. No SVG icon is made.