The favicon is the small picture in the browser tab, in bookmarks and on a phone home screen when someone saves your site. Browsers and phones ask for it in several sizes, which is tedious to produce by hand.
Steps
- Open Favicon generator.
- Choose your logo or picture. PNG, JPG, SVG and other common image files work.
- If it is not square, press Adjust crop and choose the part to keep.
- Press Download 5 files (ZIP), or open the file list and save them one by one.
What you get
- favicon.ico with 16, 32 and 48 pixel versions inside, for browser tabs.
- apple-touch-icon.png, 180 × 180, for iPhone and iPad home screens.
- icon-192.png and icon-512.png, the sizes Android and installable web apps ask for.
- favicon-html.txt, four link lines that point to these files. There is a Copy button for the text.
Installing it
Upload the four image files to the top folder of your website and paste the lines from the text file into the head section of your pages. The lines expect the files at the root, for example /favicon.ico. If you store them elsewhere, change the paths. The tool does not create a web app manifest file; if you need one, you write it yourself and list the 192 and 512 icons in it.
Choosing a good source picture
At 16 pixels almost nothing survives. A single letter or a plain symbol on a strong colour works; a full logo with text does not. Start from a square picture of at least 512 pixels so the largest icon stays sharp. Transparent backgrounds are kept, but Apple shows a transparent touch icon on black, so a filled background is safer.
A logo in SVG can also be turned into a normal picture with SVG to PNG. To place a wide logo on a square canvas without cutting it, use Make image square first.