A favicon is the small icon in browser tabs, bookmarks and search results. One image is all you need to make it, but the wrong format or size leaves it blurry or missing altogether.
Picking the right image
- Make it square. If the image has a different aspect ratio, this site keeps the ratio, centers the image and fills the leftover space with transparency.
- Keep the shape simple. Favicons are shown very small, down to 16×16 in some places, so text or fine detail turns unreadable. A bold shape or one or two letters survives.
- Start from a large original, say 512×512 or bigger. Shrinking a big image is fine. Enlarging a small one makes it blurry.
How small it actually looks
To see this, a logo with text and a plain icon without text were drawn and saved as 16, 32 and 180 px PNGs with this site's converter. The gray frame shows the real pixel size, and the large versions are enlarged without smoothing.
![]()
At 16 px the logo's text, "STAR LEAGUE", is a smear you can't read, and at 32 px it is still just a blur. The icon built from bold shapes is recognizable even at 16 px. Most favicons are seen at 16 to 32 px, so leave the text out and use only the boldest shape from your logo.
File size is a separate matter: a 300×300 PNG (8.9KB) saved as a 256×256 ICO came to 16.6KB.
Formats: ICO, PNG, SVG
| Format | Notes |
|---|---|
| ICO | The traditional favicon format. Recognized even in older environments such as Windows shortcut icons. At most 256px on a side |
| PNG | Current browsers also accept PNG favicons. Supports transparency |
| SVG | A vector, so it's sharp at any size and the file is small. Some environments don't support it, so it's safer to ship an ICO or PNG alongside |
If you want the favicon to show up in Google Search results, check the requirements in Google's documentation. The favicon must be square (1:1) and at least 8×8px, and Google recommends going above 48×48px so it looks good on different surfaces. Googlebot also has to be able to crawl both the favicon file and your home page, and the favicon URL shouldn't change often.
Making one on this site
The quickest route is the favicon and app icon generator. From one image it builds a favicon.ico holding 16, 32 and 48 px, a 180 px apple-touch-icon.png for iPhone, 192 and 512 px PNGs for Android, a site.webmanifest and the HTML tags, all in one ZIP. If only the ICO file is needed, use its "favicon.ico only" download.
The regular converter can also produce a single ICO. The steps are:
- Upload your logo (PNG, JPG, SVG and so on). The format is detected automatically.
- Choose ICO as the output. If the original is larger than 256px, it is scaled down to 256px or less with the aspect ratio kept.
- To fix the size yourself, pick Set exact size in the Size option and enter a square, for example 128×128. An original that isn't square is centered using "Keep ratio + fill the margins".
- Rename the downloaded file to
favicon.icoand put it at the top level of your site.
This site's own favicon was made the same way, by converting an SVG logo to ICO with this converter.
An ICO from the regular converter holds a single image at one size. To bundle several sizes such as 16, 32 and 48 px into one file, use the favicon generator above.
Linking it in HTML
Add the links to your site's head, changing the paths to match where your files live.
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
apple-touch-icon is the icon used when someone adds your site to an iPhone home screen, and a 180×180 PNG is the usual recommendation. Transparent areas can show up black, so use a PNG with a filled background. The favicon generator makes this file as a 180 px PNG with the background filled in white. To make it with the converter instead, save as PNG, set the size to 180×180 and turn on "Fill transparent areas and margins with the background color".
Checking the result
Browsers cache favicons aggressively, so the old icon may keep showing after you change it. Do a hard refresh or open the site in a private window.