Updated March 14, 2026 · 11 min read

How to Create a Favicon: Complete Guide (2026)

A favicon is the small icon displayed in browser tabs, bookmarks, and search results next to your website's name. It is one of the smallest design elements on the web, yet it has a disproportionate impact on brand recognition and user trust. A missing or broken favicon makes your site look unfinished. A well-designed one reinforces your brand every time a user glances at their browser tabs.

This guide covers everything you need to know about favicons in 2026: what sizes you need, which file formats to use, how to add them to your HTML, and how to test that they work across every browser and device. Whether you are building your first website or updating an existing one, you will walk away with a complete, production-ready favicon setup.

At the end of this guide, you will find a free favicon generator that creates all the sizes and formats you need in seconds.

What Is a Favicon?

The word "favicon" is short for "favorite icon." It was originally introduced by Internet Explorer 5 in 1999 as the icon displayed when a user bookmarked (or "favorited") a page. Since then, favicons have become a standard part of the web, appearing in multiple places across browsers and operating systems:

Without a favicon, browsers display a generic globe or document icon. This is a missed branding opportunity and, for many users, a subtle signal that the site may be amateurish or untrustworthy.

Did you know: Google started displaying favicons in mobile search results in 2019 and expanded this to desktop results. Sites with a recognizable favicon see higher click-through rates because users develop visual familiarity with the icon.

Favicon Sizes: Every Size You Need in 2026

One of the most confusing aspects of favicons is sizing. Different browsers, devices, and operating systems request different sizes. Here is the complete list of favicon sizes you should provide, along with where each one is used:

Size Format Where It Is Used
16x16 ICO / PNG Browser tabs, address bar
32x32 ICO / PNG Taskbar shortcuts, newer browser tabs (high-DPI)
48x48 ICO / PNG Windows site shortcuts
180x180 PNG Apple Touch Icon (iOS home screen, Safari)
192x192 PNG Android Chrome home screen icon, PWA manifest
512x512 PNG PWA splash screen, Google search enriched results

The Minimum Set

If you want to cover the vast majority of use cases without overcomplicating things, provide these three files:

  1. favicon.ico (containing 16x16 and 32x32 sizes) — covers all desktop browsers, including legacy support
  2. apple-touch-icon.png (180x180) — covers all Apple devices
  3. favicon-192x192.png or a web app manifest icon — covers Android devices and PWAs

The Complete Set

For a thorough implementation that handles every edge case, add the 512x512 PWA icon and an SVG favicon for modern browsers. The SVG approach is particularly powerful because a single file scales perfectly to any size, eliminating the need for multiple PNG files on browsers that support it.

Common mistake: Using only a 16x16 favicon. When this tiny image is scaled up for home screen icons or PWA splash screens, it becomes blurry and pixelated. Always create your favicon from a high-resolution source image (at least 512x512) and scale down.

Favicon Formats: ICO vs PNG vs SVG

Three file formats dominate the favicon landscape. Each has distinct advantages, and the best strategy is to use a combination.

ICO (the classic)

The ICO format has been the favicon standard since 1999. Its unique advantage is that a single .ico file can contain multiple image sizes (16x16, 32x32, and 48x48 bundled together). The browser automatically selects the appropriate size.

If you place a file named favicon.ico in the root directory of your website, most browsers will find it automatically, even without an explicit HTML link tag. This is the fallback behavior defined by the original specification.

PNG (the modern standard)

PNG favicons offer better image quality, smaller file sizes, and full transparency support. Every modern browser supports PNG favicons, making it the preferred format for new websites.

SVG (the future)

SVG favicons are the newest addition. Because SVGs are vector graphics, a single SVG favicon scales perfectly to any size without quality loss. SVG favicons also support CSS features, including the prefers-color-scheme media query, which means your favicon can automatically adapt between light and dark mode.

Recommended approach: Use an SVG as your primary favicon for modern browsers, with an ICO fallback for legacy support and a 180x180 PNG for Apple devices. This three-file combination gives you the best of all worlds.

Generate All Favicon Formats Instantly

Upload one image and get ICO, PNG, and all sizes ready to use. Free, no signup required.

Create Your Favicon Now →

How to Create a Favicon: Step by Step

There are several ways to create a favicon, from designing one from scratch to converting an existing logo. Here are the most common approaches:

Option 1: Convert Your Logo

