Make a favicon: which files a website needs today
Give the favicon generator one square picture, 512 px or more. You get favicon.ico, the Apple touch icon, the 192 and 512 icons, a web manifest and three lines of HTML to paste. Nothing is uploaded.

Before PNG, 32 KBAfter 11 × 11 files, 63 KBWhat a site needs
| File | For |
|---|---|
| favicon.ico (16, 32, 48, 256) | browser tabs, bookmarks, old programs |
| apple-touch-icon.png (180) | the home screen of an iPhone |
| icon-192.png, icon-512.png | Android home screen and installed apps |
| site.webmanifest | tells Android where those are |
Forty files for old tablets are no longer needed. Our 32 KB sample logo gave a set of 63 KB in all; the .ico is 11 KB.
Make it
- Prepare a square picture: one letter or one shape, with a little room around it.
- Open the favicon generator and press Choose a file.
- Look at the 16 px one on the page. That is the one people see.
- Press Download and unpack into the root of your site.
- Copy the HTML into the head of every page.
The HTML it gives:
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
If you have an SVG logo, add a line before the first for sharp tabs: <link rel="icon" href="/favicon.svg" type="image/svg+xml">.
Draw for sixteen pixels
Sixteen pixels is the width of two letters in this sentence. So:
- one symbol, not the name;
- two colours, strong contrast;
- thick strokes: one pixel at 16 px is a sixteenth of the width;
- no text, no gradient, no thin ring.
Make a special small version if the logo is fine-lined. Turn an SVG into a clean 512 px PNG with SVG to PNG. For a photo of a person, Round image cuts a circle; the face should fill it.
Test on both a white and a dark tab bar. A black symbol on clear disappears in dark mode; put it on a coloured square.
Apple and Android
An iPhone puts black behind clear parts and rounds the corners itself, so fill the square with a colour and keep the symbol in the middle 80%. Android may cut a circle out of the icon if you add a maskable one; the generated manifest lists ordinary icons, which are shown whole. Add name, short_name and theme_color to the manifest by hand.
What goes wrong
The old icon still shows. Browsers keep favicons for days. Open /favicon.ico directly and reload it, or try a private window.
404 in the log for /favicon.ico. The file is in a folder. Put it in the root.
Blurred in the tab. Your picture was smaller than 48 px, or has thin lines.
A white box in dark mode. The PNG has a white background. Remove background or export it clear.
It works on the home page only. The path has no slash at the start: write /favicon.ico.
Check
Open the site in two browsers, then on a phone: Add to home screen, and look at the icon among others. Open each of the four addresses directly and see a picture or text, not a 404. In Chrome, F12, Application, Manifest lists mistakes.
When to do it another way
A framework such as Next.js or Astro takes icons from a folder and writes the HTML; put the generated files there. An app for a store needs its own sizes from the store’s page. For an e-mail signature, use a normal PNG. To put a tiny icon straight into CSS, Image to Base64 gives the code; it is about a third larger than the file.
Questions
Do I still need favicon.ico?
Yes. Browsers and other programs ask for /favicon.ico even when the HTML names another file.
My logo is wide. What happens?
A picture that is not square gets clear sides, so a wide logo becomes tiny. Use only the symbol.