.ICNS

ICNS File

Apple Icon Image
Ask a question
QUICK ANSWER

An ICNS file is Apple's native icon format for macOS - it stores one icon at multiple sizes (16x16 up to 1024x1024) so the OS can display it sharply at any scale. On a Mac, double-click to open in Preview. On Windows, use the free XnView MP or GIMP.

Developer: Apple Category: Image Files MIME: image/icns
OPENS ON Windows macOS Linux Web
Related: .ICO · .CUR · .CZI · .CSD

On this page

19k+ extensions indexed
Last reviewed Sep 4, 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 ICNS file format?

.icns is a binary container format used by macOS. .icns files store various icons used by applications. Each application can have its own icon file, typically saved in the Contents/Resources/ directory of the app bundle. References to .icns files are also listed in .plist configuration files. Icons in .icns files can be viewed using the macOS Finder or by opening them with any compatible image viewer.

The .icns format supports icons of various sizes, such as 16×16, 32×32, 128×128, 256×256, 512×512 and 1024×1024 on newer systems. Older, smaller icon elements store 24-bit color with an 8-bit alpha mask using run-length encoding. Elements at 256×256 and above embed a full .png image - or JPEG 2000 - delivering 32-bit RGBA at Retina resolution.

The file opens with the 4-byte ASCII magic icns followed by a 4-byte big-endian total file length. The body is a series of icon elements, each identified by a 4-byte OSType tag - for example ic09 for 512×512 and ic10 for 1024×1024. To assemble an .icns file from source images, macOS provides the iconutil command-line tool: place correctly named .png files in an .iconset folder and run iconutil -c icns MyIcon.iconset. The format serves the same purpose on macOS as the .ico file does on Windows.

Security & safety

RISK: LOW

An .icns is image data, not executable code, so a genuine icon file is safe to open in a viewer. Two minor cautions: image PARSERS have historically had bugs (a malformed icon could in theory crash an image library), so keep your OS/viewer updated; and an unexpected "icon" that asks to RUN, or an executable disguised with an icon-looking name, should be treated with suspicion. For app icons and downloaded icon packs from normal sources there is essentially no risk.

Format details

in a nutshell
FULL NAMEApple Icon Imageaka macOS icon file, Apple icon graphic format
DEVELOPERApplesince 1998 (Mac OS 8.5); replaced the classic resource-fork 'icns' icon resource as a standalone file
CATEGORYImage Files
MIME TYPEimage/icns
TYPEContainer holding one app/system icon at several sizes and color depths (binary)
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
69636E73
ASCII
icns
The file begins with the ASCII magic "icns" (0x69 0x63 0x6E 0x73) and a 4-byte big-endian length. The body is a series of "icon elements", each a 4-byte OSType tag (e.g. "ic09" for 512x512, "ic10" for 1024x1024, "is32"/"il32" for older 16/32 px) + 4-byte length + data. Element data is a packed (RLE) bitmap for older types or an embedded PNG/JPEG2000 for the large Retina sizes.

Programs that open ICNS files

Windows3 apps
GIMP Open-source Open the .icns to view/edit; export to PNG/ICO. Free on Windows.
IcoFX Paid Icon editor that reads/writes .icns and .ico; use the free GIMP/XnView if you don't want to buy it.
XnView MP Free Free viewer/converter; opens .icns to view all sizes and batch-converts to PNG/ICO. The simplest way to view an .icns on Windows.
macOS4 apps
GIMP Open-source Free editor: open the .icns to view/edit and File > Export As a name ending in .icns to create one.
Preview Built-in Double-click the .icns to open it in Preview; it shows each embedded size. File > Export to save a size as PNG/JPEG.
iconutil (built-in command line) Built-in Convert between an .iconset folder of PNGs and .icns: 'iconutil -c icns MyIcon.iconset'. The official way developers build app icons.
Image2icon Freemium Drag an image in to generate a multi-size .icns (and .ico); the easiest GUI tool for making Mac icons. Free tier covers basic export.
Linux2 apps
GIMP Open-source Open the .icns to view/edit and export to PNG/ICO; pre-packaged on most distros.
Inkscape Open-source Inkscape is a VECTOR editor and is not a real .icns viewer - use it only to DESIGN the source artwork, then export PNGs and build the .icns with png2icns/GIMP. Listed in the db but not a true opener.
Web1 app
CloudConvert / icns converters Freemium Upload a PNG to generate an .icns (or .icns to PNG) in the browser - quickest cross-platform path when you don't have a Mac.

