How to make a favicon

To make a favicon, start with a simple square logo of at least 512 × 512 pixels, turn it into favicon.ico plus PNG icons with a free favicon generator, upload the files to your website's main folder and add five lines of HTML to the <head>. On WordPress or Shopify, just upload the 512 px icon in the theme settings.

Open the free Favicon generator

What a favicon is, and which files you need

A favicon is the small icon shown in browser tabs, bookmarks, history and Google search results next to your site's name. Phones also use a larger version when someone adds your site to their home screen.

One file is no longer enough for every device. A complete set is: favicon.ico (16, 32 and 48 px in one file, for older browsers and Windows), favicon-16x16.png and favicon-32x32.png (browser tabs), apple-touch-icon.png at 180 × 180 (iPhone and iPad home screens), android-chrome-192x192.png and android-chrome-512x512.png (Android), and a small site.webmanifest file that tells Android which icons to use.

Step 1: Prepare your picture

Use a square picture of at least 512 × 512 pixels, or an SVG logo. At 16 pixels across, text and fine detail disappear, so pick a bold, simple mark: the symbol from your logo, your first letter, or a simple shape in your brand colour.

A transparent background (PNG or SVG) lets the icon sit nicely on light and dark browser tabs. If your logo isn't square, crop it first, or let the generator centre it with space around it.

Step 2: Make the favicon files, free and without uploading

  1. Open the Favicon generator and drop in your picture (PNG, JPG, SVG or WebP).
  2. If you like, pick a background colour, add a little space around the picture, and type your site's name.
  3. Press "Make favicons" and check the preview of the browser tab and the phone icon.
  4. Press "Download all as ZIP" to save all seven files, and copy the HTML code shown under the preview.

Use the Favicon generator: free, nothing uploaded

Step 3: Add the favicon to any website (HTML)

  1. Unzip favicons.zip and upload every file to the main (root) folder of your website, next to your home page, with your hosting file manager or FTP.
  2. Check it worked: yoursite.com/favicon.ico should open the icon.
  3. Paste the code below inside the <head> of every page. On a site built from templates, that is usually one file, often called header or layout.
  4. Open your site in a private window to see the new icon (normal windows may show the old one for a while).
<link rel="icon" href="/favicon.ico" sizes="48x48">
<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">
<link rel="manifest" href="/site.webmanifest">

Add a favicon in WordPress

  1. In the WordPress dashboard, go to Appearance › Customize › Site Identity. (With a block theme, look for Site Icon under Settings › General, or in the Site Logo block's settings.)
  2. Click "Select site icon" and upload android-chrome-512x512.png from the ZIP.
  3. Press Publish. WordPress makes the other sizes and adds the HTML for you, so you don't need to upload the other files.

Add a favicon in Shopify

  1. In Shopify admin, go to Online Store › Themes and click Customize on your current theme.
  2. Open Theme settings (the gear icon) and find Logo or Favicon.
  3. Upload android-chrome-512x512.png and press Save. Shopify shrinks it to the sizes browsers need.

Wix, Squarespace, Webflow and most other site builders work the same way: find the Favicon setting in the site settings and upload the 512 px PNG.

Getting your favicon into Google search results

Google shows a favicon next to your site in search results when your home page links to it (the HTML code above does that), the icon is square and at least 48 × 48 pixels, and Google is allowed to crawl it. It only picks up a new favicon when it recrawls your home page, so it can take a few days or weeks to change. You can speed this up by asking Google to recrawl your home page in Search Console.

Questions people ask

What size should a favicon be?

Make it from a square image of at least 512 × 512 pixels. A website then needs 16, 32 and 48 px icons for browsers, 180 px for Apple devices and 192 and 512 px for Android; a favicon generator makes them all at once.

Should a favicon be ICO or PNG?

Use both. Modern browsers use the PNG icons named in your HTML, while favicon.ico is still requested automatically by many browsers and tools. A favicon generator gives you both.

Why isn't my new favicon showing?

Browsers keep favicons for a long time. Open your site in a private window or clear the browser cache. If it still doesn't show, check that yoursite.com/favicon.ico opens and that the HTML code is inside the <head>.

Can I use an emoji or a letter as a favicon?

Yes. Make a square picture of the emoji or letter (for example in Canva, or by screenshotting it large and cropping it), then turn it into favicon files with the generator. Bold, simple shapes read best at 16 pixels.

Do I need a favicon for SEO?

It doesn't raise your ranking directly, but Google shows it next to your site in search results, and a clear, recognisable icon can help people pick your result and find your tab again.

More guides

Published by SimplyConverter