# Is there a way to compress exe files?

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?

Super User Asked on November 14, 2021

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)
XPRESS8K
XPRESS16K
LZX       (most compact)

Compact /c /exe:lzx <name>


Answered by David Marshall on November 14, 2021

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.

Answered by Fritz on November 14, 2021

## Related Questions

### QWERTZ unknown keyboard layout on HP EliteBook

1  Asked on November 29, 2020 by faro

1  Asked on November 28, 2020 by jerard-marca

### How to automatize a ssh tunnel over various hosts?

1  Asked on November 28, 2020 by luis-decker

### Can’t type text into table cell when form is protected

1  Asked on November 28, 2020 by gus

### Using a function as the lookup_value for MATCH

1  Asked on November 28, 2020 by francesco

2  Asked on November 27, 2020

### PC works for a while then dies

0  Asked on November 27, 2020

### Is it possible to share OS files between multiple VMs

1  Asked on November 27, 2020 by steven-chen

### ACPI.sys high CPU usage

1  Asked on November 27, 2020 by thomas-mller

### Does the HP Pavilion Dv5 1008TU support additional RAM?

0  Asked on November 27, 2020 by pigeonburger

### During a long session, Windows 10 abruptly loses all USB ports and also ability to remote connect. Has anyone come across this issue?

0  Asked on November 27, 2020 by stilez

### Programmatically getting an executable’s Certificate Details

2  Asked on November 27, 2020 by claudiu-dragan

### MS Teams integration with SVN

0  Asked on November 27, 2020 by mark-stewart

### Application / Device setup for remote network connections

1  Asked on November 26, 2020 by olli

### Why does launching IDLE from a second terminal window eventually lead to it freezing both? What’s a good work-around or fix?

1  Asked on November 26, 2020

### Error: Cannot write subtitles file for SRT files

0  Asked on November 26, 2020 by computer

### Can I mix 4gb RAM with 2gb RAM in my Precision T1700?

1  Asked on November 26, 2020 by necdyte

### Windows 10 shutting down after a few minutes sleeping

1  Asked on November 25, 2020 by jn-coe