How to Use a Resource Editor to Change an Icon in Windows
A resource editor lets you change the icon inside a Windows program file, such as an .exe or .dll, by replacing the icon resource stored inside it. If you want a program to show a different icon on your desktop or in the taskbar, or you want to change the icon of a program you built, a resource editor is the tool that makes it possible. This guide explains what a resource editor does, how to use one to change an icon safely, and when you should use a shortcut instead, which is safer and easier for most people.
The short answer is this: for a shortcut, do not use a resource editor at all. Right-click the shortcut, choose Properties, then Change Icon, and pick a new .ico file. For a program file itself, back it up first, open it in a resource editor such as Resource Hacker, replace the icon resource, and save a copy. Test the copy before you replace the original.
What Is a Resource Editor?
A resource editor is a program that opens a Windows executable file, such as an .exe, .dll, or .ocx, and shows the resources stored inside it. Resources are the parts of a program that are not code: icons, images, menus, dialog boxes, version information, and text strings. A resource editor lets you view, replace, add, or remove those resources, and then save the file again. It does not change the program’s code, but it does change the file, so the program may behave differently if you change the wrong resource.
The best-known free resource editor for Windows is Resource Hacker, which has been used for many years to view and edit resources in 32-bit and 64-bit programs. Other tools include Resource Tuner, PE Explorer, and IconsExtract, which can extract icons but not always replace them. Some tools are free, some are paid, and some are old and no longer updated. Choose a tool that is still maintained, that supports the file type you want to edit, and that you can download from the maker’s own website. Do not download a resource editor from a random file host, because a tool that edits program files is a good place to hide malware.
What Is an Icon Resource?
An icon in a Windows program is stored as a resource, usually in a group called Icon Group. That group points to one or more icon images at different sizes, such as 16 by 16, 32 by 32, 48 by 48, and 256 by 256 pixels. Windows picks the size that fits where the icon is shown: a small icon in a list, a medium icon on the desktop, or a large icon in a folder view. When you change an icon with a resource editor, you replace the whole icon group, so that all sizes are replaced at once. If you replace only one size, Windows may show the old icon in some places and the new icon in others, which looks untidy.
Icon files use the .ico format, which can hold several sizes in one file. That is different from a .png or .jpg, which holds one image at one size. Before you start, make sure your replacement icon is a real .ico file with the sizes you need. You can convert a .png to .ico with a free converter or an icon editor, but check the result at small sizes, because a detailed image can become a blur at 16 by 16 pixels. A simple, bold design works better as an icon than a photograph.
Before You Change an Icon: Back Up First
Changing a program file is a change you cannot undo with a simple Undo command. Before you open a resource editor, make a copy of the original .exe or .dll in a safe folder, and note the program’s version. If the change goes wrong, you can restore the copy and the program will work again. Do not edit a program while it is running. Close the program first, and if it runs in the background, close it from the system tray or Task Manager. If Windows says the file is in use, restart the computer and try again before the program starts.
Also think about updates. If the program updates itself, the update will usually replace the edited file with a new version that has the original icon, so your change will be lost. You will need to repeat it after each update. If the program checks its own files for changes, editing it may cause the program to refuse to start or to report that it is damaged. That is common with games and with programs that use anti-cheat or licence checks. In those cases, do not edit the program file. Use a shortcut instead, which is described below.
How to Change an Icon With Resource Hacker
The steps below use Resource Hacker, a free resource editor, as an example. Other resource editors work in a similar way, with the same ideas: open the file, find the icon, replace it, and save.
1. Make a Backup and Close the Program
Copy the .exe file to a backup folder. Close the program completely. If you are not sure whether it is running, open Task Manager, look for the program in the Processes tab, and end it. Work on a copy of the file if you can, and test that copy before you replace the original.
2. Open the File in Resource Hacker
Open Resource Hacker, select File, then Open, and choose the .exe or .dll file. Resource Hacker shows a tree on the left with the resources in the file. Look for the Icon Group folder, which is usually called Icon Group, and expand it. You will see one or more numbered entries, each of which is an icon group. Select one to see its details on the right. If there is more than one icon group, the first one is usually the main icon for the program, but check the preview to be sure.
3. Replace the Icon
Right-click the icon group you want to replace, and choose Replace Icon. In the dialog that opens, choose Open file with new icon, select your .ico file, and then choose Replace. Resource Hacker will show the new icon in the preview. Check that the new icon looks right at different sizes, and that it is not stretched or cropped. If it looks wrong, choose a different .ico file, or make a new one with the correct sizes.
4. Save and Test a Copy
Choose File, then Save, or Save As to save the file with a new name. If you used Save As, test the new file first: double-click it, or run it from its folder, and check that the program starts, that the icon shows correctly on the desktop and in the taskbar, and that no error appears. If the program does not start, or Windows reports that the file is damaged, restore the backup and try again with a different icon file. Do not replace the original file until the copy works.
5. Replace the Original and Refresh the Icon Cache
If the copy works, replace the original .exe with the edited copy, keeping the backup in a safe place. Windows sometimes shows the old icon for a while because it caches icons. To refresh it, restart File Explorer, or restart the computer. You can also clear the icon cache, but a restart is simpler and safer for most people. If the icon still does not change, check that you edited the right file, and that you are looking at a shortcut to that file, not to a different copy of the program.
How to Change a Shortcut Icon Instead
For most people, changing a shortcut icon is the better choice. It does not change the program file, it does not break updates, and it is easy to undo. Right-click the shortcut on your desktop or in the Start menu, choose Properties, then Shortcut, then Change Icon. Choose an icon from the list, or browse to your .ico file and select it. Choose OK, then Apply, then OK again. The shortcut will show the new icon at once. If you want to change the icon for all users, change the shortcut in the Public desktop folder, or change the program’s shortcut in the Start menu folder.
You can also change the icon of a folder in a similar way. Right-click the folder, choose Properties, then Customize, then Change Icon, and pick an icon. That change only affects the folder, not the files inside it, and it is stored in a desktop.ini file inside the folder. If you move the folder to another computer, the icon may not follow unless the .ico file moves with it.
Common Problems and How to Fix Them
| Problem | What to do |
|---|---|
| The program will not start after editing | Restore the backup copy. The icon file may be damaged, or the program may check its own files. Try a different .ico file, or use a shortcut instead. |
| The old icon still shows | Restart File Explorer or restart the computer to refresh the icon cache. Check that you edited the file the shortcut points to. |
| The icon looks blurry at small sizes | Use an .ico file that includes 16 by 16 and 32 by 32 sizes, and choose a simple design that stays clear when small. |
| Windows says the file is in use | Close the program completely, including from the system tray. Restart the computer and edit the file before the program starts. |
| The icon changes back after an update | Updates replace the program file. Repeat the change after each update, or use a shortcut icon, which updates do not change. |
| Resource Hacker cannot open the file | The file may be protected, packed, or in a format the tool does not support. Do not force it. Use a shortcut instead. |
Is It Legal and Safe to Edit a Program File?
Editing a program file you own, for your own use, is usually allowed, but it can break the program’s licence or warranty, and it can be against the terms of a game or a work program. Read the licence for the program before you edit it, and do not edit a program you do not own, or a program on a work computer without permission from your IT team. Do not share an edited program file with other people, because that can spread a damaged or infected file, and it can break the program’s licence. If you are changing the icon of a program you built yourself, you can also change the icon in your development tool, such as Visual Studio, which is the proper way to set the icon for a program you distribute. A resource editor is a good tool for learning and for personal use, not for redistributing someone else’s program.
Safer Alternatives to a Resource Editor
If you only want a different look on your desktop, there are safer ways to get it. You can change a shortcut icon, as described above, which is the simplest option. You can use a custom icon pack, which changes many icons at once through Windows themes. You can use a launcher, which lets you organise your programs with custom icons without editing any program files. For a program you built, set the icon in your development tool, so the icon is part of the program from the start. Our guides to Windows updates, such as our guide to KB5082142, the April 2026 update for Windows Server 2022, and our guide to KB5065426, the October 2025 update for Windows Server 2022, explain why keeping program files in their original state matters for updates. If you need to keep an older system running, read our guide to Windows 10 Extended Security Updates before you change system files.
Frequently Asked Questions
What is a resource editor?
A resource editor is a program that opens a Windows .exe or .dll file and lets you view and change the resources inside it, such as icons, images, menus, and version information. Resource Hacker is a well-known free example. It does not change the program’s code, but it does change the file, so you should back up the file first.
Can I change an icon without a resource editor?
Yes, and for most people that is the better choice. Right-click a shortcut, choose Properties, then Change Icon, and pick a new .ico file. That changes only the shortcut, not the program file, so updates will not undo it and the program will not break.
Is Resource Hacker safe to use?
Resource Hacker itself is a legitimate tool, but you should download it only from the maker’s own website, and you should back up any file before you edit it. Editing a program file can stop the program from starting, especially if the program checks its own files. Test a copy first, and keep the original backup.
Why does my icon not change after I edit it?
Windows caches icons, so the old icon can stay on screen for a while. Restart File Explorer or restart the computer to refresh the cache. Also check that you edited the file the shortcut points to, and that you replaced the whole icon group, not just one size.
Will changing an icon break a program update?
An update will usually replace the edited file with a new version that has the original icon, so your change will be lost. That is not a break, but it means you will need to repeat the change after each update. A shortcut icon is not affected by program updates, which is another reason to use a shortcut when you can.