Step 4 of 8

Create a favicon

A favicon is the small icon in browser tabs, bookmarks and Google’s search results. It’s a memorable visual cue that this is your site.

About 10 minutes Updated 25 November 2026By

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:

FileSizeUsed by
favicon.ico48 × 48 (with 32 and 16 inside)Older browsers, and anything that asks for /favicon.ico by default
favicon.svgAny (vector)Modern browsers — sharp at every size
apple-touch-icon.png180 × 180iPhone and iPad home screens
android-chrome-192x192.png
android-chrome-512x512.png
192 × 192 and 512 × 512Android home screens, via your web app manifest

How to make them

  1. Start from the square version of your logo — just the symbol, no words. Text is unreadable at 16 pixels.

  2. Upload it to a favicon generator. Most produce the whole set plus the code.

  3. 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 into public_html and use Upload (more on uploading).

  4. Add the code below to the <head> of every page.

Free favicon generators

ToolBest for
RealFaviconGeneratorTurning 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.ioMaking 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

In the <head> of every page
<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:

site.webmanifest
{
  "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

  1. Open your site in a private window, so your browser can’t show an old saved copy.
  2. Visit yourdomain.co.uk/favicon.ico and yourdomain.co.uk/apple-touch-icon.png directly. If either shows a “not found” page, the file isn’t in public_html.
  3. Run your address through RealFaviconGenerator’s favicon checker, which lists anything missing or the wrong size.
  4. 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.

Ready to build? Every guide on this site was written and tested on OnPoint Hosts — UK cPanel hosting with free SSL and a free first-year domain, from £4.25 a month.

Get hosting

Cookie Preferences Manager

We use strictly necessary cookies to run this site. With your permission we’d also like to use optional cookies to measure site performance and personalise marketing — these stay off until you choose to turn them on. Read our Cookie Policy and Privacy Policy.

Right now this site doesn’t set any optional cookies, whatever you choose.

You can change your mind at any time using the “Cookie settings” link at the bottom of every page.

Optional cookies