How to Create a Favicon for Your Website (Sizes, HTML, and Free Generator)

To learn how to create a favicon for your website, design one simple square icon, generate the sizes browsers need from it — a 32×32 PNG for tabs, a multi-size favicon.ico file, and a 180×180 Apple touch icon — then link them in your page’s <head> or upload the icon through your platform’s settings. A free favicon generator does the file creation in under a minute.

A favicon is the tiny icon in the browser tab next to your page title, and it also shows up in bookmarks, history, and search results. It is small, but a site without one looks unfinished — browsers show a generic blank icon, and on a crowded tab bar your site is the one nobody can find at a glance.

Laptop keyboard with browser tabs open

What a Favicon Is and Why Your Site Looks Unfinished Without One

“Favicon” is short for “favourite icon” — the name comes from the old days when the icon appeared next to bookmarked sites. Today it appears in more places than most people realise:

  • Browser tabs, at 16×16 pixels — the smallest and most common place it shows.
  • Bookmarks and history lists, where the icon is what your eye finds first.
  • Phone home screens, when someone saves your site as a shortcut.
  • Google search results, next to your site’s name on mobile results pages.
  • Browser address bar suggestions and the new-tab page’s shortcuts.

Browsers also look for a favicon automatically. If you do not provide one, most browsers request /favicon.ico from your site’s root anyway and log a 404 error when it is not there. Adding one fixes that error and makes your site recognisable in every place a tab or bookmark appears. If you are putting together a new site, it sits alongside the other small setup jobs in any roundup of the best tools for bloggers — quick to do, and embarrassing to forget.

The Favicon Sizes You Actually Need in 2026

Old guides used to list a dozen sizes. The modern set is much smaller, because browsers have settled on a few standards. For almost every website, these are the files that matter:

File Size Where it shows
favicon.ico 16×16, 32×32, 48×48 in one file Browser tabs, bookmarks, and anything that requests /favicon.ico
favicon-32×32.png 32×32 Modern browser tabs (linked from your HTML)
apple-touch-icon.png 180×180 iPhone and iPad home screen shortcuts
android-chrome-192×192.png 192×192 Android home screen, installable web apps
android-chrome-512×512.png 512×512 Android splash screens, app install prompts

A few notes on this list:

The ICO file is still worth having. A single favicon.ico can hold several sizes inside it (16, 32, and 48 pixels is the usual set), and browsers, feed readers, and older tools still request /favicon.ico by default. It is the fallback that covers everything you forgot to link.

Google has its own rules. For your favicon to appear in Google Search results, the icon must be square, at least 8×8 pixels, and Google recommends one larger than 48×48 pixels. Google supports BMP, GIF, ICO, PNG, JPEG, PPM, and TIFF formats — and SVG is not on that list, so do not rely on an SVG favicon alone if search visibility matters to you.

SVG is a useful extra, not a replacement. Modern browsers accept SVG favicons, which stay perfectly sharp at any size and can even change colour for dark mode using a media query inside the file. Ship one alongside your PNG and ICO files if your icon is a simple vector shape — but keep the raster files as the baseline.

The 192 and 512 sizes are only needed for installable web apps. If your site is a regular website and not a progressive web app with a manifest file, you can skip them. The first three files in the table cover the cases that matter for most sites.

Design Rules: Making an Icon That Reads at 16 Pixels

The hard part of how to create a favicon for your website is not the file format — it is designing something that still makes sense at 16×16 pixels, where most favicons actually appear. Your full logo almost certainly will not work at that size. Here is what does:

  • Use one bold shape or one letter. A single initial, a simple symbol, or a stripped-down version of your logo mark. If your logo has text in it, drop the text — at 16 pixels, letters turn into grey smudges.
  • Keep it high contrast. A dark mark on a light background, or a bright mark on a dark background. Thin lines and pale colours disappear at small sizes.
  • Fill the square. Leave a small margin, but do not let your mark float in the middle of a lot of empty space. The icon is already tiny; use all of it.
  • Use a solid background for the Apple touch icon. iOS does not handle transparency the way you might expect — it fills transparent areas with black. If your icon has a transparent background, give the 180×180 version a solid one.
  • Test it at actual size. Shrink your design to 16×16 and look at it. If you cannot tell what it is, simplify it further. Squinting at a 512-pixel version tells you nothing.

Start from a square source image of at least 512×512 pixels, ideally a vector file (SVG, AI, or EPS) so every export stays sharp. Enlarging a small logo to 512 pixels makes a larger image, but it does not restore detail that was never there. If your only logo file is small, redraw the mark simply rather than stretching it.

Laptop screen showing a search page in a web browser

How to Create a Favicon for Your Website (Free Generator)