If you already have a logo, this is the fastest path. Keep in mind that favicons are displayed at very small sizes (as small as 16x16 pixels), so detailed logos often need simplification. Use just the icon or monogram portion of your logo, not the full wordmark. A single letter or simple symbol works best at small sizes.

  1. Start with a square version of your logo at 512x512 pixels or larger
  2. Simplify the design: remove small text, thin lines, and fine details that disappear at 16x16
  3. Export as PNG with a transparent background
  4. Use a favicon generator to create all required sizes and formats

Option 2: Design from Scratch

If you are creating a new brand or do not have a suitable logo, design a simple icon. The most effective favicons use bold shapes, high contrast, and no more than two or three colors. Here are proven patterns that work well:

Option 3: Use a Favicon Generator

A favicon generator handles the tedious parts: resizing, format conversion, and generating the HTML code. This is the recommended approach for most people. Upload a single high-resolution image, and the generator produces every file and code snippet you need.

Design tip: Test your favicon at actual size before finalizing. Zoom out to 16x16 and 32x32 pixels. If you cannot tell what the icon is at that size, simplify further. The best favicons are instantly recognizable even at the smallest sizes.

Option 4: Use an Emoji or Text-Based Favicon

For quick projects, personal blogs, or prototypes, you can use an SVG favicon generated from text or an emoji. This requires no image editing at all. Here is an example of an SVG favicon using an emoji:

<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🎯</text></svg>">

This technique is surprisingly useful for development environments or placeholder favicons while a proper icon is being designed.

How to Add a Favicon to Your HTML

Once you have your favicon files, you need to tell browsers where to find them using <link> tags in the <head> section of your HTML. Here is the complete set of tags for a thorough implementation:

<!-- Standard favicon (ICO fallback) -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">

<!-- PNG favicons -->
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">

<!-- SVG favicon (modern browsers) -->
<link rel="icon" type="image/svg+xml" href="/favicon.svg">

<!-- Apple Touch Icon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">

<!-- Web App Manifest (for PWAs and Android) -->
<link rel="manifest" href="/site.webmanifest">

The Minimal Setup

If you want the simplest possible implementation that still works well everywhere, use just these two lines:

<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

Place favicon.ico in your site's root directory. Browsers have been trained for over 20 years to look for /favicon.ico automatically, so even if the link tag is missing, most browsers will find it there.

The Web App Manifest

For Progressive Web Apps or sites that want to appear on Android home screens, create a site.webmanifest file in your root directory:

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

The manifest tells Android Chrome what icon to use when a user adds your site to their home screen, and provides the splash screen icon for PWAs.

Important: The apple-touch-icon link tag does not use type attribute. Writing <link rel="apple-touch-icon" type="image/png" ...> can cause issues on some iOS versions. Just use rel="apple-touch-icon" with sizes and href.

Apple Touch Icon: What It Is and How to Set It Up

The Apple Touch Icon is a special favicon used by Apple devices. When an iPhone or iPad user adds your website to their home screen, iOS uses the Apple Touch Icon as the app icon. Safari also uses it in its tab overview and reading list.

Requirements

HTML Implementation

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">

Name the file apple-touch-icon.png and place it in your root directory. Similar to favicon.ico, Apple devices will look for this file automatically at the root, even without a link tag. However, explicitly declaring it in your HTML is the reliable approach.

Pro tip: Do not include important content in the corners of your Apple Touch Icon. iOS rounds the corners with a radius of about 17.5% of the icon size, which means approximately 32 pixels of each corner will be clipped on a 180x180 icon.

Favicon Best Practices

Getting the technical setup right is essential, but these best practices will ensure your favicon performs well across all contexts:

1. Start with a High-Resolution Source

Always design or export your source image at 512x512 pixels or larger. Scaling down produces clean results. Scaling up from a 16x16 image produces a blurry mess. Your source file should be the highest quality version of the icon.

2. Keep It Simple

The best favicons use simple, bold shapes. At 16x16 pixels, you have 256 total pixels to work with. Fine details, thin lines, gradients, and small text become unrecognizable. Aim for an icon that is identifiable as a single shape or letter.

3. Use High Contrast

Your favicon appears against varying backgrounds: white browser chrome, dark mode toolbars, colorful bookmark bars. Use colors with strong contrast to ensure visibility in all contexts. Test your favicon against both light and dark backgrounds.

4. Make It Distinct from Competitors

