Forum Discussion
TylerYu
Aug 02, 2024Copper Contributor
How Do You Convert PNG to an ICO on Windows 11?
Hey everyone! I have a few images that I want to use as icons, and I know ICO is the preferred format for that. Currently, I'm looking for some help with converting PNG to the ICO on Windows 11 a...
HenryIngram
Aug 02, 2024Iron Contributor
If you're using Windows 7 or Windows 10, you can save the following code as a REG file and apply it to the registry. This will add an option to the context menu of PNG files labeled "Convert to ICO."
When you right-click on png file and choose this option from right click menu, an ICO file named file.png.ico will be created in the same directory. This is the easiest way to convert .png to .ico on Windows PC as far as I know.
Windows Registry Editor Version 5.00
; Created with Default Programs Editor
; http://defaultprogramseditor.com/
; Edit Verb
[HKEY_CURRENT_USER\Software\Classes\pngfile\shell\ConvertToICO]
@="Convert to ICO"
[HKEY_CURRENT_USER\Software\Classes\pngfile\shell\ConvertToICO\command]
@="\"C:\\Program Files\\Magick\\7.0.3-Q16\\convert.exe\" -background transparent \"%1\" -define icon:auto-resize=16,24,32,48,64,72,96,128,256 \"%1.ico\""
[HKEY_CURRENT_USER\Software\Classes\pngfile\shell\ConvertToICO]
"Icon"="C:\\Program Files\\Magick\\7.0.3-Q16\\convert.exe,0"