← Back to Blog How to Create a Favicon: Sizes, Formats and HTML Tags

How to Create a Favicon: Sizes, Formats and HTML Tags

Share:

A favicon is the small icon you see on a browser tab, in bookmarks and in your history. Google can also show it beside your site name in search results, so a site without one looks unfinished next to its neighbours. This guide explains how to create a favicon, which sizes and formats you actually need, and the HTML tags that connect it to your site.

What Size Should a Favicon Be?

There is no single size, because different places use the icon differently:

  • 16x16 and 32x32 pixels: browser tabs and bookmarks on desktop. 32x32 looks sharper on high-density screens.
  • 48x48 pixels or larger: what Google recommends for search results. Google asks for a square icon, at least 48x48, and names multiples of 48 such as 96x96 and 144x144 as safe sizes. An SVG with a square shape also works.
  • 180x180 pixels: the Apple touch icon, used when someone adds your site to the iPhone or iPad home screen.
  • 192x192 and 512x512 pixels: the icons Android and installable web apps read from a web app manifest.

If you only make one file, make it a square PNG of 512x512 and scale it down. Starting big and shrinking gives cleaner edges than enlarging a small icon.

Favicon Formats: ICO, PNG or SVG?

  • ICO is the original format and can hold several sizes in one file. Browsers also request /favicon.ico on their own when a page declares no icon.
  • PNG is supported everywhere and keeps transparency. It is the practical default today.
  • SVG scales to any size from one small file, but browser support is not universal, so keep a PNG or ICO fallback next to it.

How to Create a Favicon With Our Free Favicon Generator

  1. Upload your logo. Use our favicon generator with a square PNG, JPG, SVG or WebP image. 512x512 is recommended.
  2. Check the tab preview. The tool shows your icon in a small dark browser tab, which is a quick way to see whether it is still readable at tab size.
  3. Download the sizes you need. You get 32x32, 16x16 and 180x180 PNG files, each as a separate download.
  4. Copy the HTML tags. The tool gives you the link tags ready to paste into your page head.

The image is processed in your browser and is not uploaded to a server. Two limits are worth knowing. The tool does not create an .ico file or the 48x48, 192x192 and 512x512 versions, so export those from your design software if you need them. It also scales your image into a square, so a wide logo will look squashed. Crop it to a square first.

The HTML Tags to Add

Upload the files to your site's root folder, then paste these lines between the head tags of your pages:

<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">

If you also have an ICO file, add <link rel="icon" href="/favicon.ico" sizes="any">. While you are in the head section, it is a good moment to check your page title and description with our meta tags generator.

How to Get Your Favicon Into Google Search

Google looks for your favicon on the home page of your site, so the link tag has to be there. A few details decide whether it shows:

  • The icon must be square, and Google recommends at least 48x48 pixels.
  • Googlebot must be able to fetch it, so do not block the file in robots.txt.
  • Keep the file URL stable. Changing it often slows Google down.
  • Google supports one favicon per site.

After you change the icon, Google picks it up the next time it crawls your home page. You can speed that up by requesting indexing for the home page in Search Console. Expect it to take days, not minutes.

Favicon Design Tips

  • Keep it simple. At 16 pixels a full company name turns into a smudge. Use a monogram, a single letter or a simple symbol.
  • Check dark mode. A pure black icon on a transparent background disappears on a dark tab. Use a colour or a light outline.
  • Stay square. A rectangular logo needs to be cropped or placed on a square canvas before you generate the icon.
  • Test at small size. Look at the 16x16 file on its own, not only the large version.

Why Is My Favicon Not Updating?

Browsers cache favicons for a long time. If you replaced the file and still see the old one, open the page and press Ctrl+F5 for a hard refresh, or clear the browser cache. If the old icon appears in Google Search, that is a separate delay. It updates after the next crawl.

Favicon Questions People Ask

Do I need a favicon.ico file? Not strictly. Modern browsers read PNG icons from the link tags. An ICO file is still useful as a fallback because some tools and older software request it by default.

Does a favicon help SEO? Google's documentation treats it as part of how your site appears in results, not as a ranking signal. Its value is recognition, since people spot a familiar icon faster in a list of results or a row of tabs.

What should I name the files? Keep the names simple and the same as in your tags, such as favicon-32x32.png and apple-touch-icon.png, and keep them in the root folder. Changing file names later means editing every page that points to them.

Can I use my logo as it is? Only if it is square and still readable when small. Most logos need a simplified version for 16 and 32 pixels.

M
Written by Muhammad Faraz

Co-founder and developer of AioGalaxy. Builds and maintains the Eaglefly, AIVoice and free tools platforms, and writes the blog.

Enjoyed this? Explore the AioGalaxy toolset

Everything mentioned here — and a lot more — is free to try right now, no sign-up walls.

Explore AioGalaxy →

Comments

No comments yet — be the first to share your thoughts.