This brief tutorial will show you how to quickly and easily convert macOS icon files (.icns) to .png files, without having to download or install any new software.
FYI – using this method you can also do the conversion the other way around (from a .png to an .icns). We’ll go over how at the end of this guide.
cd Desktop
and then hit the enter key.
Now type:
sips -s format png icon_file.icns --out png_file.png
Where icon_file is the name of your icon file, and png_file is the name you want the resulting .png file to be.
In my example (see screenshot below) I ran the command:
sips -s format png firefox.icns --out firefox.png
My icon file – firefox.icns will be converted to firefox.png.
sips -s format icns png_file.png --out icon_file.icns
View Comments
The reverse can be done:
sips -s format icns input.png --out output.icns
Thanks a lot for your tip, very useful