Articles · Small business websites
How to add a favicon to your small business website
Published · Updated
Look at the tab of any browser window. Next to the page title sits a tiny picture. That picture is a favicon. If your site shows a blank page icon or a generic globe, it has no favicon yet.
This guide explains what a favicon is, how to make one, and how to add it to your site.
What a favicon does
A favicon is a small square image that stands for your website. It shows in several places.
Browser tabs show it beside your page title. Bookmarks and browser history lists show it. Google can show it next to your site name in mobile search results. On a phone, it can also appear when a visitor saves your site to the home screen.
A favicon will not raise your rankings. Its job is recognition. A person with ten tabs open finds your site faster when the tab has your logo on it. A search result with a clear icon also looks more like a real business than one with a gray default.
What makes a good favicon
A favicon is tiny. In a browser tab, it shows at around 16 by 16 pixels. Detail disappears at that size.
Use one simple shape. Your first initial in a bold color works. A stripped-down version of your logo works. A full logo with a business name and a tagline does not, because the words turn into a smudge.
Pick colors with strong contrast against both white and dark backgrounds. Some browsers use a dark theme, and a thin black icon vanishes there.
Keep the image square. A wide logo gets squeezed or cropped. Draw the icon on a square canvas and center it.
Size and file type
Google publishes rules for favicons in search results. The file must be square, and its size must be a multiple of 48 pixels. That means 48 by 48, 96 by 96, 144 by 144, and so on. An SVG file has no fixed size, so it also works.
Start with a PNG at 512 by 512 pixels. Most tools can shrink a large square image to the sizes you need. A small image stretched larger turns blurry.
Here are the common file types:
- ICO is the old standard. Browsers still look for a file named favicon.ico at the top level of a site.
- PNG works in all current browsers and is easy to make.
- SVG stays sharp at any size. It suits simple logos with flat colors.
- Apple touch icon is a PNG at 180 by 180 pixels. iPhones and iPads use it for home screen shortcuts.
Many free favicon generators take one square image and produce the full set of files. Check that the one you pick lets you download the files, not only a link.
Add a favicon on WordPress
WordPress calls it a site icon. Go to Appearance, then Customize, then Site Identity. Click Select Site Icon and upload your image. WordPress recommends a square image of at least 512 by 512 pixels. It lets you crop the image before you save.
Some newer block themes put this setting in the Site Editor instead. If you do not see Customize, open the Site Editor, find Site Icon in the settings, and upload the image there.
Add a favicon on a website builder
Builders hide this setting under different names. Open your site settings and look for favicon, site icon, browser icon, or branding. Upload the square image and save. Then publish the site, since the change may not show on the live site until you do.
If you cannot find the setting, search the help pages of your builder for the word favicon.
Add a favicon on a custom site
Upload the files to the top level of your site. Then add lines to the head section of your HTML. Here is a standard set:
<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">
Change the file names to match yours. If you have no SVG, leave out the second line. Put the same lines on every page, which is easiest through a shared header or layout file.
If you hand this to a developer, send the square PNG and ask for the three lines above. Questions can go through the contact page.
Check that it works
Open your site in a new browser window and look at the tab. If the old icon still shows, the browser has saved a copy. Press Ctrl and F5 on Windows or Command and Shift and R on a Mac to reload without the saved copy. You can also open the site in a private window.
Test on a phone too. How to check if your website works on a phone covers that step.
You can also type your domain followed by /favicon.ico into the address bar. If the icon file opens, the file is in the right place.
Why Google may still show the old icon
Google needs to crawl your site again before it updates the icon in search. That can take days or weeks. You cannot set a date for it.
A few things can slow it down. Google must be able to reach both your home page and the favicon file. A robots.txt rule that blocks either one stops the update. The icon file address should stay the same over time. Changing the file name often gives Google more to relearn.
If your site does not appear in Google at all, fix that first. How to check if your website is on Google shows how.
Common mistakes
Using a large logo with small words. Using a rectangle. Uploading a tiny image that blurs when resized. Forgetting to publish after the change in a builder. Testing without clearing the saved copy and thinking the upload failed.
A favicon file is also small, so it adds almost nothing to load time. Keep it small anyway. How to make your small business website load faster covers the larger files that slow a page.
Read next
How to write alt text for images on your small business website
Alt text describes an image for people who cannot see it and for Google. Learn what to write, what to skip, and where to add it on your site.
How to write page titles and meta descriptions for a small business website
Learn what a page title and meta description are, how long to make them, and how to write them for each page so your business looks clear in Google results.
How to set up a Google Business Profile for a Vernon business
A step-by-step guide for Vernon, BC owners to claim or create a free Google Business Profile, pick a category, verify it, and keep it accurate.