By Arkay · Updated
How do you use the favicon generator?

You add one image and a site name, and the tool returns every favicon file in one ZIP. Follow these steps:
- Add one image in PNG, JPG, WebP or SVG format.
- Enter your site name. The tool uses it in the web manifest.
- Read the outputs. favicon.ico holds the 16, 32 and 48 px sizes, and the PNG icons cover 16, 32, 48, 180, 192 and 512 px.
- Download the ZIP, which holds all of the files. Copy the link tags for the page head into your HTML.
How does the favicon generator work?
This tool draws your image centred on a transparent square canvas at each size, then saves each size as a PNG.
Next, it packs the 16, 32 and 48 px PNGs into favicon.ico. MDN's link element reference notes that Microsoft's ICO format can store several sizes in one file.
The ZIP is built in your browser with fflate. The image is never uploaded.
What is a favicon and where do browsers show it?

A favicon is the small icon that represents your site in browser tabs and bookmarks. The HTML standard defines rel="icon" as a link that imports an icon to represent the current document.
If a page has several icon links, the HTML standard says the browser picks the most appropriate one by type, media and sizes. On a tie, it uses the last one declared. If that icon is unusable, it tries the next most appropriate one.
Apple devices work differently. MDN notes that iOS ignores rel="icon" for home-screen icons and uses apple-touch-icon instead. Apple's Safari guide says a PNG named apple-touch-icon.png in the site root sets the home-screen icon for the whole site.
Many guides say browsers always fetch /favicon.ico. The HTML standard is more careful. A browser may request that file from the site root, and only when the page declares no icon link.
Which favicon sizes do you need, and why?
| Size | File | Why you need it |
|---|---|---|
| 16, 32 and 48 px | favicon.ico | The small sizes for the page icon, all in one file |
| 180 px | PNG for the Apple touch icon | Apple's guide uses 180x180 for Retina iPhones |
| 192 px and 512 px | PNG icons in the manifest | Android and installed web apps. web.dev names 512x512 as the one size to pick if you pick only one |
Apple's guide says that if no icon matches the recommended size for the device, iOS uses the smallest icon larger than it, or else the largest one available.
ICO vs PNG vs SVG: which favicon format should you use?
Most icon formats store one size per file, so a full set needs several files. MDN makes that point.
- ICO can hold several sizes in one file, and MDN says it has better browser support.
- PNG is the format that Apple's guide asks for in its touch icon file.
- SVG is a scalable format. The HTML standard uses the keyword
anyin the sizes attribute for scalable icons such as SVG. Google does not list SVG among its favicon formats.
Use ICO for favicon.ico, and PNG for the Apple touch icon and the manifest icons. This tool takes SVG as input, but its outputs are ICO and PNG files. If you publish an SVG favicon, keep an ICO or PNG beside it, because Google Search does not list SVG.
How do you convert a PNG to ICO?
Add your PNG to this tool. It packs the 16, 32 and 48 px PNG images into one favicon.ico file.
Put favicon.ico from the ZIP at the site root, where a browser may request it when the page declares no icon link. You can also link it with a rel="icon" tag.
Which HTML tags do you need for a favicon?
The tool gives you the link tags for the page head. There are three kinds to know:
rel="icon"points to favicon.ico or a PNG icon.rel="apple-touch-icon"points to the 180 px PNG. Apple's guide says this tag sets the home-screen icon for one page.rel="manifest"points to site.webmanifest. web.dev says to link it from every HTML page of the app.
Here is a commented example of the head tags. The paths are examples, so copy the tags the tool gives you rather than these lines.
<!-- Example head tags. The paths are examples. -->
<!-- favicon.ico holds 16, 32 and 48 px images. -->
<link rel="icon" href="/favicon.ico" sizes="16x16 32x32 48x48">
<!-- A PNG icon, listed at the size it really is. -->
<link rel="icon" href="/icon-32.png" sizes="32x32">
<!-- Apple touch icon for the home screen. -->
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
<!-- Web manifest for the installed app. -->
<link rel="manifest" href="/site.webmanifest">
The sizes attribute must list only sizes the file really contains, as the HTML standard requires. It accepts any for a scalable icon such as SVG, or WIDTHxHEIGHT values in device pixels. Do not use rel="shortcut icon". MDN says this link type is non-conforming, ignored, and must not be used anymore.
What goes in the web manifest?
web.dev says the manifest's official extension is .webmanifest, and the tool names its file site.webmanifest. The manifest has an icons array, and each icon needs only a src. The sizes and purpose fields are optional. A fragment looks like this:
{
"icons": [
{ "src": "icons/icon-192.png", "sizes": "192x192", "purpose": "any" },
{ "src": "icons/icon-512.png", "sizes": "512x512", "purpose": "any" }
]
}
This is a fragment only.
A relative src resolves against the manifest file's URL, not the page. If site.webmanifest sits at the site root, icons/icon-192.png points to an icons folder at the root.
MDN says sizes lists WIDTHxHEIGHT values, and purpose can be any (the default), maskable or monochrome.
web.dev says that if you pick only one icon size, it should be 512x512. It also recommends 192x192, 384x384 and 1024x1024. Without suitable icons, some platforms will not offer install.
web.dev says maskable icons should be at least 512x512 px. Keep the main artwork inside a centred circle whose radius is 40% of the icon's width, and declare the icon with "purpose": "maskable".
How do you design an icon that reads at 16 px?
Do not shrink your large logo. Microsoft's icon guidelines say that simply scaling down from the 256x256 size does not work, so the 16 px icon needs its own design.
This tool draws the image you upload at each size, so the 16 px PNG is your artwork drawn small.
For the 16x16 size, Microsoft suggests removing objects or simplifying the image to improve recognition. It advises no more than three objects in an icon, and it says to avoid letters and words.
Microsoft also says the 16x16 icon must still show the icon's key point. Smaller icons are simplified, and their defining details are exaggerated.
In practice, start with one main shape. Then exaggerate the detail that makes your icon yours, so it still reads at small size.
Check the 16 px PNG from the ZIP at actual size in a browser tab before you publish it.
Does Google Search show your favicon, and what does it require?
Google requires a square (1:1) favicon of at least 8x8 px. Google recommends a favicon larger than 48x48 px so that it looks good on various surfaces.
Google Search supports BMP, GIF, ICO, PNG, JPEG, PPM and TIFF favicons, and SVG is not among them.
Googlebot-Image must be able to crawl the favicon, so robots.txt must not block it. After a change, Google says it can take several days to several weeks to recrawl and show it.
How do you fix a favicon that does not update?

