How to make a favicon from a PNG or JPG

The favicon is the small icon in the browser tab, bookmarks and search results. A clear favicon makes your site look finished and easier to find among open tabs. Here is how to make one.

PNG to ICOJPG to ICOSVG to PNG

1. Prepare a square image

If your logo is an SVG, turn it into a PNG first with SVG to PNG.

2. Convert to ICO

  1. Open PNG to ICO (or JPG to ICO).
  2. Drop in your square image and click Convert.
  3. Download the ICO file.

The ICO contains 16, 32, 48, 64, 128 and 256 pixel versions, so the right size is used in tabs, bookmarks, the taskbar and on the desktop.

3. Add it to your website

Rename the file to favicon.ico and upload it to the main folder of your site, so it is available at yoursite.com/favicon.ico. Browsers look there automatically. You can also add this line to the head of your pages:

<link rel="icon" href="/favicon.ico" sizes="any">

On WordPress you do not need the file at all: go to Appearance, Customize, Site Identity and upload a square PNG as the Site Icon.

Why is my old favicon still showing?

Browsers cache favicons for a long time. Open your site in a private window, or clear the browser cache, to see the new one. Search engines update the icon in results on their next visit, which can take a few days or weeks.

Frequently asked questions

What size should a favicon be?

The ICO should hold several sizes; the standard set is 16, 32, 48, 64, 128 and 256 pixels, which our converter includes automatically.

Can a favicon have a transparent background?

Yes. Start from a PNG with transparency and it is kept in the ICO.

Do I still need favicon.ico?

It is still the most widely supported option and the one browsers look for automatically, so it is worth having.