Kí ni ICO?

Fọ́mátì àmì fún àwọn ohun èlò Windows àti favicon ayélujára

ICO jẹ́ fọ́mátì fáìlì àmì tí Microsoft ṣe fún ètò ìṣiṣẹ́ Windows. A ń lò ó fún àwọn àmì ohun èlò, àwọn àmì irú fáìlì àti favicon àwọn ojú-ìwé ayélujára.

Ohun tí ó yàtọ̀ nípa fáìlì ICO ni agbára láti tọ́jú àwọn àwòrán púpọ̀ tí ìwọ̀n yàtọ̀ nínú fáìlì kan. Èyí ń gbà ètò ìṣiṣẹ́ láyè láti yan ẹ̀yà tó dára jù fún ipò kọ̀ọ̀kan.

Nínú ìdàgbàsókè ayélujára, a ti pẹ́ ń lò ICO gẹ́gẹ́ bí fọ́mátì favicon. Àwọn aṣàwákiri ìgbàlódé ṣe àtìlẹ́yìn fún PNG àti SVG fún favicon, àmọ́ ICO ṣì gbajúmọ̀.

Every ICO file starts with a 6-byte ICONDIR header. The first 4 bytes are always 00 00 01 00 — two reserved zero bytes, then 01 00 identifying the file as an icon (cursor files use 02 00 instead). Bytes 5-6 store the number of images in the file as a little-endian 16-bit integer. A favicon with 4 sizes (16x16, 32x32, 48x48, 256x256) would have 04 00 here.

After the ICONDIR header, each image gets a 16-byte ICONDIRENTRY describing it. The first byte is width (0 means 256), second is height (also 0 for 256), third is the color palette count (0 for 256+ colors). Then there's a reserved byte, followed by color planes (2 bytes), bits per pixel (2 bytes), image data size (4 bytes), and the offset to the actual image data within the file (4 bytes). This directory structure lets software jump directly to the size it needs.

For images smaller than 256x256, ICO traditionally stores them as BMP data — but with a twist. The data skips the 14-byte BITMAPFILEHEADER that normal BMP files have, starting directly with the BITMAPINFOHEADER. The biHeight field is doubled (e.g., 64 instead of 32 for a 32x32 icon) because it includes both the XOR mask (the actual image) and the AND mask (a 1-bit transparency mask). This BMP-without-header approach dates back to Windows 3.0.

Starting with Windows Vista, ICO files can embed raw PNG data for the 256x256 size. The format detector checks the first 8 bytes of each image's data: if they match the PNG signature (89 50 4E 47 0D 0A 1A 0A), the data is treated as a complete PNG file. This keeps large icon sizes compressed — a 256x256 32-bit BMP would be about 264KB uncompressed, while the PNG version is typically 10-30KB.

Àwọn ẹ̀yà ìmọ̀-ẹ̀rọ

Orúkọ kíkún ICO file format (Windows Icon)
Ìfàgùn fáìlì .ico
Irú MIME image/x-icon
Irú àwòrán Raster (ìwọ̀n púpọ̀)
Ìjìnlẹ̀ àwọ̀ Títí dé 32-bit
Ìhàn-gbangba Bẹ́ẹ̀ni
Ìwọ̀n tó pọ̀ jù 256×256 píksẹ́lì
Ọdún ìdásílẹ̀ 1985
Metadata Icon directory header with size and color information
Year released 1985

Ìgbà tí a máa lò ICO

  • Ṣíṣe àwọn àmì fún àwọn ohun èlò Windows
  • Favicon ayélujára fún ìbáradé gbooro
  • Àwọn ọ̀nà àbùjá tábìlì Windows
  • Legacy systems that require the ICO format specifically
  • Multi-resolution icon packages for operating system integration

Àǹfààní àti àìlera

Àǹfààní

  • Ó tọ́jú ìwọ̀n púpọ̀ nínú fáìlì kan
  • Àtìlẹ́yìn àgbáyé nínú ètò Windows
  • Ṣiṣẹ́ gẹ́gẹ́ bí favicon ní gbogbo àwọn aṣàwákiri
  • 32-bit color with full alpha transparency support
  • Compact file sizes suitable for web delivery

