If you need to extract an icon from a program file or other type of file (such as .dll files), there are many free tools available that make the task easy. However, very few will extract high quality icon images from the files.
Most free icon extraction tools will extract smaller icon image sizes, such as 16×16, 32×32, or 48×48 pixels. Some icons come in larger sizes, such as icons used in Windows. There is a free, small utility, called BeCyIconGrabber, that allows you to view and save icons and cursors of any size contained in .exe, .dll, .icl, .ocx, .cpl, .src, .ico, and .cur files. You can save the extracted icons individually as a .png file, .bmp file, .ico file, or .cur file, or in groups within resource libraries, i.e., .dll or .icl files.
BeCyIconGrabber can be downloaded as an installable file or as a portable executable that does not need to be installed. We downloaded the portable file.
Double-click on the installer file and follow the installation instructions and then run the program, or double-click on the portable .exe file to run the program.
There are three tabs on the left side of the BeCyIconGrabber window. Use the Directory tab to select a file from which to extract one or more icons. Use the Search tab to find all icons in a selected directory, and possibly its subdirectories. Use the Favorites tab to “bookmark” files you need to access often.
As an example of extracting icons from a single file, we will select the Internet Explorer executable (.exe) file from which we will extract a large icon. Double-click on the Local Disk (C:) drive on the Directory tab.
Navigate to the following directory and select the iexplore.exe file.
C:\Program Files\Internet Explorer
Tabs display on the right side of the BeCyIconGrabber window for the different sizes of icons available in the selected file.
NOTE: You don’t necessarily have to select files that contain icons. If you select a file without icons, BeCyIconGrabber automatically extracts the icons from the executable file for the program associated with the selected file.
Internet Explorer has some large, 256 x 256, icons in its executable file. To extract one of these icons, click the 256 x 256 tab and click Save at the bottom of the window.
The Save As dialog box displays. All available icons in the selected file are displayed in the Format box. By default, Icon Files (*.ico) is selected in the Save as type drop-down list and all the icons in the file are selected. If you want to save all the icons in the Format box into one file, you must select either the .ico type or the .cur type. If you select .png or .bmp as the type, you must select only one icon to save in the Format box.
To save only a 256 x 256 icon, select the 256 x 256 32 bit icon in the Format box. Enter a name for the file in the File name edit box, and select a type for the file from the Save as type drop-down list. Click Save.
You can also specify how many colors are used in a selected icon, or the color depth. To do this, right-click on the icon and select Colors from the popup menu. Select 1 bit, 4 bit, 8 bit, or 24 bit to specify the color depth for that icon. To automatically select the color depth, select (automatic) from the submenu, which is the default choice.
For files you select often in BeCyIconGrabber, you can add the files to your Favorites list. To do so, select the file on the Directory tab, or in the list of results on the Search tab, and click Favorites at the bottom of the left side of the window.
The selected file is added to the Favorites tab. If you don’t want to keep a file as a favorite, select it on the Favorites tab and click Remove.
The (Shell) item is available on the Favorites tab by default and cannot be removed. It provides access to the icons used by the Windows operating system. If you’re looking for a general icon to use, (Shell) is a good place to start.
Besides searching for and selected files on your own from which to extract icons, you can have BeCyIconGrabber search for all files containing icons in a selected directory. To do this, click the Search tab and click New Search.
On the Search dialog box, click Browse to the right of the Search in Directory edit box.
NOTE: You can also enter the full path manually in the edit box.
On the Browse for Folder dialog box, navigate to the directory in which you want to search for icons, select the directory, and click OK.
To search in all the subdirectories within the selected directory, click the Recursively Search Sub Directories check box.
Some files contain more than one icon, or symbol, in the file. If you want to only find files with a certain, minimum number of symbols, enter the desired number in the Minimum number of contained symbols for a file to be listed edit box. The default value is 1.
Symbols contained in files in the selected directory and subdirectories are automatically extracted and displayed on tabs on the right side of the BeCyIconGrabber window. To limit the number of symbols to be extracted during the search, enter the desired number in the Maximum number of symbols to immediately extract during search edit box. The default value is 10000.
Click OK to begin the search. We chose to search for all icons in the Programs Files directory and all subdirectories.
The files being scanned display in a message at the bottom of the BeCyIconGrabber window. To stop the search, click Cancel.
All the files containing icons display in a list on the Search tab. Initially, all the icons from all the files found are displayed on tabs on the right side of the BeCyIconGrabber window. To view icons only for a specific file in the list, select that file. Only the icons contained in that file are displayed on tabs on the right.
In addition to extracting icons from files, BeCyIconGrabber can also extract cursors. By default, icons are only selected. To extract cursors, as well as icons, select Cursors from the Options menu.
NOTE: When you change the Icons and Cursors selections, you must run the search again, or deselect the file on the Directory tab and select it again for the change to take effect.
The following image shows the results of searching for only cursors in the Programs Files directory and subdirectories.
Extracting icons from files is useful if you create a lot of specialized shortcuts to scripts or batch files and you want to attach icons to the shortcuts to easily identify them. BeCyIconGrabber makes it easy to extract high quality icons in various sizes.
Download BeCyIconGrabber from http://www.becyhome.de/download_eng.htm.
- Published 03/22/12