Skip to content
pixvertoPixverto

How to Make a Favicon for Your Website

·

A favicon is the small icon on a browser tab, in bookmarks and in search results. It makes a site look professional and easy to find among many tabs. Getting it right takes a few files, the right sizes and a short piece of HTML. This guide covers all of it, from design to troubleshooting.

What a favicon is and why it matters

A favicon is the tiny icon shown beside your site's name in browser tabs, bookmarks, history and often search results. It helps visitors find your tab quickly, builds recognition and makes a site look finished. Sites without one show a generic icon, which can look unprofessional.

The files you need

FileSizeUsed for
favicon.ico16, 32 and 48 px in one fileBrowsers and older systems
favicon-32x32.png32 × 32 pxModern browser tabs
apple-touch-icon.png180 × 180 pxiPhone and iPad home screen
android-chrome-192x192.png192 × 192 pxAndroid and installable web apps
android-chrome-512x512.png512 × 512 pxAndroid splash screens

You do not have to make each file by hand. A favicon generator creates all of them from one picture and gives you the HTML to paste.

Choosing your source image: SVG or PNG

SVG source

  • Pros: stays sharp at every size, and the generator can render each size cleanly.
  • Cons: you need a vector version of your logo.

PNG source

  • Pros: easy to create from any design tool.
  • Cons: it must be large enough, at least 512 × 512 pixels, to look sharp when reduced.

Whichever you choose, keep the design simple. Fine detail disappears at 16 × 16 pixels, which is the size shown on most browser tabs.

Step by step: create and install a favicon

  1. 1Prepare a square source image with a bold, simple shape or a single letter. Leave a little space around the edges.
  2. 2Open the Favicon Generator and add your image. A transparent background works well for browser tabs.
  3. 3Download the package. It contains the icon files, a web manifest and an HTML snippet.
  4. 4Upload the files to your site's root folder so that /favicon.ico works.
  5. 5Paste the HTML snippet into the head of every page, or into your theme or template once.
  6. 6Reload and test in a private window, and edit site.webmanifest to add your site name.

Design tips

  • Keep it simple: a letter or a bold shape reads better than a detailed logo.
  • Use strong contrast so it stands out on both light and dark tabs.
  • Use a solid background for the Apple touch icon, because iOS fills transparent areas with black.
  • Test at 16 pixels by viewing the final icon at its real size.

Why isn't my new favicon showing?

Browsers cache favicons aggressively. Open the site in a private window, or add a version to the address, such as /favicon.ico?v=2, and refresh a few times. Make sure the link tags point to the right paths. Search engines can take days or weeks to pick up a new icon.

Common mistakes

  • Using a photo or detailed logo that turns into a blur at 16 pixels.
  • Uploading the files to the wrong folder, so /favicon.ico returns an error.
  • Forgetting the HTML tags on some pages or templates.
  • Using a transparent Apple touch icon, which iOS fills with black.
  • Expecting changes to appear instantly without clearing the cache.

Frequently asked questions

What size should a favicon be?

Provide a favicon.ico containing 16, 32 and 48 pixel versions, a 32 pixel PNG, a 180 pixel Apple touch icon, and 192 and 512 pixel PNGs for Android. Start from a source of at least 512 × 512 pixels.

Can I use an SVG as my favicon?

Many modern browsers support SVG favicons, and an SVG is also an excellent source for generating the other sizes. Keep favicon.ico as a fallback.

Where do I put the favicon files?

In the root folder of your website, so that /favicon.ico works, and reference the other files with link tags in the head of your pages.

Why does my favicon not update?

Browsers cache favicons for a long time. Try a private window, add a version number to the address, and refresh a few times.

Do I really need a favicon.ico?

Browsers still request /favicon.ico by default, so having one avoids missing-icon errors. For the full set, use a favicon generator.

Try the tools