Skip to content

Instantly share code, notes, and snippets.

@Stevoisiak
Created March 6, 2017 19:38
Show Gist options
  • Select an option

  • Save Stevoisiak/1ede59568ba58f7bda78613fcfc15542 to your computer and use it in GitHub Desktop.

Select an option

Save Stevoisiak/1ede59568ba58f7bda78613fcfc15542 to your computer and use it in GitHub Desktop.
Extract .ico icon file from .exe with 7zip
You can extract .ico icons from an exe with 7-zip!
@Buggem
Copy link

Buggem commented May 21, 2025

Honorable Nomination at the most useless Gist Awards 2017

@tzunderbird
Copy link

thanks!

@AbsurdDive
Copy link

oh my god...

I'm just...wow

had no f... idea 7zip could do this

@YoraiLevi
Copy link

You can do of course do this on the command line using 7z with e and the -o flag while telling it to extract only the .rsrc/ICON path ...

Example: I just used in order to get my WINEskin Bookworm Adventures shortcut to look proper :) 7z e -oBWA-Icons /Users/conny/Applications/Wineskin/Bookworm\ Adventures\ 2.app/Contents/SharedSupport/prefix/drive_c/Bookworm\ Adventures\ Volume\ 2/BookwormAdventuresVol2.exe .rsrc/ICON

EDIT:

yes I am on macOS, using the Homebrew package p7zip ...

I was using p7zip but as @WinkelCode mentioned, the 7-zip dot org implementation is also available through the sevenzip(aliased as 7zip) package.

thanks worked

@Flithor
Copy link

Flithor commented Jan 28, 2026

Windows GUI:

  • Open 7zFM.
  • Navigate to exe file and select it.
  • Extract it
  • Icon is in /.rsrc/ICON folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment