PNG to ICNS converter

Turn a PNG into a macOS .icns app icon, and a Windows .ico while you're at it. The conversion runs in your browser, so your image is never uploaded.

Drop your PNG here

A square image of 1024 × 1024 pixels gives the best result.

Your image never leaves your computer: the conversion runs in this page and nothing is uploaded.

How to convert a PNG to ICNS

  1. Drop your PNG on the box above, or click "Choose an image".
  2. Check the previews at each size.
  3. Download the .icns for macOS, the .ico for Windows, or both.

That's it. The converter draws your image at every size the formats need and packs them into one file. It works with JPEG and WebP sources too, but a PNG with a transparent background is what you want for an app icon.

For the sharpest result, start with a square PNG of 1024 × 1024 pixels. That's the largest size macOS uses, so nothing has to be scaled up. If your image isn't square it gets centred with transparent padding, not stretched.

What's inside an ICNS file

An .icns file is Apple's icon format. It's a container: one file holding the same icon at several sizes, so macOS can pick the right one for the Dock, Finder lists, Spotlight and Retina displays without scaling.

The converter writes the ten images of a standard macOS icon set:

Size in points Standard (1x) Retina (2x)
16 16 × 16 px 32 × 32 px
32 32 × 32 px 64 × 64 px
128 128 × 128 px 256 × 256 px
256 256 × 256 px 512 × 512 px
512 512 × 512 px 1024 × 1024 px

These are the same ten images that make up an iconset folder for Apple's own iconutil tool. If you run iconutil -c iconset on a file from this page, you get all ten back.

What's inside the ICO file

.ico is the Windows equivalent: one file, several sizes. The one you download here contains 16, 24, 32, 48, 64, 128 and 256 pixel versions, stored as PNG, which Windows has supported since Vista. Windows uses the small ones in list views and the taskbar and the 256 pixel one for large tiles.

Where the icon goes in your app

Electron. With electron-builder, put icon.icns and icon.ico in your build folder (or point mac.icon and win.icon at them). It expects the .icns to be at least 512 × 512 and the .ico at least 256 × 256, which both files from this page are.

Tauri. List the files under bundle.icon in tauri.conf.json. Tauri also has its own tauri icon command that generates every platform's icons from one PNG.

A macOS app bundle by hand. Copy the file to YourApp.app/Contents/Resources/ and set CFBundleIconFile in Info.plist to its name.

Xcode. You usually don't need an .icns at all. Add your images to the AppIcon set in the asset catalog and Xcode builds the icon for you.

Other frameworks. Qt, Flutter desktop, .NET, PyInstaller, JavaFX packagers and most others take an .icns for the macOS build and an .ico for Windows. PyInstaller, for example, takes it as --icon=icon.icns.

Converting PNG to ICNS on a Mac with iconutil

If you'd rather do it from the command line, macOS ships with everything you need. Create a folder ending in .iconset, fill it with the ten sizes using sips, and let iconutil pack it:

mkdir MyIcon.iconset

sips -z 16 16     icon.png --out MyIcon.iconset/icon_16x16.png
sips -z 32 32     icon.png --out MyIcon.iconset/[email protected]
sips -z 32 32     icon.png --out MyIcon.iconset/icon_32x32.png
sips -z 64 64     icon.png --out MyIcon.iconset/[email protected]
sips -z 128 128   icon.png --out MyIcon.iconset/icon_128x128.png
sips -z 256 256   icon.png --out MyIcon.iconset/[email protected]
sips -z 256 256   icon.png --out MyIcon.iconset/icon_256x256.png
sips -z 512 512   icon.png --out MyIcon.iconset/[email protected]
sips -z 512 512   icon.png --out MyIcon.iconset/icon_512x512.png
sips -z 1024 1024 icon.png --out MyIcon.iconset/[email protected]

iconutil -c icns MyIcon.iconset

That gives you MyIcon.icns. The file names have to match exactly, or iconutil will refuse the folder. It's handy in a build script; for a one-off, the converter above is quicker, and it works on Windows and Linux, where iconutil doesn't exist.

Tips for an icon that looks right

  • Design at 1024 × 1024 and check the 16 and 32 pixel previews. Fine detail disappears at small sizes, so a simple shape reads better.
  • Leave a transparent margin. macOS app icons don't fill the whole square. Apple's templates put the artwork inside a rounded rectangle with space around it, which is why an edge-to-edge image looks oversized in the Dock next to other apps.
  • Keep the background transparent outside the shape. The converter preserves transparency.
  • Clear the icon cache if the old icon sticks. macOS caches icons hard. Renaming the app, or moving it to another folder and back, usually makes Finder pick up the new one.

After the icon: getting your app to customers

An icon is one of the last things you do before shipping. The steps after it are the ones that take longer: signing and notarizing the build so macOS will open it, getting it to customers, taking payment, and making sure the people using it have paid.

There's a full walkthrough in how to sell software online. The short version is that you need a payment platform, a license key system so each purchase unlocks the app, and an update feed so customers get new versions. LicenseSeat covers the licensing and updates part, including licensing for macOS apps and Tauri apps.

Common questions about PNG to ICNS

What size should a PNG be to convert to ICNS?

1024 × 1024 pixels, square, with a transparent background. That's the largest image in a macOS icon set, so every other size is scaled down from it and stays sharp. A smaller image works but the large sizes will be scaled up.

Is this PNG to ICNS converter free?

Yes, with no sign-up and no limit. It's a small tool that runs in your browser.

Is my image uploaded anywhere?

No. The conversion is done by JavaScript in this page, on your computer. Your image isn't sent to a server, which also means it works for icons you haven't released yet.

How do I convert ICNS back to PNG?

On a Mac, run sips -s format png icon.icns --out icon.png to get the largest image, or iconutil -c iconset icon.icns to extract every size into a folder. Preview can also open an .icns and export it as PNG.

Can I convert ICNS to ICO, or ICO to ICNS?

Go through PNG. Extract the largest image from the file you have, then drop that PNG here to get both an .icns and an .ico made from the same source.

Why does my app still show the old icon?

macOS caches icons. Rebuild the app, then rename it or move it to a different folder so Finder reads the icon again. If the icon is missing altogether, check that CFBundleIconFile in Info.plist matches the file name and that the file is in Contents/Resources.

Does the ICNS work on older versions of macOS?

It stores PNG-encoded images under the standard icon types, which macOS has read for many years, and Apple's iconutil unpacks it as a complete ten-image set. If you have to support a very old system, test the icon there.