How to make a favicon
- Choose a square image: a PNG logo with a transparent background, a JPG, or an SVG.
- Optionally add a background colour, padding, or a rounded or circle shape; the preview shows the result.
- Download
favicon.icowith the sizes you pick, or the favicon package ZIP, and upload the files to the root folder of your website.
Why several sizes?
An ICO file holds several versions of the icon, and each place picks the one it needs: 16 pixels for browser tabs, 32 for bookmarks and the taskbar, 48 for Windows shortcuts, and 256 for large Windows icons. Phones use separate PNGs: iPhones read a 180 × 180 apple-touch-icon, and Android and installable web apps read the 192 and 512 pixel icons listed in site.webmanifest. Each size is drawn from your original, centred and scaled to fit, so non-square images get space at the sides rather than being squashed.
Adding it to your site
Put the files at the root of your site, so the icon is at /favicon.ico, and paste the HTML from the tool into your page's head. Fill in your site's name in site.webmanifest if you want it to show when the site is added to a phone's home screen.
Tips for a clear icon
- At 16 pixels, fine detail disappears. A bold letter or simple symbol reads better than a full logo with text.
- Give dark logos a light background (and light logos a dark one) so they show on both light and dark browser tabs.
- Crop your logo to a square first with Crop image.