Favicon Size Guide

Favicon Size Reference Table

Below are all favicon sizes needed for various platforms and browsers. Make sure to provide at least the sizes marked as "Required".

SizeUsageFormatRequired?
16x16Browser tab iconICO / PNGRequired
32x32Browser tab (high DPI)ICO / PNGRequired
48x48Windows taskbarICORecommended
64x64Windows shortcutICOOptional
96x96Google TVPNGOptional
128x128Chrome Web StorePNGOptional
180x180Apple Touch Icon (iOS)PNGRequired (iOS)
192x192Android ChromePNGRequired (PWA)
270x270Windows 8/10 tilePNGOptional
512x512PWA splash screenPNGRequired (PWA)

Interactive Size Preview

The colored squares below are rendered at actual pixel sizes so you can visually compare each dimension.

16px
32px
48px
64px
96px
128px
180px
192px
270px

* 512x512 is too large to preview inline.

HTML Code Snippets

Add the following code to your <head> to cover favicon requirements across all major platforms.

<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">
<!-- Favicon --> <link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"> <!-- Apple Touch Icon --> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <!-- Windows Tile --> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="/mstile-270x270.png"> <!-- Theme Color --> <meta name="theme-color" content="#ffffff">
<!-- PWA Manifest --> <link rel="manifest" href="/site.webmanifest"> <!-- site.webmanifest contents: --> { "name": "My App", "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" }

Format Comparison: ICO vs PNG vs SVG

ICO

Pros: Can embed multiple sizes (16, 32, 48) in one file; universal browser support; native Windows format.

Cons: Larger file size; limited transparency in legacy versions; hard to edit.

Support: 100% of all browsers.

PNG

Pros: Full alpha transparency; sharp rendering; smaller file size; easy to create with any image tool.

Cons: Separate file per size; IE10 and earlier do not support PNG favicons.

Support: All modern browsers.

SVG

Pros: Vector-based, scales to any size; single file for all dimensions; supports dark mode via CSS prefers-color-scheme.

Cons: Safari does not support SVG favicons; complex graphics may render inconsistently.

Support: Chrome 80+, Firefox 41+, Edge 80+. No Safari.

Favicon Best Practices

1. Always provide an ICO fallback

Place favicon.ico in your site root. Browsers automatically request /favicon.ico even without a <link> tag.

2. Keep the design simple

Favicons display at tiny sizes. Complex details get lost. Use a simple, high-contrast shape or letter mark.

3. Test on dark and light backgrounds

Browser tab backgrounds vary. Ensure your favicon is visible on both dark and light backgrounds.

4. Don't forget the Apple Touch Icon

iOS uses the 180x180 apple-touch-icon when users add your site to their home screen. Without it, iOS takes a screenshot of the page.

5. Use a Web App Manifest for PWAs

If your site is a PWA, you must declare 192x192 and 512x512 icons in site.webmanifest for Android install prompts and splash screens.

6. Cache busting

Browsers aggressively cache favicons. After updating your icon, rename the file or add a version query parameter (e.g. ?v=2) to force a refresh.

7. Consider SVG favicons (modern approach)

SVG favicons support dark mode adaptation and work at any resolution from a single file. Still provide ICO/PNG as a Safari fallback.

SVG Favicon Dark Mode Example

SVG favicons can adapt to system dark/light mode using the CSS prefers-color-scheme media query:

<link rel="icon" href="/icon.svg" type="image/svg+xml"> <!-- icon.svg contents: --> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"> <style> circle { fill: #6c63ff; } @media (prefers-color-scheme: dark) { circle { fill: #a78bfa; } } </style> <circle cx="64" cy="64" r="60"/> <text x="64" y="82" text-anchor="middle" font-size="64" fill="#fff" font-family="sans-serif" font-weight="bold">A</text> </svg>

Favicon Checklist

ItemDetails
favicon.ico in root16x16 + 32x32 + 48x48 embedded in a single ICO file
PNG 16x16 & 32x32Declared with <link rel="icon">
Apple Touch Icon 180x180Declared with <link rel="apple-touch-icon">
Android icon 192x192Listed in site.webmanifest
PWA splash 512x512Listed in site.webmanifest
Windows tile 270x270Declared with <meta name="msapplication-TileImage">
theme-color setAffects mobile browser address bar color