Where favicons appear

The files you actually need

FileSizeUsed by
favicon.ico16, 32, 48 px in one fileAll browsers; requested automatically from the site root
favicon-32x32.png, favicon-16x16.png32 and 16 pxModern browsers that prefer PNG
apple-touch-icon.png180 × 180iPhone and iPad home screen
android-chrome-192x192.png, -512x512.png192 and 512 pxAndroid home screen, installable web apps
site.webmanifest—Tells Android/Chrome which icons and colours to use

An ICO file is a container that can hold several sizes; the browser picks the one it needs. That is why one favicon.ico covers both a 16 px tab and a 48 px shortcut.

Step-by-step

  1. Prepare a square source, ideally 512 × 512 px or larger. A simple shape or one or two letters reads far better at 16 px than a detailed logo.
  2. Generate the files. In the favicon generator upload an image or use an emoji or letters, check the preview at each size and download the ZIP.
  3. Upload them to the site root (so /favicon.ico opens in the browser).
  4. Add the HTML to the <head> of every page.

HTML to paste

<link rel="icon" href="/favicon.ico" sizes="48x48">
<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">

And the manifest file it points to:

{
  "name": "My Site",
  "short_name": "My Site",
  "icons": [
    { "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
  ],
  "theme_color": "#0f172a",
  "background_color": "#0f172a",
  "display": "standalone"
}

Design tips

What about SVG favicons?

An SVG icon (<link rel="icon" type="image/svg+xml" href="/icon.svg">) stays sharp at any size and can even switch colours for dark mode with a CSS media query inside the file. Support differs between browsers, so treat it as an extra on top of the ICO and PNG files, not a replacement.

Favicon not updating?

Setting up the rest of the page head? See the meta tag generator.

⭐ Make every file below from an image, emoji or letters — one ZIP with the HTML included:
Open the favicon generator→

Frequently asked questions

What size should a favicon be?

Provide a favicon.ico containing 16×16, 32×32 and 48×48 images, a 180×180 apple-touch-icon for iPhone and iPad, and 192×192 and 512×512 PNGs in a web manifest for Android. Start from a square source of 512 px or more.

Do I still need favicon.ico?

It is still the safest fallback: browsers and many tools request /favicon.ico from the site root automatically, even without a link tag. Keep it alongside PNG (and optionally SVG) icons.

Why does my apple-touch-icon have a black background?

iOS does not support transparency in home-screen icons and fills transparent areas, typically with black. Use a solid background colour for the 180×180 icon.

Why is my old favicon still showing?

Browsers cache favicons aggressively. Open /favicon.ico directly and hard-refresh, try a private window, or change the file URL (for example add ?v=2) in your link tags.

How do I get my favicon to show in Google search results?

Link it from your home page with rel="icon", make it square, keep it crawlable (not blocked by robots.txt) and use a size larger than 48×48 as Google recommends. Updates can take some time to appear after Google recrawls the page.