Favicon Sizes and How to Add Them to Your Website

By the JrodCode team · Updated

A favicon is the small icon in a browser tab, bookmark bar and history list. It's also the icon Google can show next to your site in search results, and the one people see when they add your site to their phone's home screen. You don't need dozens of files for this. In 2026 a handful of well-chosen sizes covers every browser and device. Here's the short list, the HTML to add it, and the details that trip people up.

The favicon sizes you actually need

FileSizeUsed by
favicon.ico16, 32 and 48 px in one fileBrowser tabs, bookmarks, Windows shortcuts, tools that request /favicon.ico automatically
favicon-32x32.png32 × 32Browser tabs on high-density screens
favicon-16x16.png16 × 16Older browsers and small UI spots (optional)
apple-touch-icon.png180 × 180iPhone and iPad "Add to Home Screen", Safari pinned tabs and bookmarks
android-chrome-192x192.png192 × 192Android home screen shortcut, installed web apps
android-chrome-512x512.png512 × 512Splash screens and app install dialogs
site.webmanifest—Lists the 192 and 512 icons, your site name and colors

Start from a square image of at least 512 × 512 pixels, ideally exported from vector artwork. A favicon has to be readable at 16 pixels, so a detailed logo with a wordmark usually won't survive. Use your logomark or a single bold letter instead.

Transparency: tab favicons can be transparent, but make sure the shape still reads on both light and dark browser themes. The Apple touch icon should be opaque, because iOS fills transparent areas with black, which rarely looks intentional. Our generator flattens that one file onto your chosen background color.

The HTML to add to your site

Upload the files to the root of your website so they're served at https://yoursite.com/favicon.ico and so on. Then paste this inside the <head> of every page, or of your site template:

<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">
<meta name="theme-color" content="#ffffff">

The download from our generator includes this snippet as favicon-snippet.html, with your background color filled in. On WordPress, you can upload a 512 px image under Appearance → Customize → Site Identity → Site Icon, and WordPress outputs the main tags for you. On Shopify, Squarespace and Wix, use the favicon setting in the theme or site settings.

The web app manifest

The manifest is a small JSON file that tells browsers your site's name, colors and larger icons. A minimal version looks like this:

{
  "name": "Your Business Name",
  "short_name": "Business",
  "icons": [
    { "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
  ],
  "theme_color": "#ffffff",
  "background_color": "#ffffff",
  "display": "standalone"
}

Edit name and short_name before uploading. The short name appears under the icon on a phone's home screen, so keep it to about 12 characters.

PWA and maskable icons

If your site is a Progressive Web App, Android and other platforms may crop its icon into a circle, a squircle or another shape. A regular icon with the logo touching the edges gets its corners cut off. A maskable icon fixes this. According to web.dev, the important part of the icon must sit inside a circle centered in the icon with a radius of 40% of the icon width, and the outer 10% may be cropped. Maskable icons should be fully opaque, so fill the background with your brand color.

List both versions in your manifest and mark the maskable ones with "purpose": "maskable":

{ "src": "/maskable-icon-512x512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }

To test, open your site in Chrome, go to DevTools → Application → Manifest, and use the option to show only the minimum safe area for maskable icons. Our generator's PWA option produces 192 and 512 px "any" and "maskable" icons, with your artwork scaled to the central 80%, plus a ready-made manifest-icons.json.

Getting your favicon into Google Search

Google shows a favicon next to many search results. Its Search Central documentation sets out the requirements:

  • Add a <link rel="icon"> (or apple-touch-icon) tag to your home page.
  • The favicon must be square and at least 8 × 8 pixels. Google recommends larger than 48 × 48.
  • Googlebot must be able to crawl your home page and Googlebot-Image must be able to crawl the icon file. Don't block either in robots.txt.
  • Keep the favicon URL stable, and use one favicon per hostname. Subdirectories share the site's icon.
  • It should visually represent your brand. Google replaces inappropriate icons with a default.

After you change your favicon, request indexing of your home page in Google Search Console. Expect the update to take anywhere from a few days to a few weeks.

Common favicon mistakes

  • Using a wide logo. Favicons are square, and a horizontal wordmark becomes an unreadable sliver.
  • Forgetting dark mode. A black icon on a transparent background disappears on dark browser tabs. Add a light outline or a solid background.
  • Wrong paths. Uploading the files to a subfolder but linking to /favicon.ico causes 404s. Open each URL directly to check.
  • Testing in a cached browser. Browsers keep old favicons for a long time, so test in a private window.

Building a native app as well? See our guides to iOS icon sizes and Android icon sizes, or generate your favicons for free.

Frequently asked questions

What size should a favicon be?

Ship a favicon.ico that contains 16, 32 and 48 pixel images, a 32 × 32 PNG, a 180 × 180 Apple touch icon, and 192 × 192 and 512 × 512 PNGs referenced from your web manifest. Start from a square image of at least 512 × 512 pixels.

What favicon size does Google Search use?

Google requires a square favicon of at least 8 × 8 pixels but recommends one larger than 48 × 48 pixels so it looks good everywhere. It also needs to be linked from your home page and crawlable by Googlebot.

Do I still need favicon.ico in 2026?

It is still worth including. Browsers and many other tools request /favicon.ico automatically when no icon is declared, and a single .ico file can hold several sizes. Modern browsers also use the PNG icons from your link tags and manifest.

Why is my new favicon not showing?

Browsers cache favicons very aggressively. Hard-refresh the page or open it in a private window, and check that the files return a 200 status at the URLs in your link tags. Google Search can take days or weeks to pick up a change.

What is a maskable icon?

A maskable icon is a PWA icon with extra padding on a solid background, so Android and other platforms can crop it into a circle, squircle or other shape without cutting off your logo. Keep the logo inside the central circle whose radius is 40% of the icon width.