Technical details

deep spec
File magic`icns` (0x69 0x63 0x6E 0x73) at offset 0
Header structure4-byte magic + 4-byte big-endian total file length, followed by a series of icon elements
Byte orderBig-endian for all multi-byte integers
Icon element format{4-byte OSType tag, 4-byte element length, data} - one block per size/variant
Small element encodingRun-length encoding (RLE) for 24-bit color bitmaps (`is32`, `il32` and similar legacy types)
Large element encodingEmbedded PNG or JPEG 2000 for elements at 256×256 and above
Color depth24-bit color + 8-bit alpha mask (RLE elements); 32-bit RGBA via embedded PNG (modern elements)
Supported canvas sizes16×16, 32×32, 128×128, 256×256, 512×512, 1024×1024 (also 512×512@2× Retina)
Common OSType tags`ic07` 128×128, `ic08` 256×256, `ic09` 512×512, `ic10` 1024×1024, `is32`/`il32` legacy 16/32 px
MIME type`image/icns`; also registered as `image/x-icns`
App bundle location`Contents/Resources/<AppName>.icns` inside a macOS `.app` bundle
Build toolchain`iconutil -c icns MyIcon.iconset` converts an `.iconset` folder of PNG files into a single `.icns` file
Optional TOC elementAn optional `TOC ` element (with trailing space) at the start of the element list enables fast seeking without a full file scan
Integrity mechanismPer-element length fields and 4-byte file-length header; no cryptographic checksum
Typical file sizeA few KB (minimal size set) to several hundred KB (full Retina size set)
Released1998 (Mac OS 8.5); replaced the classic resource-fork 'icns' icon resource as a standalone file
Latest versionRetina/HiDPI variants and PNG/JPEG2000-compressed elements up to 1024x1024 (since macOS 10.7 Lion, 2011)
Specificationen.wikipedia.org

ICNS conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with ICNS 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 ICNS files.

Frequently asked questions

How do I open an ICNS file?
On a Mac, double-click it to view in Preview (and Export a size as PNG). On Windows use the free XnView MP or GIMP; on Linux use GIMP. There's no need for special icon software just to look at one.
How do I convert a PNG to an ICNS (Mac icon)?
On a Mac, put your PNGs (named per size) in a folder called Name.iconset and run 'iconutil -c icns Name.iconset', or use the free Image2icon app. Off a Mac, an online icns converter or GIMP's Export As .icns works.
What's the difference between ICNS and ICO?
Same idea, different OS: .icns is the macOS icon container, .ico is the Windows one. Both hold a single icon at many sizes. Convert between them with GIMP, XnView or an online tool when moving an app icon across platforms.
Why does one ICNS file contain several images?
By design - it holds the same icon at multiple sizes (16x16 up to 1024x1024) so macOS can show a sharp version at any scale, from a small list view to a large Quick Look preview.
How do I set a custom folder or app icon on macOS with an .icns?
Open the .icns (or a PNG) in Preview, Cmd+C to copy, then Get Info on the folder/file, click the icon at the top-left and Cmd+V to paste. For app bundles, the .icns lives in Contents/Resources and is referenced by Info.plist.
Can I open an ICNS file on Windows?
Yes - the free XnView MP or GIMP open .icns and show every embedded size; both can also convert it to PNG or to a Windows .ico.

References

1Wikipedia - Apple Icon Image format (icns)en.wikipedia.org
2Apple Developer - App icons / iconutil & iconsetdeveloper.apple.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.CRDOWNLOADChrome Partial Download File
5.RPMSGRestricted Permission Message
6.PARTPartial Download File
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.DBSQLite Database File
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.ICOWindows Icon File
.CURWindows Cursor File
.CZICarl Zeiss Image (ZISRAW container)
.CSDSinger/Poem/Huskygram Embroidery Design File
.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