Skip to content
XUtilHub

How to Make a Favicon for Your Website (All Sizes Explained)

XUtilHub Team ·

A favicon is the little icon in a browser tab, bookmark list and search result. Getting it right takes more than one 16-pixel image, because phones, tablets and search engines each want their own sizes.

The files you actually need

FileSizeUsed by
favicon.ico16, 32 and 48 px in one fileBrowser tabs, older browsers
favicon.svg (optional)ScalableModern browsers, sharp at any size
apple-touch-icon.png180 × 180iPhone and iPad home screens
icon-192.png192 × 192Android home screen
icon-512.png512 × 512Android splash screen, installable web apps
site.webmanifest–Tells Android about the icons above

You don't need dozens of sizes any more. This set covers browsers, phones and search results.

Make them from one image

  1. Start with a square image at least 512 × 512 pixels: your logo or just its symbol.
  2. Upload it to the favicon generator.
  3. Download the package with every file and the HTML.
  4. Put the files in your website's root folder and paste the HTML into your page's head.

Designing for 16 pixels

At 16 × 16 pixels, detail disappears.

  • Use a symbol, not your full logo. Text becomes an unreadable smudge.
  • Bold shapes and high contrast work best.
  • Fill the square. Thin padding wastes the tiny space.
  • Check dark mode. A black icon on a transparent background vanishes in a dark browser tab. Add a background or an outline.

The HTML

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

Google shows favicons next to results on mobile. To qualify, your favicon should be square, at least 48 × 48 pixels, at a stable URL, and crawlable (not blocked by robots.txt). It can take a while for Google to pick up a new favicon after you change it.

Troubleshooting

The old icon still shows. Browsers cache favicons aggressively. Try a private window or clear the cache; renaming the file also forces a refresh.

It looks blurry. Start from a larger, sharper image, or provide an SVG. For a vector logo, export it with SVG to PNG at 512 pixels first.

It isn't square. Crop or pad it to a square with the image resizer before generating.

Tools mentioned in this article

← All articles