.ICO

ICO File

Windows Icon File
Ask a question
QUICK ANSWER

An ICO file is a Windows icon used for programs, files, folders, and browser favicons. One .ico holds the same image at several sizes (16x16 up to 256x256) so Windows picks the sharpest version for each context. To view one, use IrfanView or XnView. To edit or create icons, use the free GIMP or Greenfish Icon Editor.

Developer: Microsoft Category: Image Files Open standard MIME: image/vnd.microsoft.icon
OPENS ON Windows macOS Linux Web
Related: .CUR · .CZI · .CSD · .ICNS

On this page

19k+ extensions indexed
Last reviewed Sep 3, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the ICO file format?

Files with the .ico extension store image files used as icons for applications, documents, and folders in the Windows operating system. The format was developed by Microsoft and has been part of Windows since version 1.0.

Does an .ico file store a single scalable icon image?

Older versions of Windows used .ico files that contained a single 48×48 pixel icon image each. It was sufficient for the display requirements of that time. However, as higher-resolution computer monitors became more popular, single-sized icons were not sufficient and a more flexible solution was needed. Today, .ico files work as containers that store multiple images at different sizes - typically from 16×16 up to 256×256 pixels - so the operating system can pick the most suitable resolution for each context. Since Windows Vista, individual images inside the container may also be stored as compressed PNG data rather than raw BMP pixels, noticeably reducing file size at larger icon dimensions.

What kind of data do favicon.ico files contain?

.ico files are also used for storing website favicon images. Those are the icons displayed in the browser's tab and address bar, to the left of the site's address. Website favicons are saved in special favicon.ico files stored in the website's root folder, where browsers locate them automatically. A favicon.ico typically bundles images at multiple sizes - at minimum a 16×16 version - so different environments can pick the appropriate one. The closely related .cur format shares the same container structure but stores mouse cursors instead of icons.

Security & safety

RISK: LOW

An .ico is image data, not executable code, so a genuine icon file is safe to open in a viewer. Two cautions worth knowing: (1) historically there have been bugs in icon PARSERS - a malformed .ico has in the past been used to trigger crashes/exploits in Windows shell or image libraries, so keep your OS/viewer updated; (2) .ico is a common disguise for a misleading file (an executable renamed with an icon extension, or an .ico used as a decoy), so be wary of an 'icon' that arrived unexpectedly or asks to run. For favicons and folder icons from normal sources there is essentially no risk.

Format details

in a nutshell
FULL NAMEWindows Icon File
DEVELOPERMicrosoftsince 1985 (Windows 1.0); PNG-compressed icons supported since Windows Vista, 2007
CATEGORYImage Files
MIME TYPEimage/vnd.microsoft.icon
TYPEContainer of one or more bitmap/PNG images at several sizes (binary)
STANDARDOpen · royalty-free
This extension is also used by…
  • Windows Cursor (.cur / .ani) - The cursor format is byte-for-byte almost the same container; it differs only by the type field (2 instead of 1) and adds hotspot coordinates.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
00000100
ASCII
····
The first 6 bytes are an ICONDIR header: 2 reserved bytes (00 00), a 2-byte type (01 00 = icon; 02 00 marks the near-identical .cur cursor format), and a 2-byte image count. The same container is then a directory of entries pointing to each embedded image. Note an .ico may itself wrap PNG data per entry - those entries start with the PNG signature 89 50 4E 47 internally.

Programs that open ICO files

Windows5 apps
IcoFX Paid Professional icon editor (paid since v2; the old v1.6.4 was freeware). Use the free GIMP/Greenfish if you don't want to buy it.
GIMP Open-source Free full editor: open the .ico to edit each size; File > Export As 'name.ico' to create/save icons (with multiple sizes).
IrfanView Free Free fast image viewer; open the .ico to view it (and use plug-ins to extract icons from EXE/DLL).
Greenfish Icon Editor Pro Free Free dedicated icon/cursor editor: design multi-size .ico (and .cur) files with transparency.
XnView MP Free Free image viewer/manager; opens .ico to view and can batch-convert images to/from ICO.
macOS2 apps
GIMP Open-source Free editor for Mac; open the .ico to view/edit and export new icons.
XnView MP Free Free viewer/converter on macOS; open the .ico to view it.
Linux1 app
GIMP Open-source Open the .ico to view/edit; export to .ico or other formats. Pre-packaged on most distros.
Web1 app
ICO Convert / favicon generators Free Upload a PNG/JPG to generate a multi-size favicon.ico in the browser - the quickest path for a website icon.

