NewProfiles are here!View user profiles guide
Back to Blog
TutorialsWeb DevelopmentTips & Tricks

How to Create a Favicon from Any Image — Complete Guide for Every Browser

December 8, 2025 8 min read 1 views

A favicon is the small icon that appears in browser tabs, bookmarks, and search results. Creating one from an existing image requires specific sizes, formats, and considerations. Here's everything you need to know.

Quick Takeaways

  • Favicon Formats and Sizes Explained
  • ICO Format (Traditional)
  • PNG Format (Modern Standard)
  • SVG Format (Cutting Edge)

A favicon (short for "favorite icon") is the tiny image that represents your website across the browser interface — in tabs, bookmark bars, browser history, and increasingly in search engine results. Despite being physically small (typically 16×16 to 32×32 pixels in tab display), favicons have an outsized impact on brand recognition and usability. Users scanning through dozens of open tabs rely heavily on favicons to identify websites.

Creating a favicon from an existing image — whether it's a logo, icon, or graphic — requires understanding the technical requirements of modern browsers and devices. This guide covers everything from basic ICO creation to the full set of icons modern web apps need.

Favicon Formats and Sizes Explained

ICO Format (Traditional)

The ICO format has been the favicon standard since Internet Explorer 5 introduced favicons in 1999. An ICO file is actually a container that can hold multiple image sizes in a single file. A typical favicon.ico contains:

  • 16×16: Browser tab icon
  • 32×32: Taskbar icon, shortcut icon
  • 48×48: Windows site icon

All modern browsers still support ICO, making it the safest choice for maximum compatibility. Place it at /favicon.ico in your site root — browsers automatically look for this file.

PNG Format (Modern Standard)

Modern browsers support PNG favicons, which offer better quality at the same file size. You can specify multiple PNG favicons for different sizes using <link> tags in your HTML:

<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 Format (Cutting Edge)

SVG favicons scale perfectly to any size and support CSS features like dark mode adaptation. Browser support is excellent in 2026 (Chrome, Firefox, Safari, Edge all support it):

<link rel="icon" type="image/svg+xml" href="/favicon.svg">

SVG favicons can use CSS media queries to change colors in dark mode — a feature exclusively available to SVG. If your logo is already in SVG format, this is the cleanest option.

Apple Touch Icon (iOS)

When iOS users add your website to their home screen, Safari uses the Apple Touch Icon. This needs to be a PNG at 180×180 pixels:

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

iOS automatically rounds the corners and adds effects. Design the icon with this in mind — keep important elements away from edges and corners.

Web App Manifest Icons (Android/PWA)

For Progressive Web Apps and Android "Add to Home Screen," you need icons defined in your web app manifest (manifest.json):

