How to Create a Favicon for Your Website

Look at your browser tabs right now. Most of them show a tiny logo next to the page title – that is a favicon. Sites without one show a generic grey globe, which looks unfinished. Google also displays favicons next to mobile search results, so a clear icon helps people recognise your brand at a glance. This guide explains how to create a favicon in a few minutes and which files and code you actually need.

Screenshot of the Favicon Generator on Assen Tools
The Favicon Generator in use. Open the Favicon Generator – free, no sign-up.

Where favicons appear

  • Browser tabs and bookmarks
  • Google search results on mobile
  • Phone home screens, when someone saves your site
  • Browser history and address-bar suggestions

Each of these uses a slightly different size, which is why a single file is not quite enough.

The favicon sizes you need

You do not need dozens of files. This set covers modern browsers and devices:

  • favicon.ico (contains 16×16, 32×32 and 48×48) – the classic file browsers look for automatically
  • 32×32 PNG – sharp tabs on modern browsers
  • 180×180 PNG (apple-touch-icon) – iPhone and iPad home screens
  • 192×192 and 512×512 PNG – Android home screens and web app manifests

Google recommends that your favicon is a multiple of 48 pixels square for search results, which the 192 and 512 sizes satisfy.

Designing an icon that works at 16 pixels

A favicon is tiny, so detailed logos turn into blurry blobs. To design a website icon that reads well:

  • Simplify. Use just the symbol, or the first letter of your brand, rather than the full logo with text.
  • Use bold shapes and strong contrast.
  • Check it on dark and light tabs. A transparent background with a dark logo can disappear in dark mode – add a coloured background shape if needed.
  • Start large and square. Begin with at least a 512×512 square image so every size is sharp.

If your logo is an SVG, convert it with SVG to PNG. If it is not square, use Crop Image or the Image Resizer to make a square version. To remove a white box around your logo, use the Background Remover.

Making the files

With the free Favicon Generator:

  1. Upload your square logo or icon.
  2. Preview it at the small sizes to make sure it is still clear.
  3. Download the package containing favicon.ico and the PNG sizes.
  4. Upload the files to the main (root) folder of your website.

The HTML code to add

Put these lines inside the <head> section of every page (most site builders and themes have a template for this):

<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">

On WordPress, go to Appearance → Customize → Site Identity and upload a 512×512 "Site Icon" – WordPress generates the sizes and code for you.

Why your new favicon is not showing

  • Browser cache. Browsers cache favicons aggressively. Open the site in a private window or clear the cache.
  • Wrong path. Make sure the files are in the location the code points to. Check the URL with the HTTP Status Code Checker – it should return 200, not 404.
  • Google takes time. Search results update the favicon when Google next crawls your home page, which can take days or weeks.

Finish the brand basics

A favicon is part of a set of small details that make a site feel trustworthy. While you are at it, set up social preview images with the Open Graph Generator and make sure your pages have good titles and descriptions – see how to write a meta description.

Summary

That is how to create a favicon: start with a simple, square, high-resolution icon, generate the standard sizes, upload them to your site's root folder and add a few lines of HTML. Try the free Favicon Generator and give your site a polished, recognisable look in every browser tab.

Jonathan Nwachukwu, founder of Assen Tools

Written by

Jonathan Nwachukwu · Founder & developer

Jonathan is a freelance web developer and web development teacher who builds Laravel, WordPress and WooCommerce sites for clients. He built AssenTools to put the everyday file, photo and calculation jobs he kept doing for clients and students into one free, private toolbox, and he maintains every tool and guide on the site.