BMP to ICO Converter
Convert BMP images to ICO icon files with multiple sizes. Client-side processing, supports 16x16 to 256x256 icons for Windows apps and favicons.
Drop BMP file here or click to upload
Supports .bmp files up to 50MB
Preparing...
Conversion Complete!
About
The ICO format stores multiple image resolutions within a single file, enabling Windows to select optimal icon sizes for different display contexts - taskbar (16×16), desktop (48×48), or high-DPI tiles (256×256). Shipping a single-resolution icon causes forced scaling, producing blurred edges and aliasing artifacts that degrade professional appearance. This converter constructs a valid ICO binary by embedding PNG-compressed frames for each selected dimension, following Microsoft's modern icon specification. Source BMP images are decoded natively, scaled using high-quality bicubic interpolation, then encoded into the multi-image container structure. Note: input images with aspect ratios deviating from 1:1 will be center-cropped to square before scaling.
Formulas
The ICO file format consists of a header structure followed by concatenated image data. Each entry in the icon directory points to its corresponding image offset within the file.
The ICONDIR header occupies 6 bytes:
Each ICONDIRENTRY is 16 bytes, describing one embedded image:
Image offset calculation for the i-th image:
Where n is total image count, Sizej is byte length of image j. For 256×256 icons, width/height bytes store 0 (special encoding).
Reference Data
| Icon Size | Typical Use Case | Windows Context | Recommended Source |
|---|---|---|---|
| 16×16 | Favicon, title bar | Small icons view, browser tabs | ≥64px source |
| 24×24 | Toolbar buttons | Windows Explorer toolbar | ≥96px source |
| 32×32 | Desktop shortcut (standard) | Default desktop icon size | ≥128px source |
| 48×48 | Desktop shortcut (medium) | Medium icons view | ≥192px source |
| 64×64 | Large list view | Large icons in Explorer | ≥256px source |
| 128×128 | Extra large icons | Extra large icons view | ≥256px source |
| 256×256 | High-DPI, tiles | Windows 10/11 tiles, jumbo view | ≥256px source |
| ICO Format Limits | |||
| Max images | 255 images per ICO file (practical limit) | ||
| Max dimension | 256×256 pixels (stored as 0 in header byte) | ||
| Color depth | 32-bit RGBA (8 bits per channel + alpha) | ||
| Compression | PNG for ≥48px (Vista+), raw BMP DIB for legacy | ||
| BMP Input Requirements | |||
| Bit depth | 24-bit or 32-bit recommended | ||
| Compression | Uncompressed (BI_RGB) or RLE supported via Canvas | ||
| Min size | ≥16×16 pixels | ||
| Ideal source | 512×512 or 1024×1024 for best downscale quality | ||