Guides / Image guides
How to Make a Favicon (ICO) From a PNG
To make a favicon from a PNG, open the PNG to ICO tool, add your logo, tick the icon sizes you want (16, 32 and 48 pixels are ticked by default) and download the .ico file. A favicon is the small icon in a browser tab, bookmark list and some search results. This guide covers the steps, how to prepare a logo so it looks good at tiny sizes, and what else a modern website needs besides the .ico file.
How to make an ICO file
- Prepare a square PNG. If your logo is not square, crop it first, or let the tool add padding (see below).
- Open PNG to ICO and choose the file. JPG, WebP, GIF, BMP and AVIF files are accepted too, as long as your browser can open them.
- Tick the sizes to include. The choices are 16, 32, 48, 64, 128 and 256 pixels. The tool starts with 16, 32 and 48 ticked, which covers most favicons. Add 256 for Windows app icons.
- If your image is not square, choose what to do with it: Fit inside, keep the whole image adds transparent padding, while Fill the square, crop the edges crops from the centre.
- Create the icon and download it.
- Rename the download to favicon.ico. The tool names the file after your source image, for example logo.ico, so a quick rename is needed.
You can add several images at once and get one .ico for each. Each icon is shown with its sizes and file size before you download it.
Start with a good source image
A favicon is shown at 16 pixels wide in many browser tabs, which is smaller than a postage stamp on screen. Most logos do not survive that without help.
- Use a square image, at least 256 pixels on a side, so it can be scaled down cleanly. Bigger is fine, since the tool shrinks it for each size.
- Keep the design simple. Fine detail, thin lines and small text vanish at 16 pixels. A single letter, a symbol or a bold shape works best.
- Use strong contrast. Pale logos on a transparent background can disappear in a light browser tab, and dark logos can vanish in dark mode.
- Leave a small margin, but not a big one. Too much empty space makes the symbol tiny. Too little makes it touch the edges.
- Consider a dedicated icon. A full logo with a name beside it rarely works. Use just the symbol or monogram.
Which sizes does an ICO need?
An ICO file can hold several sizes in a single file, and the browser or operating system picks the one that suits the place it is drawing the icon. Here is how the sizes the tool offers are commonly used:
- 16 pixels: browser tabs and some bookmark lists on standard screens.
- 32 pixels: sharper tabs on high-density screens, and some taskbar and shortcut uses.
- 48 pixels: some desktop shortcuts and site lists.
- 64 and 128 pixels: larger icon views in some programs. Optional for a typical website.
- 256 pixels: Windows app icons and large previews.
More sizes make a larger file, so tick what you need. For a normal website, 16, 32 and 48 is a sensible choice.
Square, fit or fill?
If your image is already square, the setting makes no difference. If it is a wide or tall logo, you have two choices.
- Fit inside. The whole image is shown, with transparent bars added at the top and bottom, or the sides. Nothing is cut off, but the logo gets smaller, which hurts at 16 pixels.
- Fill the square. The image fills the square and the edges are cropped away. The symbol stays larger, but you lose whatever was at the edges.
For the best result, make your own square version in advance with Crop Image, so you decide exactly what is kept.
Files a modern website usually has
- favicon.ico in the site root, for older browsers and tools that look for it automatically.
- A PNG or SVG icon linked in the page head, which can look crisper on modern screens.
- An Apple touch icon, often around 180 pixels square, for when someone adds your site to a phone home screen.
Browsers differ in what they pick, so supplying more than one format is a safe approach. You can make the extra PNG sizes with Resize Image, for example a 180 by 180 version from your square source. If your logo is an SVG, turn it into a PNG with SVG to PNG first. The ICO tool does not open SVG files directly.
Installing it
On WordPress
Upload a square image under Appearance, Customize, Site Identity as the Site Icon. Menu names can vary between versions and themes. WordPress asks for a square image of a reasonable size and creates the other sizes it needs.
On other sites
Place favicon.ico in the root folder of your site, so it can be found at yourdomain.com/favicon.ico, and link any other icons in the head of your pages. Your site builder or hosting platform may have its own favicon setting, so check its help pages first.
Cached icons
After uploading, clear your browser cache or open the site in a private window, because browsers hold on to old favicons for a long time. Search engines can also take a while to show a new icon.
Check the result
Open the site in a new tab and look at the icon at its real size. Zoomed-in previews can hide problems that are obvious at 16 pixels. Check it on both a light and a dark browser theme if you can, and on a phone. If it looks muddy, simplify the source image and make it again, rather than adding more sizes.
Worked example: a wide logo for a small business site
Suppose your logo is a wide banner with a symbol on the left and the business name beside it, saved as a 1200 by 400 PNG. Used as it is, the symbol would shrink to a few pixels in a 16 pixel tab and the name would be unreadable. Instead, crop the symbol into a square with Crop Image, leaving a small margin around it. Save that square as a new PNG, open the ICO tool, keep 16, 32 and 48 ticked, and create the icon. Rename the download to favicon.ico, upload it, and look at the tab at its real size. If the symbol still looks cramped, crop slightly closer and repeat. This takes a few minutes and gives a far better result than shrinking the whole banner.
Designing for light and dark tabs
Browsers draw tabs on pale and dark backgrounds, depending on the theme the visitor uses. A black symbol on a transparent background is clear on a light tab but can almost vanish on a dark one, and the opposite is true for a white symbol. There are a few ways to cope:
- Put your symbol on a solid coloured square or circle so it carries its own background.
- Choose a mid-tone brand colour that has enough contrast on both light and dark.
- Add a thin outline in a contrasting colour around a plain symbol.
Whichever you choose, test the icon in a light and a dark browser theme before you finish.
Favicon checklist
- Is the source square, simple and at least 256 pixels on each side?
- Does the symbol still read clearly when you view it at 16 pixels?
- Have you ticked 16, 32 and 48, and added more only if you need them?
- Is the file named favicon.ico and placed in the site root?
- Have you also supplied a PNG or SVG icon and an Apple touch icon where your platform allows?
- Have you cleared the cache and checked the result in a fresh tab?
Troubleshooting
- The icon looks blurry. The source is probably too detailed, or too small. Use a simpler, larger square image.
- The logo is tiny inside the icon. It had a lot of empty space, or you used Fit on a wide image. Crop closer, or choose Fill.
- The old icon still shows. It is cached. Clear the cache, test in a private window and wait a while.
- It disappears on a dark theme. Add a solid background colour to the source image, or choose a mid-tone colour that works on both.
- The tool says the file could not be converted. The file may be damaged or in a format your browser cannot open. Re-export it as PNG and try again.
- The browser does not use your icon at all. Check that the file is saved as favicon.ico in the site root and that the page links to it if your platform needs that.
Other uses for ICO files
An ICO is not only for websites. Windows programs and shortcuts can use .ico files, which is why the tool offers up to 256 pixels. If you are making one for a shortcut or program, tick 256 as well as the small sizes, then check how it looks in the places it will appear, since programs choose among the sizes in different ways. If you only need a plain image in another format, PNG to JPG and PNG to WebP are better routes.
Privacy
The conversion happens in your browser, so your logo is not uploaded.
Frequently asked questions
What size should a favicon be?
An ICO commonly contains 16, 32 and 48 pixel versions, which is what the tool ticks by default. Start from a square source of at least 256 pixels so each size can be scaled down cleanly.
Does my PNG need to be square?
It works best if it is. If it is not, the tool can either fit the whole image inside the square with transparent padding, or fill the square and crop the edges. Cropping it yourself first gives you more control.
Will transparency be kept?
Yes. Each size is made from your image with its transparent areas intact, and padding added by the Fit option is transparent too.
Why is my download not called favicon.ico?
The tool names the file after your source image. Rename it to favicon.ico before you upload it to your site root.
Can I use an SVG logo?
Not directly. Convert the SVG to a PNG first, then use that PNG in the ICO tool.
Why does my old favicon still appear?
Browsers cache favicons for a long time. Clear your cache or test in a private window, and give search engines time to refresh.
Is my logo uploaded?
No. The icon is created in your browser on your own device.