Article
How to Make a Favicon from a PNG
A favicon is a small graphic that browsers display in tabs, bookmarks, and history lists. Getting it right involves more than resizing a logo: the .ico container packs multiple resolutions into one file, modern browsers favor crisp PNGs, mobile devices need an apple-touch-icon, and web app manifests require dedicated tiles. This guide breaks down each standard and explains how to produce the complete set directly in your browser without uploading your assets.
How to Make a Favicon from a PNG
- What a favicon is and where browsers use it
- The .ico container: multiple resolutions in one file
- Designing for tiny sizes: simplify the mark
- The modern set: .ico, PNG icons, apple-touch-icon, manifest, and HTML link tags
- Doing it locally: Favicon Generator keeps your image on your device
- Tools in this article
- Frequently asked questions
What a favicon is and where browsers use it
The word favicon is a contraction of "favorite icon". Browsers first displayed it in the address bar in Internet Explorer 5 (1999), then adopted it for bookmarks. Today it appears in browser tabs, the bookmarks toolbar, browsing history, the new-tab page on some browsers, and operating system taskbars when a site is pinned. On mobile, if a user adds a site to their home screen, the device uses a related but distinct image called the apple-touch-icon rather than the standard favicon. Search engines sometimes show favicons next to results in their interface. The graphic is small by design, which makes it effective for quick visual identification but also demanding to produce well: at 16x16 pixels, a detailed logo becomes an indistinct smear. The favicon file itself has gone through several formats over the decades, with .ico remaining the most broadly compatible and PNG now the modern default for most browsers.
| Feature | favicon.ico (Multi-Layer) | icon.svg (Vector) | apple-touch-icon.png | PWA Web Manifest Icons |
|---|---|---|---|---|
| Dimensions | 16x16, 32x32, 48x48 px | Vector (Scalable Any Size) | 180x180 px | 192x192 & 512x512 px |
| Format / MIME Type | image/x-icon (ICO) | image/svg+xml | image/png | image/png (maskable) |
| Platform / Consumer | Legacy Browsers & Bookmarks | Modern Desktop (Chrome/Safari/FF) | iOS Safari Home Screen | Android PWA & Chrome Banner |
| Dark Mode Adaptation | No | prefers-color-scheme in CSS | No | No |

The .ico container: multiple resolutions in one file
The .ico format is a container, not a single image. A single .ico file can hold multiple bitmap images at different resolutions, each stored as a separate entry in an index at the start of the file. The three most common sizes are 16x16, 32x32, and 48x48 pixels. When Windows displays a favicon in Explorer or on the taskbar, it picks the entry that matches the display context best. Older Windows versions needed a 48x48 entry for high-density taskbar slots. Browsers request the favicon at 16x16 for tabs but may use a larger entry if a higher-density display is detected. Packing all three sizes into one .ico file means a single HTTP request covers every use case. Distributing them as separate PNGs is also valid but requires extra link tags and adds HTTP requests. The internal images inside an .ico file are standard BMP or PNG data, so the container adds only a small header overhead per entry.
| Feature | HTML Header Tag | Cache-Busting Strategy | Root Directory Fallback |
|---|---|---|---|
| Markup Reference | <link rel="icon" href="/icon.svg"> | href="/favicon.ico?v=20261101" | https://example.com/favicon.ico |
| Browser Request Logic | Prioritizes SVG over ICO | Forces 304 / 200 HTTP Re-fetch | Requested by default by crawlers |
| Local Generation Method | Canvas 2D Offscreen Draw | Pure JS PNG/ICO Binary Encoder | Zero-Upload Local Processing |
Designing for tiny sizes: simplify the mark
At 16x16 pixels you have 256 pixels total. A typical logotype with a wordmark or fine details becomes illegible at that size. The standard approach is to create a simplified mark: a single letter, an abstract shape, or an icon that represents the brand without relying on detail. A few specific problems to anticipate: thin strokes disappear entirely at small sizes, especially on non-retina screens. Letter pairs and negative-space details merge into gray noise. Gradients become barely visible. High contrast between the mark and its background is the single biggest factor in legibility. A solid shape on a plain background almost always reads better than a detailed illustration at 16x16. The 32x32 and 48x48 sizes are more forgiving and can support a bit more detail, but the 16x16 version should be treated as the binding constraint. If the mark still does not read at 16x16, the design needs further simplification.

