ImageApril 2026 · 6 min read

How to Generate a Favicon for Your Website

A favicon is the small icon that appears in browser tabs, bookmarks, and search results. In 2026, websites need favicons in multiple sizes and formats for different devices and contexts — browser tabs, iOS home screen, Android PWA icons, and Windows tiles. Generating all of them from a single source image is the standard workflow.

Try the Favicon Generator
Free, no signup
DG
Derek Giordano
Designer & Developer
In this guide
01Required Favicon Sizes in 202602Preparing Your Source Image03HTML Meta Tags for Favicons04Testing Your Favicon
⚡ Key Takeaways
  • Create favicons in all required sizes and formats.
  • Covers required favicon sizes in 2026.
  • Covers preparing your source image.
  • Covers html meta tags for favicons.
  • Covers testing your favicon.

Required Favicon Sizes in 2026

The minimum set for full coverage: favicon.ico (32×32, for legacy browsers), favicon-32x32.png (modern browsers), favicon-16x16.png (small tab contexts), apple-touch-icon.png (180×180, iOS home screen), favicon-192x192.png (Android Chrome), favicon-512x512.png (PWA splash screens). The Favicon Generator produces all of these from a single upload.

Preparing Your Source Image

Start with a square image at least 512×512 pixels. SVG is ideal — it scales without quality loss. PNG works well at 512×512 or higher. The icon must be recognizable at 16×16 pixels, which means simple shapes and high contrast. Detailed logos, thin lines, and small text won't survive the reduction. Test your design at 16×16 before committing.

💡 Tip
Use 3+ color stops instead of 2 to avoid the muddy gray band that appears in the center of complementary-color gradients.

HTML Meta Tags for Favicons

Add these to your :

⚠ Warning
CSS gradients used as backgrounds cannot be animated with standard transitions. Use background-size animation or @property registered custom properties instead.

The site.webmanifest file references the 192×192 and 512×512 icons for Android PWA installation.

Testing Your Favicon

After deployment, check: the browser tab shows the correct icon, iOS 'Add to Home Screen' shows the apple-touch-icon, Google Search results show the favicon next to your URL, and the favicon appears in bookmark lists. Clear your browser cache if you've updated an existing favicon — browsers aggressively cache favicons.

Frequently Asked Questions

What size should a favicon be?+
You need multiple sizes: 16×16 and 32×32 for browsers, 180×180 for iOS, 192×192 and 512×512 for Android/PWA. Start with a 512×512 source image and generate all sizes from it.
What format should a favicon be?+
PNG is the modern standard. ICO is only needed for legacy browser support. SVG favicons are supported in Chrome and Firefox but not Safari. Use PNG for the broadest compatibility.
How do I add a favicon to my website?+
Place the favicon files in your site's root directory and add tags to the of every page. Use the Favicon Generator to create all sizes and get the HTML meta tags.
Try it yourself

Use the Favicon Generator — free, no signup required.

⚡ Open Favicon Generator
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.
⚡ Try the free Favicon Multi-Format Generator →