# Set up a favicon

- Check 10.20 · On-page SEO and metadata · Important
- Source: https://checklist-seo-geo.com/en/page-seo-metadata/set-up-favicon
- Create a favicon that meets Google’s guidelines, declare it on the home page and check that it shows in search results, on every CMS and server.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/page-seo-metadata/set-up-favicon.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

The favicon is the site’s small icon, shown in the browser tab, in bookmarks, on a phone’s home screen and, above all, next to the site name in Google’s results. The check consists of producing a set of square, crisp files, declaring them in the home page `<head>` with `<link>` tags, then checking that Googlebot can crawl them. Once it is done, the brand logo appears in search results instead of the generic grey icon.

## Why it matters

**Google shows the favicon in its results.** It fetches it from the home page, using the `<link rel="icon">` tag. Its guidelines are precise:

- one favicon per site, the site being defined by its hostname: `example.com` and `boutique.example.com` can each have their own, but `example.com/boutique/` cannot;
- Googlebot must be able to crawl the home page, and Googlebot-Image the favicon file, with no blocking by robots.txt or any other means;
- the image must be square, at least 8 × 8 pixels; Google recommends larger than 48 × 48 pixels;
- formats supported by Google Search: BMP, GIF, ICO, PNG, JPEG, PPM and TIFF;
- the file URL must stay stable;
- the icon must visually represent the brand.

Google specifies that no favicon is guaranteed, even when everything complies, and that it can take from several days to several weeks to be picked up.

**SVG alone is not enough for Google.** Recent browsers accept an SVG favicon, but this format is not on Google Search’s list. Always provide a PNG or ICO version alongside it.

**Generative engines show icons too.** Answers from ChatGPT, Perplexity, Copilot or Google’s AI Overviews often present sources with a site icon. How they fetch it is not documented; a standard, accessible, crisp favicon is the best guarantee of not appearing with a blank icon.

## What it improves

- **Recognition in results**: the logo sets your result apart from its neighbors, especially on mobile.
- **Click-through rate**: a plausible effect through brand recognition, not quantified by Google.
- **Trust and consistency**: the same icon in the tab, bookmarks, home screen and the sources cited by AI assistants.
- **Rankings**: no effect. The favicon is not a ranking factor.

## How to check

**1. The home page tags**:

```bash
curl -s https://example.com/ | grep -o -i -E '<link[^>]+rel="(icon|shortcut icon|apple-touch-icon|manifest)"[^>]*>'
```

Expected result: at least one `rel="icon"` tag pointing to a PNG or ICO file, and one `rel="apple-touch-icon"` tag.

**2. The file responds 200 with the right type**:

```bash
curl -s -o /dev/null -w "%{http_code} %{content_type}\n" https://example.com/favicon.ico
curl -s -o /dev/null -w "%{http_code} %{content_type}\n" https://example.com/favicon-96x96.png
```

Expected: `200 image/x-icon` (or `image/vnd.microsoft.icon`) and `200 image/png`. A redirect to the home page, or an HTML page returned with a 200, is an error.

