What is a favicon, and how to make one that works everywhere
The small icon in a browser tab is one of the first things a visitor sees. This guide covers the sizes and files to create and how to add them correctly.
What a favicon is
A favicon is the small square icon that represents a website. It appears in browser tabs, bookmarks and history, on phone home screens when someone saves a site, and in some search results. A good one makes your tab easy to find among twenty others and tells visitors the site is a real, cared-for place.
Because it is shown at tiny sizes, often 16 or 32 pixels across, the design has to be simpler than a logo. A word mark with fine text becomes a smudge; a single bold letter or shape survives.
The files you need
Browsers, phones and search tools look for icons at different sizes. The Favicon Generator makes the common set from one image:
| File | Size | Used for |
|---|---|---|
| favicon.ico | 16, 32 and 48 px in one file | Browser tabs, older browsers and tools that request it by default |
| favicon-16x16.png and favicon-32x32.png | 16 and 32 px | Tabs and bookmarks in current browsers |
| apple-touch-icon.png | 180 px | iPhone and iPad home screens |
| android-chrome-192x192.png and 512x512.png | 192 and 512 px | Android home screens and installed web apps |
The Apple touch icon is placed on a solid background, because iOS fills transparent areas with black.
ICO or PNG?
Modern browsers accept PNG icons, so a PNG is enough for most visitors. The .ico file still earns its place: it holds several sizes in one file, and many tools and older browsers request favicon.ico from the root of your site by default. Including both is the safe choice.
If you only have an ICO and need a PNG, or the reverse, the PNG to ICO and WebP to PNG converters handle the change. Raster images are expected; this generator does not accept SVG files.
Design rules for a tiny icon
- Start from a square image of at least 512 × 512 pixels for the sharpest results at every size.
- Keep it bold and simple. One letter, one shape, two or three colours.
- Leave padding. Icons are cropped to circles or rounded squares on some devices, so keep the key shape away from the edges.
- Check contrast on both light and dark browser themes. A dark icon on a transparent background can vanish on a dark tab bar.
- Test at 16 pixels. If you cannot tell what it is at that size, simplify it.
Adding the favicon to your site
- Generate the set and download the ZIP.
- Upload the files to your website. Place favicon.ico at the root so it is found at yourdomain.com/favicon.ico.
- Paste the HTML snippet the generator provides into the head of your pages.
- Reload the page. If you still see the old icon, clear the browser cache or open the site in a private window, because browsers keep icons for a long time.
Search engines refresh favicons on their own schedule, so a new icon can take days or longer to appear in results even when your tab already shows it.
Troubleshooting a favicon that does not appear
If your icon is missing or wrong after you upload it, work through these checks in order.
- Open the file directly. Visit yourdomain.com/favicon.ico in a browser. If it does not load, the file is in the wrong folder or the name is misspelled.
- Check the link tags. View the page source and confirm the lines from the generator are inside the head section, with paths that match where you uploaded the files.
- Clear the cache. Browsers keep favicons much longer than normal page content. Use a private window, or clear the site data, to see the current icon.
- Check the file type. A PNG renamed to .ico without being converted may fail, so generate the ICO properly.
- Check the sizes. A very large or very small file can display badly. Use the sizes produced by the generator.
- Wait for search engines. Their copy of your icon updates on their own schedule, and a change may take days or longer.
The 192 and 512 pixel icons are used when a site is added to an Android home screen or installed as a web app, and they are normally referenced from the site's web app manifest. If you do not use a manifest, the favicon and Apple touch icon still cover the main cases.
Frequently asked questions
Is favicon.ico really needed?
Modern browsers also accept PNG icons, but favicon.ico at the site root is still requested by many tools and older browsers, so including it is a safe choice.
What size should a favicon be?
A favicon.ico with 16, 32 and 48 pixel entries covers browsers, plus a 180 pixel touch icon and 192 and 512 pixel icons for phones.
Why does my old favicon still show?
Browsers cache icons aggressively. Clear the cache or check in a private window, and allow time for search engines to refresh.
Can I use a transparent background?
Yes for the ICO and PNG favicons. The Apple touch icon needs a solid background, because iOS fills transparency with black.
More guides
- How to compress an image to an exact size in KB
- Photo and signature size for online application forms: a checklist
- JPG, PNG, WebP, AVIF or HEIC: which image format should you use?
- KB, MB, pixels and DPI: image size explained simply
- All guides
Paul Digital guides are written from hands-on testing of the tools on this site and are reviewed when platforms or formats change. Requirements set by exam boards, governments and apps vary and change over time, so always check the official instructions for your case. Spotted an error? Email askpaulonline@gmail.com.