How to Create a Favicon (and Add It to Your Website)
Quick answer
To create a favicon, design a simple square icon, such as your logo mark or initial, and export it at 48 x 48 pixels or larger, ideally with an SVG and a 180 x 180 PNG for Apple devices. Upload it and add link tags to your HTML head, or use your website builder's favicon setting.
What is a favicon?
A favicon is the small icon that represents your website. You’ll see it in browser tabs, bookmarks, history, home-screen shortcuts and, often, next to your site’s name in Google search results. It’s a small detail, but a missing or blurry favicon makes a site look unfinished.
Step 1: Design your favicon
Favicons are tiny, often shown at 16 x 16 pixels. Detail disappears at that size, so keep it simple:
- Use a single letter, symbol or simplified logo mark, not your full logo with text.
- Use bold shapes and strong contrast.
- Limit colours to one or two.
- Check both light and dark backgrounds, since browser tabs can be either.
- Design it square. Google requires a square aspect ratio for search results.
You can design in any image editor or design tool, such as Figma, Canva, Affinity, Photoshop or Inkscape. Start with a large canvas, for example 512 x 512 pixels, and scale down.
Step 2: Export the right files
Different devices look for different files. A practical modern set:
| File | Size | Used for |
|---|---|---|
| favicon.ico | 32 x 32 or 48 x 48 (can contain several sizes) | Fallback for older browsers and tools |
| icon.svg | Scalable | Modern browsers; stays sharp at any size |
| apple-touch-icon.png | 180 x 180 | iPhone and iPad home-screen shortcuts |
| icon-192.png | 192 x 192 | Android and web app manifest |
| icon-512.png | 512 x 512 | Web app manifest, splash screens |
You don’t need all of these for a simple site. At minimum, provide one square favicon of 48 x 48 pixels or larger. Free favicon generator tools can create the full set from a single image; use one from a reputable source and check the output.
Step 3: Add the favicon to your site
On a website builder
Builders handle the files and code for you:
- WordPress: go to Appearance, then Customize, then Site Identity (or the Site Editor’s site settings in block themes) and upload a Site Icon. WordPress recommends at least 512 x 512 pixels.
- Squarespace: look for the browser icon or favicon setting in your site’s design or settings area and upload your image.
- Wix: open your site’s settings, find the favicon option and upload your image. Wix says a custom favicon requires a Premium plan and a connected domain (checked October 2026).
- Shopify: in the theme editor, open Theme settings and look for the favicon option.
Menu names change over time, so if you can’t find the option, search your platform’s help centre for “favicon”.
On a custom or static site
- Place the files in your site’s public or root folder.
- Add these tags inside the head of every page, usually in a shared layout or template:
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
- Optionally add a web app manifest (site.webmanifest) that lists the 192 and 512 pixel icons. This matters if you want people to be able to install your site as an app.
- Deploy your site.
Dark mode trick for SVG favicons
An SVG favicon can include a CSS media query for prefers-color-scheme, so the icon switches colour in dark mode. Browser support varies, so test it.
Step 4: Test it
- Open your site in a private or incognito window to avoid cached icons.
- Visit the favicon URL directly, for example yoursite.com/favicon.ico, to confirm it loads.
- Check on a phone, including adding the site to your home screen.
- Check search. Google says it uses the favicon defined on your homepage and that changes can take time to appear. Make sure the favicon file and your homepage are crawlable, and use Search Console’s URL Inspection tool to request a recrawl of your homepage if needed.
Common favicon mistakes
- Using the full logo with text, which becomes unreadable.
- A non-square image, which may be stretched or rejected.
- Wrong file paths, especially on sites in subfolders.
- Blocking the icon in robots.txt.
- Forgetting the favicon on a new domain after moving a site. When you connect a domain to a website, recheck it.
- Inappropriate content. Google may not show favicons it considers inappropriate.
Where favicons fit in your launch
A favicon is one of those small finishing touches that’s easy to forget. Add it to your website launch checklist alongside page titles, social sharing images and analytics. If you’re still at the planning stage, start with how to build a website.
Frequently asked questions
What size should a favicon be?
Google asks for a square favicon that is at least 8 x 8 pixels but recommends larger than 48 x 48 pixels. A common setup is an SVG or a 48 x 48 (or larger) PNG or ICO, plus a 180 x 180 PNG for Apple touch icons, and 192 x 192 and 512 x 512 PNGs for installable web apps.
Why isn't my favicon showing?
Browsers cache favicons heavily, so try a private window or hard refresh. Also check the file path in your link tag, that the file loads directly in a browser, and that it isn't blocked by robots.txt. Google Search can take some time to update the favicon it shows.
Do I still need a favicon.ico file?
Not strictly, but many sites keep a favicon.ico at the root because some browsers and tools request it automatically. It's a simple fallback.
Does a favicon help SEO?
It doesn't directly improve rankings, but Google can show your favicon next to your site in search results, which helps people recognise your brand.
Sources