Open your competitors' websites alongside yours. If your favicons look similar, users will struggle to tell the tabs apart. Choose a unique color or shape that stands out in a row of open tabs.

5. Use a Transparent Background for ICO and PNG

For browser tab favicons, use a transparent background so the icon blends naturally with the browser's tab styling. The exception is the Apple Touch Icon, which should have a solid background because iOS fills transparency with black.

6. Match Your Brand

Your favicon should be instantly associated with your brand. Use your brand's primary color and the most recognizable element of your visual identity. Consistency between your favicon, logo, and social media profile picture builds recognition.

7. Optimize File Size

Favicons should be as small as possible. A typical ICO file should be under 15 KB. PNG favicons should be under 5 KB each. Use PNG compression tools to reduce file size without visible quality loss. Every kilobyte matters because the favicon is loaded on every single page of your site.

8. Consider Dark Mode

With dark mode becoming standard across operating systems and browsers, your favicon needs to look good on dark backgrounds. If you use an SVG favicon, you can leverage CSS media queries to automatically switch colors:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
    <style>
        circle { fill: #6366f1; }
        @media (prefers-color-scheme: dark) {
            circle { fill: #a5b4fc; }
        }
    </style>
    <circle cx="50" cy="50" r="45"/>
</svg>

This SVG favicon automatically adapts its color when the user switches to dark mode, a polished detail that very few websites implement.

Create Your Favicon in Seconds

Upload an image or generate from text. Get every size and format with ready-to-paste HTML code.

Open Favicon Generator →

How to Test Your Favicon

After implementing your favicon, verify it works correctly across browsers and devices. Favicon caching is aggressive, so testing requires some specific techniques:

Browser Testing

  1. Hard refresh: Press Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac) to bypass the cache and reload the page with fresh assets.
  2. Incognito mode: Open your site in a private/incognito window. This avoids any cached favicons from previous versions.
  3. Multiple browsers: Check Chrome, Firefox, Safari, and Edge. Each handles favicon loading slightly differently.
  4. Mobile browsers: Test on actual iOS Safari and Android Chrome, not just desktop browser emulators.

Google Search Results

Google uses its own favicon cache and may take days or weeks to update. To check if Google can find your favicon, use the Google Search Console URL Inspection tool. It will show you what Google sees, including your favicon.

Google has specific requirements for favicons in search results:

Troubleshooting Common Issues

Favicon Implementation Checklist

Before you ship, verify you have covered everything:

Frequently Asked Questions

What is a favicon and why do I need one?

A favicon (short for "favorite icon") is the small icon that appears in browser tabs, bookmarks, history, and search results next to your website name. It helps users identify your site quickly among multiple open tabs and reinforces your brand identity. Without a favicon, browsers display a generic icon, making your site look unfinished and unprofessional.

What size should a favicon be?

You need multiple sizes: 16x16 for browser tabs, 32x32 for taskbar shortcuts, 180x180 for Apple Touch Icons, 192x192 for Android home screen icons, and 512x512 for PWA splash screens. At minimum, provide a 32x32 favicon.ico and a 180x180 Apple Touch Icon.

What is the best format for a favicon?

Use ICO as a universal fallback, PNG as the primary format for modern browsers, and SVG for browsers that support it. The best strategy is to provide all three: an ICO for legacy support, PNGs for specific sizes, and an SVG for infinite scalability and dark mode support.

How do I add a favicon to my HTML?

Add link tags inside your HTML head section. At minimum: <link rel="icon" href="/favicon.ico"> for the standard icon and <link rel="apple-touch-icon" href="/apple-touch-icon.png"> for Apple devices. Place the favicon files in your website's root directory.

Can I use an SVG as a favicon?

Yes, modern browsers including Chrome, Firefox, and Edge support SVG favicons. Use <link rel="icon" type="image/svg+xml" href="/favicon.svg">. SVG favicons support dark mode via CSS media queries. Always include a fallback ICO or PNG for Safari and older browsers.

How do I create a favicon for free?

Use an online favicon generator like BizToolkit. Upload an image or generate one from text, choose your sizes, and download all files with ready-to-use HTML code. No signup or payment required. Everything runs in your browser, so your files stay private.

More Free Tools for Web Developers

The favicon generator is part of BizToolkit's collection of free, privacy-first tools. No accounts, no tracking, everything runs in your browser.

Browse all free tools →

© 2026 BizToolkit. Free tools for freelancers and small businesses.