Need to pull a specific icon out of an EXE, DLL, OCX, or CPL file, but Windows has no built-in tool to extract it cleanly? Windows stores its icons inside those files, and a few free utilities can scan them and save exactly what you want, including high-resolution 256×256 versions.
Method #1: Use NirSoft IconsExtract
IconsExtract is a portable, free tool that scans EXE, DLL, OCX, CPL, and other PE file types for embedded icons and cursors. Download the ZIP, extract it, and run Iconsext.exe. No installation required.
Scan a single file or an entire folder
- Open IconsExtract. The default mode is Search for icons in the following files.
- Type a file path,
C:\Windows\System32\shell32.dll, for example, or click Browse Files to pick one. Wildcard characters (?and*) work if you want to match multiple files at once. - To scan a whole directory, click Browse Folders and check Search Subfolders to include everything underneath. Point it at
C:\Program Filesand it’ll sweep every installed app in one pass.
- Click OK. IconsExtract scans the target and fills the results window with every icon and cursor it finds.
Extract icons from a running process
Choose Search for icons in selected process, pick the app from the list, and click OK. IconsExtract pulls icons from whatever that program has loaded into memory.
Save your icons
- Select the icons you want in the results list.
- Go to File > Save Selected Icons to export them as
.icofiles. - To copy a single icon to the clipboard, select it and press
Ctrl + C. That copies the 16×16 or 32×32 version by default. - For a larger size, double-click the icon, choose the resolution you want in the properties window, and click Copy Selected Image.
Finding Windows 11 system icons
Start with C:\Windows\System32\ or shell32.dll and imageres.dll live there. If you’re coming up empty on Windows 10 or 11 system icons, check C:\Windows\SystemResources\ too. Many icons moved to .mun resource packages in that folder. IconsExtract handles .mun files the same way it handles DLLs. You can also explore new features in Windows 11 to learn more about system icons and customization options.
Method #2: Use Resource Hacker
Resource Hacker opens any PE file, including EXE, DLL, CPL, OCX, or .mun, and shows you the full resource tree. It’s the right pick when you need a specific icon group, a particular resolution, or access to Windows 10/11 system icons stored in .mun files that simpler tools can miss.
- Download and install Resource Hacker from the official site.
- Go to File > Open and select your target. For Windows 10/11 system icons, navigate to
C:\Windows\SystemResources\and open a.munfile,imageres.dll.mun, for example. - In the left panel, expand Icon Group. Each entry is a complete icon set, with every size for one icon bundled together.
- Click an Icon Group entry. The right pane shows a preview of every size in that group.
- Right-click the Icon Group entry and choose the save option. This exports all sizes for that icon as a single
.icofile. - To save just one resolution, expand the Icon node instead, right-click the specific size entry, and save.
Need everything at once? Resource Hacker’s Action menu includes an option to export all resources from a file to a folder, which is handy when you want every icon from a DLL in one batch. For more information on working with icons and resources, you can visit Wikipedia’s page on ICO file format.
Method #3: Use IconViewer
IconViewer adds an Icons tab to the Properties dialog for any EXE or DLL. No resource trees, no index numbers. You’re picking icons straight from File Explorer.
- Download and install IconViewer. Use the 64-bit version for Windows 10 or 11.
- In File Explorer, right-click the EXE or DLL and choose Properties.
- Click the Icons tab.
- Select the icon you want, then choose a resolution under Device images. 256×256, 32-bit gives you the highest quality.
- Click Save, choose ICO, BMP, or PNG, and save.
If the Icons tab doesn’t appear after installing, the shell extension didn’t register correctly. Reinstall IconViewer and restart File Explorer. You can also customize your Windows taskbar for better icon management.
Method #4: Use an online extractor
An online tool like EXE Icon Extractor handles extraction from a browser tab. Nothing to install, nothing to configure.
- Upload your EXE, DLL, OCX, or CPL file to the site.
- The service parses the PE icon resources and shows each icon with download links.
- Download the ones you want.
Privacy note: Don’t upload files that contain proprietary code or sensitive data. This works fine for a publicly available application’s EXE, not for anything confidential. Always ensure you have the right to redact sensitive information before sharing files.
A note on icon licensing
Windows system icons and commercial application icons are copyrighted. Using them for personal customization, such as changing a shortcut icon or testing a design mockup, is generally fine. Redistributing them publicly or bundling them into your own software usually isn’t. Check the software’s license terms if you’re unsure. For more information on icon licensing, you can visit NirSoft’s IconsExtract page.
Conclusion
IconsExtract handles the bulk of tasks. It’s portable, fast, and capable of sweeping an entire folder tree in one pass. If you’re stuck hunting Windows 11 system icons and coming up empty, Resource Hacker pointed at C:\Windows\SystemResources\ is where that search finally pays off. IconViewer is the right call when you only need one icon from one file. Install it, grab the icon, done. Remember to keep your Windows updated for the latest features and security patches.