Once you have a square logo or icon image, a generator does the tedious part — producing the ICO file and all the PNG sizes. Toollan’s favicon generator runs in your browser: upload your image, and it produces the favicon files for you to download, free.

The steps are the same with any generator:

  1. Prepare your source image. Square, at least 512×512 pixels, PNG with a transparent or solid background. If your logo is not square, crop it first — a stretched rectangular logo looks wrong in a tab. Toollan’s image resizer can resize or re-crop it to a square if needed.
  2. Upload it to the generator. Pick the sizes you want — at minimum the ICO file, the 32×32 PNG, and the 180×180 Apple touch icon.
  3. Download the files. Most generators give you a zip file with all the sizes plus the HTML snippet to paste into your site.
  4. Check the smallest size. Open the 16×16 or 32×32 output and look at it at real size. If the mark is unreadable, go back and simplify the source image.

If your logo is an SVG, convert it to a PNG first at 512×512 or larger, then run it through the generator. Some generators accept SVG directly, but converting first gives you control over how the vector renders at small sizes.

Add the Favicon to Your Site (HTML Tags + WordPress)

On a plain HTML site

Upload the files to your site’s root directory (or a folder like /icons/), then add these lines inside the <head> section of each page:

<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">

If you also made an SVG favicon, add it before the PNG lines so modern browsers pick it up first:

<link rel="icon" type="image/svg+xml" href="/icon.svg">

Place favicon.ico at the site root even if you link it in the HTML — browsers and tools that do not read your link tags will still request it there. If you use a static site generator or a framework, the <head> section usually lives in a layout or template file, so you add the tags once and they appear on every page.

On WordPress

WordPress calls the favicon a Site Icon, and you do not need to touch any code or upload individual sizes. Since WordPress 6.5, the setting lives under Settings > General: find the Site Icon row, click “Choose a Site Icon”, and upload a square image at least 512×512 pixels. WordPress crops it to 512×512, generates the smaller sizes it needs (270, 192, 180, 64, and 32 pixels), and prints the tags for you.

On a classic theme or an older WordPress version, the same control is under Appearance > Customize > Site Identity. Upload the same 512×512 square image and click Publish. Either way, one upload covers every size — there is no need to create a separate .ico file for WordPress.

Person using design software on a laptop

Why Your Favicon Isn’t Showing (It’s Almost Always the Cache)

You added the favicon, refreshed the page, and the tab still shows the old icon — or none at all. This is the most common favicon complaint, and the cause is nearly always caching. Browsers cache favicons aggressively, sometimes for days, because they are requested on every single page load.

Work through these in order:

  1. Hard refresh. Press Ctrl+Shift+R (Windows/Linux) or Cmd+Shift+R (Mac). A normal refresh often is not enough for favicons.
  2. Open the icon URL directly. Visit yoursite.com/favicon.ico in the browser. If the new icon shows there, the file is in place and the tab is just showing a cached copy.
  3. Try a private window. A private or incognito window starts with a clean cache. If the favicon shows there, your regular profile will catch up on its own.
  4. Clear the browser cache for your site, or wait. Favicons can take hours to update in a browser that has already cached the old one, and Google Search can take days to refresh the icon it shows in results.
  5. Check the file path. If the icon does not show even in a private window, the file may be in the wrong folder or the link tag may point to a path that does not exist. Open the icon URL directly — a 404 page means the path is wrong.
  6. Check the file itself. An SVG cannot be a WordPress Site Icon (SVG is not an allowed upload type), and a corrupted or zero-byte ICO file will silently fail. Re-generate the files and re-upload.

One more gotcha: if you changed your favicon but the old one still shows in Google Search, that is normal. Google re-crawls favicons on its own schedule, and there is no way to force it. As long as the icon shows in your own browser, the setup is correct.

MacBook with a web browser open on a wooden table

Frequently Asked Questions

What size should a favicon be?

For browser tabs, 32×32 pixels is the standard modern size, with 16×16 inside the ICO file for older contexts. Add a 180×180 PNG for Apple home screens and 192×192 and 512×512 PNGs if your site is an installable web app. Start from a square source image of at least 512×512 pixels.

Can I use an SVG as my only favicon?

Modern browsers accept SVG favicons, but it should not be your only format. Google Search does not list SVG among its supported favicon formats, so keep an ICO or PNG file as well to make sure your icon appears in search results.

Do I need a favicon.ico file if I link a PNG?

It is still worth having one at your site’s root. Browsers, feed readers, and other tools request /favicon.ico by default even when your pages link a PNG, and without the file those requests return a 404 error.

How do I add a favicon in WordPress?

Go to Settings > General, find the Site Icon row, and upload a square image at least 512×512 pixels. On a classic theme, the same control is under Appearance > Customize > Site Identity. That is how to create a favicon for your website on WordPress: one upload, and WordPress generates all the smaller sizes for you.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top