**3. Nothing blocks crawlers**: in `robots.txt`, no `Disallow` rule may cover the icon path (often `/wp-content/uploads/` or `/assets/`), whether for `Googlebot` or for `Googlebot-Image`. Search Console’s [URL Inspection](https://search.google.com/search-console?action=inspect) on the home page confirms that it can be crawled.

**4. How it looks in results**: search for `site:example.com` or the brand name on mobile, and look at the icon to the left of the site name.

## How to implement

### Before you start

**The set of files.** This is an industry convention that covers Google, browsers and mobile devices:

| File | Size | Use |
|---|---|---|
| `favicon.ico` | 32 × 32 (can contain 16, 32 and 48) | Older browsers, tools that request `/favicon.ico` at the root |
| `favicon-96x96.png` | 96 × 96 | Google (larger than 48 px, supported format) and browsers |
| `favicon.svg` | vector | Recent browsers, crisp at every size, dark mode possible |
| `apple-touch-icon.png` | 180 × 180, opaque background | iOS home screen |
| `web-app-manifest-192x192.png` and `-512x512.png` | 192 and 512 | Manifest, Android home screen |

A generator such as RealFaviconGenerator produces the whole set from a square image of at least 512 × 512 pixels.

**The design.** At 16 pixels, a full logo turns into a blob. Keep the symbol or the initial, with enough contrast on both light and dark backgrounds. No long text, no fine details.

**The tags**, in the `<head>` of every page, and at the very least the home page:

```html
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
```

The manifest, at the root:

```json
{
  "name": "Thé des Lisières",
  "short_name": "Lisières",
  "icons": [
    { "src": "/web-app-manifest-192x192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/web-app-manifest-512x512.png", "sizes": "512x512", "type": "image/png" }
  ],
  "theme_color": "#ffffff",
  "background_color": "#ffffff",
  "display": "standalone"
}
```

Also place `favicon.ico` at the site root: some tools request it at that address without reading the tags.

> **Warning:** do not rename the file with every logo update to get around the cache. Google asks for a stable URL. To force an update, replace the file at the same address, then request indexing of the home page in Search Console’s URL Inspection.

### Apache

Versions: Apache 2.4.

Declare the types and a moderate cache lifetime (one week), since the URL does not change. In the virtual host or the `.htaccess`:

```apache
AddType image/x-icon .ico
AddType image/svg+xml .svg
AddType application/manifest+json .webmanifest

<IfModule mod_headers.c>
    <FilesMatch "^(favicon\.(ico|svg)|favicon-96x96\.png|apple-touch-icon\.png|site\.webmanifest)$">
        Header set Cache-Control "public, max-age=604800"
    </FilesMatch>
</IfModule>
```

Check that no rewrite rule sends `/favicon.ico` to the application when the file is missing: add the file rather than letting a 404 be rewritten into an HTML page.

### Nginx

Versions: Nginx 1.18 and later.

In the `server` block:

```nginx
location = /favicon.ico {
    access_log off;
    log_not_found off;
    add_header Cache-Control "public, max-age=604800";
}

location ~* ^/(favicon\.svg|favicon-96x96\.png|apple-touch-icon\.png)$ {
    access_log off;
    add_header Cache-Control "public, max-age=604800";
}

location = /site.webmanifest {
    types { }
    default_type application/manifest+json;
    access_log off;
    add_header Cache-Control "public, max-age=604800";
}
```

The `ico`, `svg` and `png` types are in the `mime.types` file shipped with Nginx, but the `webmanifest` extension is not: without the dedicated block, the manifest is served as `application/octet-stream`. Reload with `sudo nginx -t && sudo systemctl reload nginx`.

### Cloudflare

Versions: Cloudflare dashboard, all plans, November 2026.

Nothing to turn on, but two checks. In [Security > Analytics](https://dash.cloudflare.com/?to=/:account/:zone/security/analytics), filter events on the icon path and check that no rule blocks or challenges Googlebot on the icon files. After replacing the file, purge its URL in [Caching > Configuration](https://dash.cloudflare.com/?to=/:account/:zone/caching/configuration), with the Custom Purge option.

### WordPress

Versions: WordPress 6.4 and later.

Since WordPress 6.5, `Settings > General`, “Site Icon”: choose a square image of at least 512 × 512 pixels, in PNG. Before 6.5, or with some classic themes: `Appearance > Customize > Site Identity > Site Icon`.

WordPress then generates the `rel="icon"` tags at 32 and 192 pixels and `apple-touch-icon` at 180 pixels. The 192-pixel size meets Google’s recommendation. Do not declare a second favicon in the theme or a plugin: two sets of conflicting tags create doubt. If the icons are stored in `/wp-content/uploads/`, check that this folder is not blocked in `robots.txt`.

### Shopify

Versions: Online Store 2.0 themes (Horizon, Dawn), all Shopify plans, November 2026.

`Online Store > Themes > Customize`, then `Theme settings > Logo` or `Favicon` depending on the theme version, “Favicon image” field. Shopify recommends 32 × 32 pixels, and the Horizon and Dawn themes serve the image at that size:

```liquid
<link rel="icon" type="image/png" href="{{ settings.favicon | image_url: width: 32, height: 32 }}">
```

To follow Google’s recommendation (larger than 48 pixels), upload a square image of at least 192 pixels and change the line in `layout/theme.liquid` (`Edit code`):

```liquid
<link rel="icon" type="image/png" href="{{ settings.favicon | image_url: width: 96, height: 96 }}" sizes="96x96">
<link rel="apple-touch-icon" href="{{ settings.favicon | image_url: width: 180, height: 180 }}">
```

### PrestaShop

Versions: PrestaShop 8 and 9, Classic and Hummingbird themes.

`Design > Theme & Logo`, “Favicon” field: the field normally expects an ICO file. Add a 96-pixel PNG version and the `apple-touch-icon` in the theme’s header template (`templates/_partials/head.tpl`, present in Classic and in Hummingbird, the default theme since PrestaShop 9.1), overridden in a child theme.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4.

`Content > Design > Configuration`, store view row, `HTML Head` section, “Favicon Icon” field. Upload a square PNG of at least 96 pixels, save, then flush the cache.

### Drupal

Versions: Drupal 10 and 11.

`Appearance > Settings` (global settings or those of the active theme), “Favicon” section: uncheck “Use the favicon supplied by the theme” and upload your file. For the full set (96 PNG, `apple-touch-icon`, manifest), add the tags in the theme’s `html.html.twig` template or through a module that manages `<head>` tags.

### Wix, Squarespace and Webflow

Each platform offers a favicon field in the site settings; Wix reserves it for sites with a premium plan and a connected domain. Webflow offers two fields, favicon and home screen icon (webclip). Upload a square PNG image, at least 256 pixels for the home screen icon, and check the generated tag in the published source code.

### Laravel

Versions: Laravel 11 to 13.

Put the files in `public/` (the skeleton already contains a `public/favicon.ico`: replace it), then add the tags to the main template:

```blade
{{-- resources/views/layouts/app.blade.php --}}
<link rel="icon" type="image/png" href="{{ asset('favicon-96x96.png') }}" sizes="96x96">
<link rel="icon" type="image/svg+xml" href="{{ asset('favicon.svg') }}">
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon.png') }}">
<link rel="manifest" href="{{ asset('site.webmanifest') }}">
```

Also check the error page templates and secondary layouts.

### Next.js

Versions: Next.js 15 and 16 (App Router).

With the App Router, put the files in `app/`: Next.js generates the tags.

| File in `app/` | Tag produced |
|---|---|
| `favicon.ico` (only at the root of `app/`) | `<link rel="icon" href="/favicon.ico" sizes="any">` |
| `icon.png` or `icon.svg` | `<link rel="icon" type="image/png" sizes="…">` |
| `apple-icon.png` | `<link rel="apple-touch-icon" …>` |

To provide both the PNG and the SVG, number the files: `icon1.png` (96 × 96) and `icon2.svg`. The manifest is declared with an `app/manifest.ts` file or a `public/site.webmanifest` linked in `metadata`.

### Nuxt

Versions: Nuxt 3 and 4.

Put the files in `public/`, then declare them in `nuxt.config.ts`:

```ts
export default defineNuxtConfig({
  app: {
    head: {
      link: [
        { rel: 'icon', type: 'image/png', href: '/favicon-96x96.png', sizes: '96x96' },
        { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
        { rel: 'shortcut icon', href: '/favicon.ico' },
        { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
        { rel: 'manifest', href: '/site.webmanifest' },
      ],
    },
  },
})
```

### Astro

Versions: Astro 5 to 7.

Files in `public/`, tags from the reference HTML template in the layout’s `<head>` (`src/layouts/Base.astro`). If your layout only declares a `favicon.svg`, as project templates often do, add the PNG and the ICO for Google.

## Common mistakes

- **An SVG-only favicon**: accepted by browsers, missing from Google Search’s list of formats.
- **A non-square or tiny image**: a squashed rectangular logo, or a blurry 16 × 16 in results.
- **The icon folder blocked in `robots.txt`**: `/assets/` or `/wp-content/` under `Disallow`, and Googlebot-Image cannot read the file.
- **A favicon declared only on some pages** and not on the home page, whereas Google reads it on the home page.
- **A file name changed with every version** (`favicon-v3.png`): Google asks for a stable URL.
- **Two sets of tags** coming from the theme and a plugin, pointing to different images.
- **Wanting one favicon per section** (`/blog/`, `/boutique/`): Google only keeps one per hostname.
- **`/favicon.ico` returning the home page with a 200** because of a URL rewrite.

## Frequently asked questions

### Why doesn’t Google show my favicon?

The most common causes are a tag missing from the home page, a file blocked by robots.txt or a firewall, a non-square image, an unsupported format such as SVG alone, or a recent change not yet picked up. Fix the issue, then request indexing of the home page in Search Console. Google warns that crawling can take from several days to several weeks, and that a favicon is never guaranteed.

### What size should a favicon be?

Google requires a square image of at least 8 pixels and recommends larger than 48 pixels. In practice, provide a 96-pixel PNG for Google and browsers, a 32-pixel ICO file at the root, an SVG for recent browsers, a 180-pixel Apple icon and 192- and 512-pixel icons in the manifest. Start from a source image of at least 512 pixels.

### Can I have a different favicon for my blog?

Only if it is on a subdomain. Google keeps one favicon per hostname: blog.example.com can have its own, but example.com/blog/ will share the one from example.com’s home page. Browsers, on the other hand, show the icon declared on each page, so a section favicon will appear in the tab, but not in Google’s results.

### Does the favicon affect SEO?

No, it is not a ranking factor. Its value is recognition: in Google’s results, especially on mobile, the logo next to the site name helps users spot a brand they know, which can encourage the click. AI assistants also show site icons next to the sources they cite. A missing or blurry favicon looks careless.

## Resources

- [Google Search Central: Define a favicon to show in search results](https://developers.google.com/search/docs/appearance/favicon-in-search?hl=en)
- [Google Search Central: Site names in Google Search](https://developers.google.com/search/docs/appearance/site-names?hl=en)
- [MDN: Web application manifest](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest)
- [WordPress: Creating a Favicon](https://wordpress.org/documentation/article/creating-a-favicon/)
- [Shopify: Theme settings](https://help.shopify.com/en/manual/online-store/themes/theme-structure/theme-settings)
- [Next.js: favicon, icon and apple-icon](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons)
- [Evil Martians: How to Favicon, six files that fit most needs](https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs)

Next steps: [configure Open Graph and X Cards](https://checklist-seo-geo.com/en/page-seo-metadata/configure-open-graph-x-cards) and [analyze CTR and optimize snippets](https://checklist-seo-geo.com/en/page-seo-metadata/analyze-ctr-optimize-snippets).