The modern set: .ico, PNG icons, apple-touch-icon, manifest, and HTML link tags
A complete favicon setup for a public site currently needs five things. First, a favicon.ico at the root of the site (browsers request /favicon.ico directly without a link tag as a fallback). Second, a 32x32 PNG for modern desktop browsers, declared with a link tag: <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">. Third, a 16x16 PNG for the tab size: <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">. Fourth, an apple-touch-icon at 180x180 pixels for iOS home screen bookmarks: <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">. Fifth, a web app manifest (site.webmanifest) with a 192x192 and a 512x512 PNG for Android and progressive web apps. Transparency is supported in PNG and in the PNG-encoded entries inside .ico, though the apple-touch-icon should have an opaque background because iOS ignores the alpha channel and fills transparent areas with black.
Doing it locally: Favicon Generator keeps your image on your device
The Favicon Generator on this site accepts PNG, SVG, JPEG, WebP, or AVIF images (or builds a custom emoji or text badge icon) and center-crops non-square inputs to a square before scaling. It bundles a multi-resolution favicon.ico packed with 16x16, 32x32, and 48x48 entries, individual PNG files including 192x192 and 512x512 for Android and PWAs, the 180x180 apple-touch-icon, and a ready-to-use site.webmanifest into a ZIP download, while displaying the matching HTML head snippet on screen to copy. All of this happens in your browser using the Canvas API and a pure JavaScript .ico encoder with zero server uploads. This matters when the source file is a company logo or any asset that should not leave your machine before you control where it goes. If your source logo has fine details that do not survive the 16x16 render, crop or simplify it before dropping it into the generator, or supply a simplified mark specifically prepared for the favicon.
Tools in this article
- Favicon generatorGenerate multi-size favicon.ico, PNG icons (16 to 512 px), Apple Touch icon, and site.webmanifest from an image, text, or emoji.
- Resize imagesResize images by dimensions or percentage, then export JPG, PNG, WebP or AVIF in your browser.
- Compress imagesBatch compress JPG, PNG, WebP, and AVIF images by quality slider or exact target KB size.
- Circle crop imageCrop an image into a circle with adjustable zoom, X/Y offset, ring border, background fill, and PNG/WebP export.
- Social Post MakerCreate news cards, quotes, carousels, and social media visuals in 4:5, 1:1, 9:16, and 16:9 locally in your browser.
- Instagram Carousel & Grid SplitterSplit wide panoramic photos into 2 to 10 swipeable Instagram or LinkedIn carousel slides, or slice a 3×1, 3×2, or 3×3 profile grid locally in your browser.
Frequently asked questions
Do I still need a favicon.ico if I declare PNG link tags?
Yes, for two reasons. First, browsers that do not read your HTML (web crawlers, RSS readers, some old mobile browsers) look for /favicon.ico directly at the root of the domain. If that file is absent they generate a 404 request on every page load, which adds noise to your server logs and a small unnecessary round trip. Second, older versions of Internet Explorer only recognize the .ico format and ignore PNG link tags. Providing both covers all cases.
Can I use an SVG as a favicon?
Chrome and Firefox support SVG favicons via <link rel="icon" type="image/svg+xml" href="/favicon.svg">. Safari does not support SVG favicons. Because SVG favicons are resolution-independent they look sharp on any display density, including retina screens, without needing multiple size variants. The practical recommendation is to declare the SVG link tag for browsers that support it and still include the .ico fallback for complete coverage. SVG favicons can also include a prefers-color-scheme media query to switch between a light and dark version automatically.
What image should I start from to get the best result?
A square PNG at 512x512 or larger with a transparent background gives the most flexibility. Starting large and downscaling preserves more detail than starting from a small image. If your main logo includes a wordmark, consider preparing a separate simplified version showing only the icon or mark, because the text will not be readable at 16x16 regardless of the source resolution. High contrast between the mark and its background is the most reliable predictor of whether the small sizes will read clearly.