Àìlera

  • Ó ní ìdiwọ̀n sí 256×256 píksẹ́lì
  • SVG favicon dára jù fún ayélujára ìgbàlódé
  • Kò dára fún àwọn fọ́tò
  • Limited to icon use cases with no support for general graphics
  • macOS uses its own ICNS format, requiring separate icon files for cross-platform applications

Ìbáradé

Àwọn fáìlì ICO ṣiṣẹ́ lórí gbogbo Windows àti gẹ́gẹ́ bí favicon ní gbogbo àwọn aṣàwákiri. macOS Preview àti ọ̀pọ̀ àwọn olóòtú àwòrán lè ṣí ICO.

ICO ní àfiwé pẹ̀lú àwọn fọ́mátì mìíràn

ICO àti PNG
PNG tọ́jú àwòrán kan, ICO ní ìwọ̀n púpọ̀ nínú fáìlì kan. Fún favicon ìgbàlódé PNG tó, àmọ́ ICO ṣe ìdánilójú ìbáradé.
ICO àti SVG
SVG jẹ́ vector — ó hàn dáadáa ní ìwọ̀n èyíkéyìí. ICO jẹ́ raster tí ó ní ìdiwọ̀n sí 256×256.
ICO vs ICNS
ICNS is Apple's equivalent icon format for macOS, supporting higher resolutions up to 1024 by 1024 pixels. ICO is limited to 256 pixels but dominates on Windows and the web. Cross-platform applications typically need both formats for full operating system integration.

Àwọn irinṣẹ́ ICO lórí My File Tool

Yí àwọn fáìlì ICO padà sí PNG tàbí àwọn fọ́mátì mìíràn. Kò sí ìfi ètò sórí ẹ̀rọ.

Àwọn ìbéèrè tí a máa ń béèrè

Báwo ni mo ṣe lè ṣí fáìlì ICO?
Windows fi ICO hàn tààrà. Lórí macOS lo Preview. Tàbí gbe sórí My File Tool.
ICO tàbí PNG fún favicon?
Fún ìbáradé tó gbooro jù lo ICO. Àwọn aṣàwákiri ìgbàlódé ṣe àtìlẹ́yìn fún PNG favicon.
Báwo ni mo ṣe lè yí ICO padà sí PNG?
Gbe fáìlì ICO rẹ sórí My File Tool kí o sì yan PNG. Fáìlì àkọ́kọ́ rẹ jẹ́ ọ̀fẹ́.
Why does my ICO file contain multiple images?
ICO files bundle multiple icon sizes so the operating system or browser can choose the best version for each display context. A 16x16 version appears in browser tabs while a 48x48 version appears in Windows shortcuts.
What is the maximum size for an ICO image?
Each individual image within an ICO file can be up to 256 by 256 pixels. For larger icon needs, Windows uses PNG files directly. The 256x256 size within ICO files typically uses PNG compression internally.
What is the minimum valid ICO file structure?
The smallest valid ICO file needs a 6-byte ICONDIR header (00 00 01 00 01 00), one 16-byte ICONDIRENTRY, and the image data itself. For a 1x1 pixel 32-bit icon using BMP format, that's 6 + 16 + 40 (BITMAPINFOHEADER) + 4 (1 pixel BGRA) + 4 (AND mask row padded to 4 bytes) = 70 bytes total. In practice, a usable 16x16 favicon with PNG compression is around 200-400 bytes.
How does ICO store transparency?
ICO uses two methods. For BMP-based icons, there's a 1-bit AND mask that defines which pixels are transparent. For 32-bit BMP icons, the alpha channel in BGRA pixel data provides smooth per-pixel transparency. PNG-embedded icons (256x256) use PNG's native alpha channel. Modern icons should use 32-bit color with alpha for the best results.
Can an ICO file contain PNG images?
Yes. Since Windows Vista, ICO files can store images as embedded PNG data instead of BMP. This is standard practice for the 256x256 size, where PNG compression reduces a 260KB uncompressed bitmap to 10-30KB. The format is auto-detected by checking if the image data starts with the PNG magic bytes (89 50 4E 47).

Ṣé o nílò láti yí ICO padà?

Yí àwọn fáìlì ICO rẹ padà sí PNG ní ìṣẹ́jú àáyá díẹ̀.

Yí ICO padà báyìí