Favicon generator
Upload one image and get a complete favicon set: favicon.ico, PNG icons in 16, 32, 48, 180 (Apple touch icon), 192 and 512 px, and the HTML link tags to paste in your head. It is free and runs in your browser.
How to use it
- Choose your logo or image (a square at least 512 x 512 px gives the best result).
- Set the folder where you will put the icons in Folder of the icons on your site. Optionally fill transparent areas with a color.
- Download the files and upload them to your site.
- Copy the HTML to paste in <head> and add it to your page.
Complete guide to making a favicon set
What a favicon set is and why one image is not enough
A favicon is the small icon that appears in the browser tab, in bookmarks and in search results. In practice a site needs several versions of it: a classic favicon.ico that browsers request by default, small PNG files for tabs, a 180 px icon for the iPhone home screen and two larger ones for Android and installed web apps. Making each by hand in an image editor is slow and easy to get wrong. This tool takes one picture and produces the whole set, plus the link tags that point to it.
The files you get
| File | Size | Where it is used |
|---|---|---|
| favicon.ico | 16, 32 and 48 px inside one file | Default icon requested by browsers, older software |
| favicon-16x16.png | 16 x 16 px | Browser tab |
| favicon-32x32.png | 32 x 32 px | Tab on high-density screens, shortcuts |
| favicon-48x48.png | 48 x 48 px | Desktop shortcuts, some search results |
| apple-touch-icon.png | 180 x 180 px | iPhone and iPad home screen |
| android-chrome-192x192.png | 192 x 192 px | Android home screen |
| android-chrome-512x512.png | 512 x 512 px | Web app splash and install screens |
How the icons are made
The tool reads your image in the browser and cuts a square from its center, using the shorter side as the size of the square. Each icon is then drawn from that square. When the source is much larger than the target, it is halved step by step before the last resize, which keeps thin lines and text sharper than shrinking in one jump. The .ico file is assembled locally: it holds three PNG images (16, 32 and 48 px), a structure all modern browsers read. If your square is smaller than an icon, that icon is enlarged and its note says so, since upscaling cannot add detail. Nothing is uploaded, and the limits are 25 MB per file, 16,384 px per side and 64 megapixels.
Worked example
- Choose a logo that is 1200 x 630 px. The tool crops the central 630 x 630 square, so the left and right edges are cut off. A 630 px square is larger than every icon, including the 512 px one, so no icon is marked as enlarged.
- In Folder of the icons on your site type
/assets/icons. The tool adds the trailing slash by itself, so the tags point to/assets/icons/favicon.ico,/assets/icons/favicon-32x32.pngand so on. Spaces and the characters < > " ' are removed from this field. - Turn on Fill transparent areas with a background color and pick a color in Background color if your logo has a transparent background.
- Download the files, upload them to that folder and paste the HTML to paste in <head> block into your pages.
Tips and common mistakes
- Start from a square of at least 512 x 512 px. A 180 px source works, but the 192 and 512 px icons will be enlarged and look soft.
- Use simple shapes. At 16 px a detailed logo turns into a blur, so a single letter or a bold symbol often reads better.
- Transparent icons are fine in tabs, but iOS may show a black background behind a transparent Apple touch icon. Fill it with your brand color.
- The tool does not create a web app manifest file. If you want the Android icons used for installation, reference them from a manifest you write yourself.
- Browsers cache favicons aggressively. After replacing them, a hard refresh or a new file name may be needed to see the change.
Related tools
To shrink the source before using it, try the image compressor. To pick brand colors from your logo, use the image color picker, and to make a PNG from vector artwork, the SVG to PNG converter.
Questions
Which files do I get?
favicon.ico (with 16, 32 and 48 px), favicon-16x16.png, favicon-32x32.png, favicon-48x48.png, apple-touch-icon.png (180 px), and android-chrome-192x192.png and android-chrome-512x512.png for Android and web app manifests.
What if my image is not square?
The tool crops a square from the center of the image. If you want to keep everything, make the image square first, with padding if needed.
Should I fill the background?
Transparent icons are fine for browser tabs. The Apple touch icon looks best with a solid background, because iOS may paint transparent areas black. Turn on the fill option and pick your brand color.
Is my image uploaded?
No. The icons are created in your browser. The .ico file is built locally with PNG images inside, which all modern browsers support.