Skip to content
Create favicon

How to add a favicon to your website

Step by step: upload the favicon files, add the HTML tags and check that browsers pick up the new icon.

1 min readUpdated 2026-11-17

1. Create the files

Generate a favicon package from text, an image or an emoji and unzip the download.

2. Upload them to the site root

Copy every file into the top folder of your website, the same folder as your home page (often public_html or www). favicon.ico must be at https://yoursite.com/favicon.ico, because browsers look there automatically.

3. Add the HTML tags

Paste the code from README.html inside the <head> section of every page, or of your shared header template:

<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">

4. Edit the manifest

Open site.webmanifest and set name and short_name to your site's name. The colours are filled in from your design.

5. Clear the cache

Browsers cache favicons aggressively. Open the site in a private window or do a hard refresh. If you replace an existing icon, you can add a version to the links, for example /favicon.ico?v=2.

Popular platforms

  • WordPress: Appearance → Customize → Site Identity → Site Icon (upload the 512×512 PNG).
  • Shopify: Online Store → Themes → Customize → Theme settings → Favicon.
  • Next.js (App Router): put favicon.ico, icon.png and apple-icon.png in the app/ folder.
  • Wix and Squarespace: upload the 512×512 PNG in the site's settings under "Favicon".

Icon not showing?

Open /favicon.ico directly in the browser to make sure the file loads, check that the link tags are in the <head> of every page and that each path starts with a slash. Google can take days or weeks to update the icon in search results; the favicon SEO guide lists every check. To see all the places your new icon will appear, read where favicons are used.

More favicon guides

View all