Work through these four checks in order.
- Link tags. The HTML standard says browsers use the icon links a page declares, so an old link can hide a new file.
- Paths. Make sure each
hrefpoints to a file that exists. A relative manifest icon path resolves against the manifest file, not the page, according to MDN. - Content Security Policy. If your site sends one, its img-src directive applies to the favicon and can stop it loading.
- Google. Check that robots.txt does not block Googlebot-Image. Google says a recrawl can take several days to several weeks.
More guides in Image Tools.
Related guides
Frequently asked questions
- What size should a favicon be?
- Google recommends a favicon larger than 48x48 px and requires a square (1:1) image. The tool outputs 16, 32, 48, 180, 192 and 512 px files, and web.dev says 512x512 is the one size to pick if you pick only one.
- Do I still need favicon.ico?
- Yes, keep it. Browsers may request /favicon.ico from the site root when a page declares no icon link. MDN notes that an explicit link tag protects you against changes to that convention.
- Why is my favicon not showing?
- Check for an old icon link, a wrong path and a Content Security Policy img-src rule that blocks the file. In Google Search, also check robots.txt, and allow several days to several weeks for a recrawl.
Sources
- MDN notes that most icon formats store one size, but Microsoft's ICO format can store seve (developer.mozilla.org)
- The HTML standard defines rel="icon" as importing an icon to represent the current documen (html.spec.whatwg.org)
- The shortcut link type (rel="shortcut icon") is non-conforming and authors must not use it (developer.mozilla.org)
- Apple's Safari guide: a PNG named apple-touch-icon.png in the site root sets the home-scre (developer.apple.com)
- web.dev: the manifest's official extension is .webmanifest, it is linked with <link rel="m (web.dev)
- Google Search: the favicon must be square (1:1) and at least 8x8 px, and Google recommends (developers.google.com)
- In the manifest, each icon needs only src; a relative src resolves against the manifest fi (developer.mozilla.org)
- Microsoft's icon guidelines: 16x16 icons must still show the icon's key point, smaller ico (learn.microsoft.com)