How to Add a Favicon to Your Website (HTML, WordPress, Blogger, Shopify)

By the DocEpic team · Updated · 2 min read

The favicon is the little icon in the browser tab, in bookmarks and on a phone's home screen. A site without one looks unfinished and is harder to find among open tabs. Browsers and phones each want different sizes; here is how to make them all from one logo and add them to your site.

Make all the sizes

Favicon Generator turns one logo into favicon.ico (16, 32 and 48 px inside), PNG icons for tabs, the iPhone home screen (180 px) and Android (192 and 512 px), a site.webmanifest, and the lines to paste into your page — in one ZIP.

  1. Open Favicon Generator and add your logo — square, at least 512 px, ideally PNG or SVG.
  2. Choose fit, padding, background and rounded corners; the preview shows the real sizes.
  3. Download the ZIP.

If your logo is only a small or blurry picture, trace it into a sharp vector with Image to SVG first.

Add it to a website you edit yourself

Upload all the files to the main folder of your website (the one with your home page), then paste the lines from add-to-head.html inside the <head> of every page, or of your site's shared header template.

WordPress, Blogger, Shopify and Wix

Website builders have their own setting and usually want one square image; use android-chrome-512x512.png from the ZIP. Menus change between versions, but this is where it usually is:

Platform Where to set it
WordPress Appearance → Customize → Site Identity → Site Icon
Blogger Layout → Favicon → Edit
Shopify Online Store → Themes → Customize → Theme settings → Favicon
Wix Settings → Website settings → Favicon

If the old icon still shows

Browsers keep favicons for a long time. Open your site in a private window to see the new one, or clear the browser's cache. Google Search can take a few weeks to show a new favicon in results.

Questions people ask

What size should a favicon be?

Provide several: 16, 32 and 48 px inside favicon.ico, 180 px for iPhones and 192 and 512 px for Android. Favicon Generator makes all of them.

Can a favicon be an SVG?

Most current browsers accept an SVG favicon, but older ones and iPhones don't, so keep the PNG and ICO files too.

Why doesn't my favicon show in Google?

Google needs to crawl your home page again, and the icon must be at least 48 px and square. It can take a few weeks.