This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Mathematica Import/Export Format

ICO (.ico)

Registered MIME type: image/
Microsoft Windows icon.
Raster image file format.
Native icon format on Windows.
ICO is an acronym derived from icon.
Binary format.
Can store multiple icons at different color resolutions.
Supports alpha channels.
Similar to CUR format.
  • Import fully supports the ICO format.
  • Import["file.ico"] imports an ICO file, returning a graphics object.
  • Import["file.ico"] returns an expression of the form Graphics[Raster[data], opts], where data is an array of RGB color values.
  • Import["file.ico", elem] imports the specified element from an ICO file.
  • Import["file.ico", {elem, suba, subb, ...}] imports a subelement.
  • Import["file.ico", {{elem1, elem2, ...}}] imports multiple elements.
  • The import format can be specified with Import["file", "ICO"] or Import["file", {"ICO", elem, ...}].
  • See the reference pages for full general information on Import.
"Elements" list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties, and settings
  • Data representation elements:
"Data"array of color values for each icon
"GraphicsList"icons given as a list of graphics objects
"GrayLevels"array of normalized gray-level values
"RGBColorArray"array of RGBColor objects for each icon
  • Import by default uses the "GraphicsList" element for ICO files.
"BitDepth"number of bits used to represent each color channel
"ColorSpace"color encoding used in the file
"ImageSize"raster dimensions
Import an ICO file that stores two bitmaps:
Click for copyable input
Read an ICO file representing the Mathematica 6 icon at various resolutions:
Click for copyable input