Web favicons
How to Create a Multi-Size Favicon.ico
An ICO file can hold several sizes of the same mark. Prepare one square source, then generate and inspect the sizes you want browsers or Windows to choose from.
Updated
Published by AssetHUD
Prepare the source image
Start with a square PNG at least 256 pixels across. Keep lines simple and leave padding. Review the mark at 16 pixels because thin shapes and small text can disappear at that size. Use AssetHUD’s background remover if your raster source needs a transparent background.
Multi-Resolution Mipmaps vs Single PNG
Extra Large & Tiles
Medium Icons
Taskbar & Desktop
Details & Favicon
Build the ICO file
With ImageMagick installed, run this command on a 256 × 256 source. The ICO contains versions at 48, 32, and 16 pixels.
magick logo-256.png -define icon:auto-resize=48,32,16 favicon.ico Run magick identify favicon.ico to inspect the resulting entries. See the ImageMagick encoder options.
Publish and verify
Serve the file at /favicon.ico and link to it from the site’s HTML. For Google Search, a stable square PNG larger than 48 × 48 pixels is also supported. See Google’s favicon requirements.
For a single-size Windows folder icon, follow the AssetHUD PNG-to-ICO workflow. AssetHUD’s ICO export writes one size per file.