🍋
Menu
How-To Beginner 2 min read 321 words

Favicon Generator Best Practices for All Platforms

Generate a complete favicon set for browsers, mobile devices, and PWAs from a single source image.

Generating Favicons

A complete favicon set ensures your site icon appears correctly across all browsers, operating systems, and contexts — from browser tabs to mobile home screens to desktop shortcuts.

Required Favicon Files

favicon.ico (32×32): legacy browser tabs and bookmarks. icon.svg: modern browsers that support SVG favicons with dark mode adaptation. apple-touch-icon.png (180×180): iOS home screen and Safari. icon-192.png: Android Chrome and PWA. icon-512.png: PWA splash screens and high-DPI devices. A web manifest file (manifest.webmanifest) references the PNG icons for PWA installation.

Design Constraints

Favicons display at tiny sizes — 16×16 to 32×32 pixels in browser tabs. Detail gets lost. Use simple shapes, bold colors, and strong contrast. Text is unreadable at favicon sizes unless it's a single letter with heavy weight. Test at actual display size, not zoomed in. What looks good at 512×512 may be an unrecognizable blob at 16×16.

SVG Favicon Benefits

SVG favicons scale perfectly to any size. More importantly, they can adapt to dark mode using CSS prefers-color-scheme media queries inside the SVG. A dark logo on a light background in light mode, switching to a light logo on a dark background in dark mode. Browser support for SVG favicons is excellent in modern browsers.

Generation From Source

Start with a 512×512 PNG or SVG source image. Browser-based generators produce all required sizes and the HTML markup. The generator should create the ICO file (which can contain multiple sizes internally), the Apple touch icon with proper padding (Apple adds rounded corners automatically — don't include them in the source), and the manifest file.

Common Mistakes

Including rounded corners in Apple touch icons (iOS adds them automatically — your pre-rounded corners create a double-rounded effect). Using transparency in apple-touch-icon.png (iOS replaces transparency with black). Forgetting the manifest.webmanifest file (PWA installation won't show your icon). Using the same image for all sizes without optimizing for small display (simplify the design for 16×16).

Ilgili Araclar

Ilgili Formatlar

Ilgili Rehberler