What is a favicon?
Dan Counsell · Founder of Realmac SoftwareUpdated
We’ve made RapidWeaver, a website builder for Mac, since 2004. Each guide works with any tool, then shows how in RapidWeaver Elements.
A favicon is tiny, but people notice when it’s missing: a blank page symbol in a row of tabs looks unfinished. Google shows it next to your site in mobile search results too.
The name comes from “favourites icon”, from the days when bookmarks were called favourites.
Favicon sizes and formats
| File | Size | Used for |
|---|---|---|
favicon.ico |
16, 32 and 48 pixels in one file | Browser tabs and bookmarks |
apple-touch-icon.png |
180 by 180 pixels | iPhone and iPad home screens |
| SVG icon | Any | Modern browsers, sharp at every size |
| Larger PNG | 192 or 512 pixels | Android home screens and web app manifests |
Google needs a favicon of at least 48 by 48 pixels, square, to show it in search.
How to add a favicon to a website
- Design a simple square icon. A letter or a simple mark works best. Detail disappears at 16 pixels.
- Export the sizes above. Online favicon generators can make them all from one large image.
- Upload the files to your site, with
favicon.icoin the root folder. - Add the links to the
<head>of every page:
<link rel="icon" href="/favicon.ico" sizes="48x48 32x32 16x16">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
Why is my favicon not showing up?
- Your browser has cached the old one. Browsers hold on to favicons for a long time. Open the site in a private window to check.
- The path is wrong. Visit
yoursite.com/favicon.icodirectly. If it doesn’t load, the file isn’t where the link says. - Google hasn’t updated yet. It can take days or weeks for a new favicon to show in search results.
- The icon isn’t square or is too small for Google’s rules.
Add a favicon in RapidWeaver Elements
RapidWeaver Elements makes all the files and code for you.
- Click the gear icon to open Project Settings, then choose Web Icons.
- Drop a PNG or JPG into the favicon well, and square images into the iPhone and iPad wells.
- Add an SVG for Safari’s pinned tabs if you like, and pick its colour.
- Publish. Elements writes
favicon.icoin 48, 32 and 16 pixel sizes to the root of your site and adds the header code to every page.
Questions about favicons
What size should a favicon be?
Start from a square image of at least 512 pixels and let a tool make the smaller sizes. The .ico file should hold 16, 32 and 48 pixel versions.
Can a favicon be a PNG?
Yes, modern browsers accept PNG and SVG favicons. Keep a favicon.ico in the root as well, because some tools still look for it there.
Do favicons help SEO?
Not for ranking, but a clear favicon in mobile search results can make people more likely to click your site.