Compressing EXE files either using WinRAR or 7Zip does not yield anything, meaning, the compressed RAR or 7Zip file is just the same size of the EXE file, is there a way to compress EXE file and get at least about 15-20 compression ratio?

2 Answers 2


Normally, x86 machine code does compress quite well (not by a factor of 15-20 though). So if the exe does not compress well, this indicates that it might already be compressed. There are some tools to self-decompress exe files when run, so the user wouldn't even notice that it is compressed.

Alternatively, the exe might contain large assets, like JPEG graphics or compressed audio, which can not be compressed well.

I guess without more information on the exe file and what you want to achieve, you are out of luck.


The Windows 10 compact command includes an option for compressing executable file.

/EXE Use compression optimized for executable files which are read frequently and not modified. Supported algorithms are:

         XPRESS4K  (fastest) (default)
         LZX       (most compact)

Compact /c /exe:lzx <name>
  • The compression ratio is 1.0 to 1. as per output when I tried it. Jul 21, 2020 at 22:41
  • @cyberquarks There must be something unusual about your file. I chose an EXE at random and got 8.8. to 1. Jul 22, 2020 at 16:09
  • @cyberquarks, it's pretty consistent with what you wrote in the question: you've tried to compress it with different tools, but didn't shrink -- which has nothing to do with the file being an EXE: general-purpose compression tools don't care what the file is, and EXE files do compress adequately (as Fritz already said). It's just that it probably* is a big file with already compressed elements inside. (* We can only guess, as we have no information about your file, and it also seems you haven't quite tried any other EXE to see how they differ.)
    – Sz.
    Jan 9 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.