Technical details

deep spec
Container structureICONDIR header followed by an array of ICONDIRENTRY records, each pointing to one embedded image block within the file
Magic bytes00 00 01 00 at file offset 0: two reserved zero bytes, then type field 01 00 identifying the file as an icon
Embedded image formatsEach entry holds either a Device-Independent Bitmap (DIB/BMP) or a complete PNG stream; format is detected by the entry's data size and PNG signature
Image size range1×1 up to 256×256 pixels per embedded image entry
Standard icon sizes16×16, 32×32, 48×48, 64×64, 128×128, and 256×256 pixels; Windows selects the best match at runtime
Supported bit depths1-bit (monochrome), 4-bit, 8-bit, 24-bit RGB, and 32-bit ARGB per individual entry
Alpha transparency32-bit entries carry an 8-bit per-pixel alpha channel; older lower-depth entries use a separate 1-bit AND mask for transparency
Maximum embedded imagesUp to 65,535 entries per file, constrained by the 2-byte image-count field in the ICONDIR header
PNG-compressed entriesPNG data is permitted per entry since Windows Vista, substantially reducing file size for 256×256 images
MIME typeimage/vnd.microsoft.icon
Cursor format variantThe .cur cursor format uses the identical container with type byte 02 00 and appends a hotspot coordinate to each entry
OS image selectionWindows automatically selects the closest-matching size and bit depth from the embedded set for each display context (shell, taskbar, title bar)
Shell resource embeddingIcons are frequently embedded inside .exe and .dll files as RT_ICON and RT_GROUP_ICON resources rather than stored as standalone .ico files
Favicon usageBrowsers fetch favicon.ico from a site's root directory; a single file can bundle multiple sizes for tabs, bookmarks, and home-screen shortcuts
Released1985 (Windows 1.0); PNG-compressed icons supported since Windows Vista, 2007
Open standardYes · royalty-free
Specificationlearn.microsoft.com

ICO conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with ICO files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about ICO files.

Frequently asked questions

How do I convert a PNG (or JPG) to an ICO file?
Use a free online favicon/ICO generator, or open the image in GIMP and choose File > Export As and type a name ending in .ico (GIMP can store several sizes in one file). For a website favicon, a generator that outputs multiple sizes is easiest.
How do I open an ICO file?
Any modern image viewer shows it - on Windows use the free IrfanView or XnView; on Mac/Linux use GIMP or XnView. To edit it, use GIMP or the free Greenfish Icon Editor.
What is a favicon and is it an ICO file?
A favicon is the small icon in a browser tab/bookmark, traditionally served as /favicon.ico in ICO format so it can include several sizes. Modern sites may use PNG or SVG too, but .ico is still widely supported.
Why does one ICO file contain several images?
By design - an .ico holds the same icon at multiple sizes (16x16, 32x32, 48x48, 256x256…) so Windows can show a sharp version at any scale, from a tiny taskbar button to a large thumbnail.
Is there a free ICO editor?
Yes - GIMP (full image editor) and Greenfish Icon Editor (dedicated, free) both create and edit multi-size .ico files. IcoFX is also popular but its current versions are paid.
How do I set a custom folder or shortcut icon in Windows?
Right-click the folder/shortcut > Properties > Customize (folder) or Change Icon (shortcut), then browse to your .ico file. Use an .ico that includes at least a 256x256 size for sharp display.

References

1Microsoft - Icons (ICO file format, ICONDIR structure)learn.microsoft.com
2GIMP - official site (export to .ico)www.gimp.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.MDMarkdown Document
9.RPMSGRestricted Permission Message
10.TMPTemporary File

Related extensions

.CURWindows Cursor File
.CZICarl Zeiss Image (ZISRAW container)
.CSDSinger/Poem/Huskygram Embroidery Design File
.ICNSApple Icon Image
.ORAOpenRaster Image File
.SVSAperio ScanScope Virtual Slide

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z