Image Conversion
How to Make a Favicon (ICO) From a PNG or JPG: Sizes, Steps and HTML Code

A2Z Converter is a free online file converter for images, PDFs and documents. This guide covers the exact favicon sizes browsers, Google and Windows use, how to turn your logo into an ICO file with a free ICO converter, the HTML to paste, and what to do when your favicon still won't show up.
What is a favicon and what file format should it be?
A favicon is the small icon that shows in browser tabs, bookmarks, phone home screens and next to your site's name in Google results. It can be an ICO, PNG or SVG file, and most sites use a mix: an ICO for the widest support plus a PNG for phones.
| Format | What It Is | Strengths | Weak Spots | Use It For |
|---|---|---|---|---|
| ICO | An icon container that can hold several sizes in one file. | Works in every browser, old and new; one file covers 16, 32 and 48 px. | Needs a converter to create. | favicon.ico in your site root. |
| PNG | A standard image with transparency. | Easy to make, sharp, supports transparency. | One size per file. | Apple touch icon (180 px), Android icons (192 and 512 px). |
| SVG | A vector image that scales to any size. | Always crisp; can switch colors for dark mode. | Not in Google's list of supported favicon formats; older browsers ignore it. | An extra icon for modern browsers, alongside ICO. |
What size should a favicon be in 2026?
Make your master image 512×512 pixels and square, then export the smaller sizes from it. Google Search needs a square favicon of at least 8×8 pixels and recommends one larger than 48×48 pixels so it looks sharp in results.
| Size (px) | Where it shows | Format | Needed? |
|---|---|---|---|
| 16×16 | Browser tabs, bookmarks | Inside favicon.ico | Yes |
| 32×32 | Tabs on high-resolution screens, Windows taskbar shortcuts | Inside favicon.ico | Yes |
| 48×48 | Windows site shortcuts, Google results | Inside favicon.ico | Yes |
| 180×180 | iPhone and iPad home screen | PNG (apple-touch-icon) | Recommended |
| 192×192 | Android home screen | PNG (web manifest) | Recommended |
| 512×512 | Android splash screen, app installs, master file | PNG (web manifest) | Recommended |
| 256×256 | Windows desktop icons (large view) | Inside a desktop .ico | Only for desktop icons |
How do you convert a PNG or JPG to ICO?
You can turn a PNG or JPG into an ICO file in under a minute with a free online converter, with nothing to install.
- Crop your logo to a perfect square (for example 512×512 px). A non-square image gets squashed or padded.
- If you want a transparent background, save the image as a PNG with the background removed. JPG files can't be transparent.
- Open A2Z Converter's PNG to ICO converter and upload your image.
- Click Convert and download your .ico file.
- Rename it favicon.ico and check it by opening it in your browser before uploading.
How do you design a favicon that's readable at 16 pixels?
At 16 pixels you have room for one bold shape, so simplify your logo instead of shrinking it.
- Use one symbol or one or two letters. Drop taglines, thin outlines and small text; they turn into a gray smudge.
- Use strong contrast. A dark mark on a light background (or the reverse) stays visible in both light and dark browser tabs.
- Fill the square. Leave only a 1–2 pixel margin so the icon doesn't look tiny next to other tabs.
- Test it small. Zoom out until the icon is the size of a tab icon and check you can still recognize it.
How do you add a favicon in WordPress, Shopify, Wix and Squarespace?
Website builders have a favicon setting, so you upload a square PNG instead of editing code.
- WordPress: Appearance > Customize > Site Identity > Site Icon, and upload a 512×512 PNG. [Check the menu path for block themes.]
- Shopify: Online Store > Themes > Customize > Theme settings > Logo or Favicon.
- Wix: Settings > Favicon. Wix only shows a custom favicon on paid plans with a connected domain.
- Squarespace: look for the Browser Icon (favicon) setting in your site's Website or Design settings.
Why isn't my favicon showing in Google or my browser?
Most favicon problems come from browser caching, a wrong file path, or Google not having recrawled your home page yet.
| Problem | Likely Cause | Fix |
|---|---|---|
| Old icon still in the tab | Browser cache | Hard refresh (Ctrl + F5 or Cmd + Shift + R), or open the site in a private window. |
| Blank or default icon | Wrong path in the link tag | Open yoursite.com/favicon.ico directly. If it doesn't load, fix the path or upload location. |
| Not showing in Google results | Google hasn't recrawled your home page | Request indexing of your home page with the URL Inspection tool in Search Console. Recrawling can take several days to several weeks. |
| Google shows a generic globe | Favicon or home page blocked from crawling | Make sure robots.txt doesn't block the favicon file or your home page. |
| Stretched or rejected icon | Image isn't square | Re-export the image at a 1:1 ratio, with dimensions of at least 48 × 48 pixels. |
| Icon keeps reverting | Favicon URL keeps changing | Keep one stable favicon URL. |
How do you make an ICO for a Windows desktop shortcut?
Windows desktop icons use the same ICO format but need a larger 256×256 size inside the file so they look sharp at big icon views.
- Start from a square PNG of at least 256×256 pixels.
- Convert it to ICO with the PNG to ICO converter and save the file somewhere permanent, such as Documents\Icons.
- Right-click your shortcut and choose Properties.
- On the Shortcut tab, click Change Icon, then Browse, and pick your .ico file.
- Click OK, then Apply. For a folder, use Properties > Customize > Change Icon instead.
How do you check that your favicon is working everywhere?
Run a two-minute check after you upload your files, before you assume the job is done.
- Open the file directly. Visit yoursite.com/favicon.ico and yoursite.com/appletouch-icon.png. Each should load an image, not a 404 page.
- Check the tab. Open your site in a private browser window so the old cached icon can't hide the new one.
- Check a phone. On iPhone, use Share > Add to Home Screen and look at the icon. On Android, use Chrome's Add to Home screen.
- Check the code. Right-click your home page, choose View Page Source and search for "icon". You should see your link tags inside the head.
- Check Google. In Search Console, inspect your home page URL and request indexing. Then search for your brand name over the next few weeks to see the new icon.
Frequently asked questions
Can a favicon be a PNG instead of ICO?
Yes. All modern browsers accept a PNG favicon, and Google Search supports PNG too. Many sites still add a favicon.ico because older browsers and some tools look for that file name in the site root by default.
What size is favicon.ico?
A favicon.ico usually holds three sizes in one file: 16×16, 32×32 and 48×48 pixels. The browser picks the size it needs. Start from a square image of at least 48×48 pixels, ideally 512×512, before converting.
Why does my favicon look blurry?
It's usually because a large, detailed logo was shrunk to 16 pixels, or a small image was stretched up. Simplify the design to one bold shape, start from a sharp square source and include a 48×48 size in the ICO.
How long does Google take to show a new favicon?
Google says recrawling can take anywhere from several days to several weeks. You can speed it up by requesting indexing of your home page with the URL Inspection tool in Google Search Console.
Do I still need favicon.ico in 2026?
It's not strictly required, but it's still the safest choice. Browsers, RSS readers and other tools check /favicon.ico by default, so keeping one in your site root avoids missing icons and 404 errors in your logs.
Can I convert a JPG logo with a white background to a transparent ICO?
Not directly, because JPG files can't store transparency. Remove the white background first and save the logo as a PNG, then convert that PNG to ICO so the transparent background carries over.
Final Note
Creating a favicon from a PNG or JPG is a simple but important step in making your website look professional and recognizable. By choosing the correct image size, converting it into the right format, and adding the proper HTML code, you can ensure your favicon displays correctly across browsers, devices, and search results. Remember to use a clear, square design and keep your favicon URL consistent to avoid common display issues.
Convert Your Images Easily with A2Z Converter
Need to convert your logo or image into an ICO file? A2Z Converter makes image conversion quick and easy with free online tools. You can convert PNG images to ICO format without installing additional software.
Visit A2Z Converter today and explore our free online conversion tools to simplify your everyday file conversion tasks.