Favicon Creation Guide: ICO, PNG, SVG — What You Need in 2026
The Evolution of Favicons
Favicons started as simple 16x16 pixel ICO files displayed in browser tabs. Today, they serve many purposes: browser tabs, bookmarks, home screen shortcuts, task switchers, Windows tiles, and search results. A complete modern favicon setup requires multiple formats and sizes.
Required Favicon Formats
ICO (Internet Explorer Legacy)
The ICO format remains relevant because it can contain multiple sizes in a single file. A standard ICO file includes 16x16, 32x32, and 48x48 pixel versions. The browser selects the most appropriate size for the context. While modern browsers support PNG and SVG favicons, ICO provides the broadest compatibility.
Structure: An ICO file is a container with a directory header listing each embedded image. Each image can be a BMP or PNG. Modern ICO generators use PNG for the embedded images to achieve smaller file sizes.
SVG Favicon
SVG favicons are the modern standard. A single SVG file works perfectly at any size, looks sharp on any display, and typically has a tiny file size. SVG favicons also support the prefers-color-scheme media query, allowing different favicon colors for light and dark mode.
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
PNG Favicons
PNG favicons serve specific size requirements:
- 16x16 — Browser tab (standard density)
- 32x32 — Browser tab (retina/HiDPI), Windows taskbar
- 48x48 — Windows desktop shortcuts
- 180x180 — Apple Touch Icon (iOS home screen)
- 192x192 — Android Chrome web app icon
- 512x512 — Android Chrome splash screen, PWA install dialog
The Complete HTML Setup
<!-- SVG favicon (modern browsers, supports dark mode) -->
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<!-- ICO fallback (legacy browsers) -->
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<!-- Apple Touch Icon (iOS home screen) -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<!-- Web App Manifest (Android, PWA) -->
<link rel="manifest" href="/manifest.json">
Web Manifest Icons
The web manifest (manifest.json) specifies icons for Progressive Web App installation:
{
"icons": [
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" },
{ "src": "/icons/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
]
}
The "maskable" icon includes extra padding so Android can apply its circular, rounded-square, or other shape masks without cutting off important content.
Design Best Practices
- Keep it simple — favicons are tiny; complex details are lost at 16x16
- Use bold shapes and colors — they need to be recognizable at a glance
- Test at all sizes — what looks good at 512px may not work at 16px
- Consider dark mode — ensure visibility on both light and dark backgrounds
- Use your brand mark, not your full logo — text is illegible at favicon sizes
- Start with SVG — design in vector, then export raster sizes from the same source
- Test in context — preview your favicon in an actual browser tab alongside competitor sites
Generating Favicons
Browser-based ICO converter tools can generate multi-size ICO files from a single source image. Upload a high-resolution PNG or SVG, select your target sizes (16, 32, 48 pixels), and download a ready-to-use ICO file. The best tools handle the binary ICO container format correctly, embedding PNG-compressed images for optimal file size.