.ICNS

Файл ICNS

Apple Icon Image
Задать вопрос
БЫСТРЫЙ ОТВЕТ

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.

Разработчик: Apple Категория: Файлы изображений MIME: image/icns
ОТКРЫВАЕТСЯ НА Windows macOS Linux Web
Связанные: .ICO · .CUR · .CZI · .CSD

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Sep 4, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла ICNS?

.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.

Безопасность и защита

РИСК: 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.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕApple Icon Imageтакже известен как macOS icon file, Apple icon graphic format
РАЗРАБОТЧИКAppleс 1998 (Mac OS 8.5); replaced the classic resource-fork 'icns' icon resource as a standalone file
MIME-ТИПimage/icns
ТИПContainer holding one app/system icon at several sizes and color depths (binary)
СВЯЗАННЫЕ.ico.cur.czi.csd
MAGIC BYTES · СИГНАТУРА ФАЙЛА
СМЕЩЕНИЕ
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.

Программы, открывающие файлы ICNS

Windows3 apps
GIMP Открытый код Free editor: open the .icns to view/edit and File > Export As a name ending in .icns to create one.
IcoFX Платно Icon editor that reads/writes .icns and .ico; use the free GIMP/XnView if you don't want to buy it.
XnView MP Бесплатно 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 Открытый код Free editor: open the .icns to view/edit and File > Export As a name ending in .icns to create one.
Preview Встроенная 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) Встроенная 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 Открытый код Free editor: open the .icns to view/edit and File > Export As a name ending in .icns to create one.
Inkscape Открытый код 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.

Технические подробности

глубокая спецификация
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)
Выпущен1998 (Mac OS 8.5); replaced the classic resource-fork 'icns' icon resource as a standalone file
Последняя версияRetina/HiDPI variants and PNG/JPEG2000-compressed elements up to 1024x1024 (since macOS 10.7 Lion, 2011)
Спецификацияen.wikipedia.org

Конвертации ICNS

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами ICNS. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах ICNS.

Часто задаваемые вопросы

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.

Ссылки

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

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

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

Похожие расширения

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

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z