Skip to content
dashutils

Images

How to Make a Favicon from a PNG (and Get It Showing in Google)

Turn a PNG logo into favicon.ico and the icons phones use, paste the right HTML, and meet Google's rules so your icon replaces the grey globe in search.

Photo of Muhammad AfanMuhammad Afan · · 5 min read

A PNG logo turned into favicon.ico at 16, 32 and 48 pixels, shown next to a search result

Key takeaways

  • Start with a square PNG of at least 512 × 512 pixels. Every smaller icon is made from it.
  • A favicon.ico with 16, 32 and 48 pixel sizes covers browser tabs. Add a 180-pixel Apple touch icon and 192 and 512-pixel icons for phones' home screens.
  • Google Search needs a square icon of at least 8 × 8 pixels and recommends larger than 48 × 48. The "must be a multiple of 48" rule you'll read online isn't in Google's current documentation.
  • Google doesn't use SVG favicons in search results. If your only icon is an SVG, add an ICO or PNG as well.
  • Expect days to weeks before the icon appears in Google. On our own site it took about 12 days.

A favicon is the small icon in browser tabs, bookmarks and, increasingly important, next to your site's name in Google results. Without one, Google shows a generic globe, which makes a result look less trustworthy. Here's how to make a complete set from one PNG, and how to get Google to show it.

Step 1: Prepare the PNG

Your source image decides how good every icon looks.

  • Square. If your logo is wide, use the image cropper to cut a square around the symbol or first letter. A full wordmark is unreadable at 16 pixels.
  • At least 512 × 512 pixels. Shrinking a large image looks sharp; enlarging a small one looks blurry. If you only have an SVG logo, export it at 512 pixels with SVG to PNG.
  • Simple. At 16 pixels you have 256 dots to work with. Bold shapes and one or two letters survive; thin lines, small text and fine detail don't.
  • A bit of padding. Leave a small margin so the shape doesn't touch the edges.

Transparent or solid background?

A transparent background lets the icon sit on any colour, but check it on both light and dark backgrounds. A dark logo with no background can almost disappear in a dark browser theme or in dark-mode search results. A solid rounded square behind the symbol, as on our own icon, looks the same everywhere. To remove an existing background, use the background remover.

Step 2: Make the icons

You have two options, depending on what you need.

The full set (recommended for websites). The favicon generator takes one image and gives you:

File Size Used by
favicon.ico 16, 32 and 48 px in one file Browser tabs, bookmarks, Google Search
favicon-16x16.png, favicon-32x32.png 16 and 32 px Browsers that prefer PNG
apple-touch-icon.png 180 px iPhone and iPad home screens
android-chrome-192x192.png, -512x512.png 192 and 512 px Android home screens and installed web apps
site.webmanifest – Tells phones which icons to use

It also writes the HTML to paste into your page.

Just an ICO file. If you only need favicon.ico, for example to replace an old one, the PNG to ICO converter builds it with the sizes you tick. 16, 32, 48 and 256 pixels are selected by default; the 256-pixel size is what Windows uses for large desktop shortcuts.

An ICO is a container that holds several sizes of the same picture, so the browser picks the sharpest one for each place. Our own favicon.ico holds 16, 32 and 48 pixel versions and is just 4 KB, so there's no performance reason to skip it.

Both tools run in your browser; the logo isn't uploaded.

Step 3: Add the HTML

Upload the files to the root of your site, so that https://yoursite.com/favicon.ico opens the icon. Then put these lines inside the <head> of your home page (and ideally every page):

<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">

Relative paths like /favicon.ico are fine. Google's documentation accepts relative, absolute or CDN addresses, so you don't need to write out the full domain.

On common platforms

  • WordPress: go to Appearance › Customize › Site Identity › Site Icon and upload a square image of at least 512 × 512 pixels. WordPress creates the sizes and the HTML for you.
  • Next.js (App Router): put favicon.ico, icon.png and apple-icon.png in the app folder. Next.js adds the tags automatically.
  • Shopify, Wix, Squarespace: each has a favicon setting in the site or theme settings; upload the square PNG there.

Google picks the favicon from your home page, and only one per site (per hostname, so blog.example.com can have its own). According to Google's favicon guidelines, last updated in October 2026:

  • Shape and size: square, at least 8 × 8 pixels; Google recommends larger than 48 × 48 so it looks good everywhere.
  • Formats: BMP, GIF, ICO, PNG, JPEG, PPM and TIFF. SVG isn't in the list, so a site whose only icon is an SVG won't get one in Search.
  • The tag: rel="icon", rel="apple-touch-icon" or rel="apple-touch-icon-precomposed" (shortcut icon still works for historical reasons).
  • Crawling: Googlebot must be able to fetch your home page and Googlebot-Image the icon file. Don't block either in robots.txt.
  • Stable address: don't keep changing the icon's URL.

Once that's in place, open Search Console, inspect your home page with the URL Inspection tool, and click Request indexing. Then wait. Google says recrawling takes anywhere from several days to several weeks, and that a favicon isn't guaranteed to appear even when everything is right.

What happened on our site

DashUtils launched on 19 October 2026 with the icon set described above. Pages started appearing in Google within a day or two, all with the grey globe. Our icon replaced it on every result at once, about 12 days after launch, with no code changes in between. Google's own favicon service had already fetched the icon before it showed up in search results, so the delay was Google's refresh, not a setup problem.

If yours is still a globe after a few weeks, check:

  1. The <link rel="icon"> tag is in the HTML of your home page (view the page source, not just the browser tab).
  2. Opening the icon's address directly loads the image with no redirect or login.
  3. robots.txt doesn't block the icon or the folder it's in.
  4. The icon is square and in one of the supported formats.

Frequently asked questions

What size should a favicon be?

Make the source 512 × 512 pixels, then create a favicon.ico with 16, 32 and 48 pixel sizes, a 180-pixel Apple touch icon and 192 and 512-pixel icons for Android. For Google Search the icon must be square and at least 8 × 8 pixels, and larger than 48 × 48 is recommended.

Does Google require a favicon that's a multiple of 48 pixels?

Not any more. Google's current guidelines only require a square icon of at least 8 × 8 pixels and recommend going larger than 48 × 48. A favicon.ico that includes a 48-pixel size meets that.

Can I use an SVG as a favicon?

Modern browsers show SVG favicons in tabs, but Google Search doesn't support SVG. Keep a favicon.ico or PNG icon alongside it.

Should I use ICO or PNG?

Both. favicon.ico is the most widely supported and can hold several sizes in one file; PNG icons cover Apple and Android home screens and browsers that prefer them.

Why does Google still show a globe instead of my favicon?

Usually because Google hasn't recrawled your home page since you added it, which can take several weeks. If it's been longer, check that the tag is on your home page, the icon loads directly, robots.txt allows it and the file is square and not an SVG.

Photo of Muhammad Afan

Written by

Muhammad Afan

Founder & Software Engineer, DashUtils

Software engineer who builds and tests every tool on DashUtils. He writes the guides from conversions he runs himself, so the numbers you read are numbers he measured.

More guides

All guides