Changing application icon for Windows

    Windows does not use formats such as png or jpg for application icons. Instead, it uses a Windows-only format called ICO. You can create your application icon in any program but you will have to convert it to an ICO file using a program such as GIMP.

    goes over how to export an ICO file with GIMP.

    It is also possible to convert a PNG image to an hiDPI-friendly ICO file using this ImageMagick command:

    Depending on which version of ImageMagick you installed, you might need to leave out the and run this command instead:

    1. convert icon.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico

    Warning

    For the ICO file to effectively replace the default Godot icon, it must contain all the sizes included in the default Godot icon: 16×16, 32×32, 48×48, 64×64, 128×128, 256×256. If the ICO file does not contain all the sizes, the default Godot icon will be kept for the sizes that weren’t overridden.

    The above ImageMagick command takes this into account.

    The taskbar icon is the icon that shows up on the taskbar when your project is running.

    ../../_images/icon_project_settings.png

    This setting only changes the icon for your exported game on Windows. To set the icon for macOS, use . And for any other platform, use the Icon setting.

    In Godot 3.5 and later, you can change the file icon without external tools using . Changing the file icon this way should work for executables containing an embedded PCK.

    Warning

    There are known issues when changing the application icon in executables that embed a PCK file. It’s recommended to avoid using rcedit for now if you choose to enable the Embed Pck option for your Windows export preset in the Export dialog.

    The file icon is the icon of the executable that you click on to start the project.

    Before selecting it in the export options, you will need to install an extra tool called rcedit. You can download it .

    After downloading, you need to tell Godot the path to the rcedit executable on your computer. Go to Editor → Editor Settings → Export → Windows. Click on the folder icon for the rcedit entry. Navigate to and select the rcedit executable.

    Linux and macOS users will also need to install WINE to use rcedit.

    ../../_images/icon_rcedit.png

    You should now have everything in place to change the file icon. To do that, you will need to specify the icon when exporting. Go to Project → Export. Assuming you have already created a Windows Desktop preset, select your icon in ICO format in the Application → Icon field.

    Note

    If rcedit fails to change the icon, you can instead with the icon changed. To do so, replace platform/windows/godot.ico with your own ICO file before compiling export templates.

    Once this is done, you can specify your export templates as custom export templates in your project’s Windows export preset.

    You can now export the project. If it worked correctly, you should see this:

    ../../_images/icon_result.png

    If your icon isn’t showing up properly, on Windows 10, try clearing the icon cache. To do so, open the Run dialog and enter or ie4uinit.exe -show.