{
  "icons": [
    { "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
  ]
}

The Complete Set of Icons You Need

For full cross-browser and cross-device coverage in 2026, here's the complete list:

FileSizePurpose
favicon.ico16×16, 32×32, 48×48Legacy browser support
favicon.svgScalableModern browsers, dark mode support
favicon-16x16.png16×16Tab icon (fallback)
favicon-32x32.png32×32Taskbar, retina tabs
apple-touch-icon.png180×180iOS home screen
icon-192.png192×192Android home screen, PWA
icon-512.png512×512PWA splash screen, big icon

That's 7 files, but you can get away with as few as 2 (favicon.ico + apple-touch-icon.png) for most websites.

Step-by-Step: Creating a Favicon from an Image

Step 1: Prepare Your Source Image

Start with the highest quality version of your image. Ideally:

  • Square: Favicons are square. If your image isn't square, you'll need to crop it.
  • Simple: Complex images become unrecognizable at 16×16 pixels. Use a logo mark, initial, or simple symbol — not a full wordmark or detailed photo.
  • High contrast: The icon needs to be identifiable against both light and dark browser chrome.
  • Large source: Start with at least 512×512 pixels (for PWA icons) and scale down.

If your source image isn't square, resize it to a square aspect ratio first. Add padding if needed to prevent important details from being cut off.

Step 2: Crop to a Square

If your image has extra whitespace or isn't centered, crop it to a tight square around the main subject. At 16×16 pixels, every pixel matters — unnecessary margin wastes valuable space.

Step 3: Test at Small Sizes

Before creating the final favicon, preview your image at 16×16 and 32×32 pixels. Open it in any image editor and zoom to actual size. Ask yourself:

  • Can you tell what it is?
  • Are the main colors visible?
  • Does it look distinct from common website favicons?

If the answer to any question is "no," simplify the image further. Remove details, increase contrast, use bolder lines or shapes.

Step 4: Create Multi-Size PNG Files

From your source image, create the following PNG files. Use an image editor (Photoshop, GIMP, Figma) or an online image resizer:

  1. 512×512 PNG (PWA icon)
  2. 192×192 PNG (Android/PWA)
  3. 180×180 PNG (Apple Touch Icon)
  4. 48×48 PNG (for ICO generation)
  5. 32×32 PNG (standard favicon)
  6. 16×16 PNG (smallest favicon)

When downscaling, use your editor's best resampling method (bicubic or Lanczos). For pixel-art style icons, use nearest-neighbor to maintain sharp edges.

Step 5: Generate the ICO File

An ICO file is a container with multiple sizes. You can create one using:

  • GIMP (free): Open your largest PNG → Image → Scale Image to 48×48 → Export As → select .ico → in export dialog, add 16×16 and 32×32 layers
  • ImageMagick (command line): convert favicon-16.png favicon-32.png favicon-48.png favicon.ico
  • Online tools: realfavicongenerator.net or favicon.io

Step 6: Add to Your Website

Place the icon files in your site root (or a subdirectory) and add the following to your <head>:

<!-- Favicon -->
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.json">

This gives you:

  • ICO for legacy browsers
  • SVG for modern browsers (with dark mode support if you added CSS)
  • Apple Touch Icon for iOS
  • Manifest icons for Android/PWA

Design Tips for Effective Favicons

Use Your Logo Mark, Not Your Wordmark

If your logo includes both a symbol and text (e.g., the GitHub octocat + "GitHub"), use only the symbol for the favicon. Text becomes illegible below roughly 64×64 pixels.

Use a Bold, Distinctive Color

Your favicon is tiny. A distinctive background or foreground color helps users spot it instantly. Think of Slack's purple, YouTube's red play button, or Twitter/X's icon — recognizable at any size because of their bold, unique color.

Add a Solid Background

Transparent backgrounds work technically, but they look different in light vs. dark browser themes. A solid background ensures your icon looks consistent everywhere. If you want transparency, test how it looks against both white and dark gray backgrounds.

Consider Pixel Hinting at Small Sizes

For the 16×16 version, manually adjusting individual pixels (pixel hinting) can dramatically improve clarity. A 1-pixel stroke that falls between pixel boundaries looks blurry; shifting it to align with the pixel grid makes it crisp.

Test in Context

View your favicon in a real browser tab alongside other website favicons. Does it stand out? Does it represent your brand? Test in:

  • Chrome (light and dark mode)
  • Safari on macOS
  • Firefox
  • Mobile Safari (home screen icon)

Common Mistakes

Using a Full-Size Photo

Photos do not work as favicons. The detail is completely lost at 16×16 or even 32×32 pixels. Always use a simplified graphic, logo mark, or letterform.

Only Creating One Size

A single 16×16 ICO file was sufficient in 2005. In 2026, you need multiple sizes for high-DPI screens, iOS home screens, Android PWA, and Windows taskbar. At minimum, provide 16, 32, 180, and 512.

Forgetting favicon.ico

Even if you specify PNG and SVG favicons in your HTML, some tools and services still look for /favicon.ico at the root. Always include it as a fallback. Many bots, RSS readers, and older software exclusively request /favicon.ico.

Massive File Sizes

A favicon.ico should be under 100 KB. PNG favicons should be well under 50 KB each. If your ICO file is 500 KB or your PNG is a multi-megabyte file, you're serving an unoptimized image. Compress your favicon images before deployment.

Hosting Favicon Files

Favicons are typically served from your own domain. However, for testing, prototyping, or situations where you're using a hosted website builder without file system access, you can host favicon files externally.

Upload your favicon PNG files to ImgLink and reference the direct URLs in your HTML <link> tags. Since ImgLink serves files via CDN, the favicons will load quickly globally. Note that the ICO file format and /favicon.ico root URL convention require self-hosting — external hosting works best for the PNG and SVG variants.

A well-crafted favicon is one of the smallest yet most impactful elements of your web presence. Take the time to create proper multi-size files from a clean source image, and your website will look professional across every browser, device, and platform.

Apply This Workflow on ImgLink

ImgLink is built for the exact workflow covered in this guide: fast uploads, permanent direct links, Cloudflare CDN delivery, and no-signup sharing when you need to move quickly. If you want to turn the advice above into a repeatable publishing system, start with one canonical hosted image URL and reuse it across docs, posts, forums, and social channels.

Recommended Next Steps

Use these related resources to keep building the same workflow across adjacent image-hosting topics:

Need permanent image hosting?

Upload images with permanent direct links, fast CDN delivery, and no signup required. Use ImgLink for the workflows this guide discusses.

Comments