What is a favicon?
A favicon is a small square icon showing your logo’s symbol, the first letter of your brand, or another image people will recognise. Now that you have a logo, making one is a small step — and if your logo service gave you a favicon bundle in step 3, you can skip straight to adding it to your pages.
The files you need
Years ago you needed a dozen sizes. Today, this small set covers every modern browser, phone and search engine:
| File | Size | Used by |
|---|---|---|
favicon.ico | 48 × 48 (with 32 and 16 inside) | Older browsers, and anything that asks for /favicon.ico by default |
favicon.svg | Any (vector) | Modern browsers — sharp at every size |
apple-touch-icon.png | 180 × 180 | iPhone and iPad home screens |
android-chrome-192x192.pngandroid-chrome-512x512.png | 192 × 192 and 512 × 512 | Android home screens, via your web app manifest |
How to make them
Start from the square version of your logo — just the symbol, no words. Text is unreadable at 16 pixels.
Upload it to a favicon generator. Most produce the whole set plus the code.
Upload the files to your site’s root folder (
public_html), next to your home page. On cPanel hosting such as OnPoint Hosts, open File Manager, go intopublic_htmland use Upload (more on uploading).Add the code below to the
<head>of every page.
Free favicon generators
| Tool | Best for |
|---|---|
| RealFaviconGenerator | Turning your square logo into the full set, with previews for each device, the HTML to paste in, and a free checker for your live site |
| favicon.io | Making a favicon from a letter or an emoji if you don’t have a logo yet, or converting an image you already have |
The code
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#16213A">And a small site.webmanifest file in the same folder, which tells phones your site’s name and icons:
{
"name": "Your Business Name",
"short_name": "Business",
"icons": [
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
],
"theme_color": "#16213A",
"background_color": "#ffffff",
"display": "standalone"
}Check it worked
- Open your site in a private window, so your browser can’t show an old saved copy.
- Visit
yourdomain.co.uk/favicon.icoandyourdomain.co.uk/apple-touch-icon.pngdirectly. If either shows a “not found” page, the file isn’t inpublic_html. - Run your address through RealFaviconGenerator’s favicon checker, which lists anything missing or the wrong size.
- On your phone, add the site to your home screen and check the icon looks right.
Common favicon mistakes
- Squashing your whole logo in. Words are unreadable at 16 pixels. Use just the symbol or your first letter.
- A rectangle instead of a square. It gets stretched, and Google won’t show it in search results.
- Relative paths. Use
/favicon.ico, starting with a slash, so it works on pages inside folders too. - Blocking it in robots.txt. If Google can’t fetch the file, it can’t show it.
- A transparent icon that vanishes in dark mode. Check it on a dark tab bar, and add a background colour or outline if it disappears.
Questions about favicons
What size should a favicon be?
Make a 48 × 48 favicon.ico (with 32 and 16 pixel sizes inside), an SVG, a 180 × 180 Apple touch icon and 192 and 512 pixel icons for Android. For Google search results it must be square and a multiple of 48 pixels.
Why isn’t my favicon showing?
Usually the browser is still showing its saved copy, so check in a private window. Then open yourdomain/favicon.ico directly to make sure the file is really there, and check the link tags in the head of the page point to the right addresses.
Why isn’t my favicon showing in Google?
Google has to crawl your home page and favicon again, which can take days or weeks. Check that the favicon is square, at least 48 × 48, not blocked by robots.txt, and that the link tag is on your home page. You can ask Google to recrawl the home page with URL Inspection in Search Console.
Can I use a PNG instead of favicon.ico?
Yes, modern browsers are happy with PNG and SVG favicons. It is still worth keeping a favicon.ico in your root folder, because some browsers and tools ask for /favicon.ico whether or not you link to it.
Do I need a favicon on every page?
Put the same link tags in the head of every page. If your pages share one header file, as they do on this site, you only add them once.