Windows 11 ships with a native compression protocol that Microsoft rarely documents. Compact OS, a built-in mode, stores system files in a compressed state and executes them directly, reducing the OS footprint on your C: drive. This is not a cache-cleaning utility; it is a persistent operational mode designed for storage-constrained devices.
The protocol is simple: after activation via a command-line script, Windows decompresses files on read, so applications and services behave identically. The trade-off is CPU overhead, which is why the feature is not enabled by default. On modern processors with NVMe storage, the impact is negligible.
How to activate Compact OS
Open PowerShell or Command Prompt as administrator. First, query the current state:
compact /compactos:queryOn most systems with available space, the output will indicate the OS is not in Compact state. To override this and apply compression:
compact /compactos:alwaysThe process takes approximately five minutes. There is no progress bar; the terminal will display Compressing OS binaries until completion. After finishing, it prints a summary with the compression ratio and file count. Compare free space before and after using:
Get-PSDrive -Name CExtending compression to user folders
Compact OS only touches Windows system files. The same compact command can target any directory, such as a Users folder or application directory. The LZX algorithm provides the highest compression ratio:
compact /c /s: