Back to rankings

IridiumIO/CompactGUI

Visual Basic .NET

Reduce the space taken up by games and programs on disk by using native Windows APIs

compressionstandalonewindowsgamecompressing-folderswindows-10vbnetwpfwindows11dotnetdotnet9csharp
Star Growth
Stars
8.2k
Forks
319
Weekly Growth
Issues
65
2k4k6k8k
Oct 2017Sep 2020Aug 2023Jul 2026
README

GitHub Downloads (all assets, all releases) GitHub Release

CompactGUI transparently compresses your games and programs reducing the space they use without affecting their functionality. It works directly with the Win32 API to achieve the same thing as the native compact.exe command-line tool available from Windows 10 onwards.

   


English - Русский - 简体中文

 

What is compact.exe? It's a commandlet with a collection of new algorithms introduced in Windows 10 that allow you to transparently compress games, programs and other folders with virtually no performance loss. CompactGUI simply leverages the same API to expose the functionality in a more user-friendly way.

Transparently? What does that mean? Transparent compression means that files can still be used normally on the computer as if nothing had happened - they don't get repackaged like Zip and Rar files do. You can still browse, launch games and programs exactly as you did before, except they take up less space.

How is this different from the built-in compression in older versions of Windows? This is similar to the old compression built-in to Windows (Right click > Properties > Compress to save space) however the newer algorithms introduced in Windows 10+ are far superior, resulting in greater compression ratios with almost no performance impact. Those with older HDDs may even see a performance gain in the form of reduced loading times - smaller files can be read into RAM faster, and the CPU can decompress them on the fly much faster than a typical HDD can supply them. More information can be found here

Installation

Static Badge

Or install with Winget:

winget install CompactGUI

Uses

Use this tool to compress folders while still being able to use/run them normally:

  • Reduce the size of games (e.g. ARK-Survival Evolved: 169 GB > 91.2 GB)
  • Reduce the size of programs (e.g. Adobe Photoshop: 1.71 GB > 886 MB)
  • Compress any other folder on your computer

Extra Features

  • Visual feedback on compression progress and statistics
  • Configurable list of poorly-compressed filetypes that can be skipped.
  • Online integration with community-sourced database to get compression estimates
    • Steam game results can be submitted to the online database from within CompactGUI
  • Integration into Windows Explorer context menus for easier use.
  • Analyze the status of existing folders
  • Background Watcher - keeps track of folders and monitors them for changes (e.g. Steam game updates) and automatically keeps them compressed in the background.

See the Wiki for a list of that have been tested from over 100,000 submissions

 

Caveat

This tool should not be used on games that utilise DirectStorage on Windows 11.

DirectStorage is a new API that allows games to load assets directly from the SSD, bypassing the CPU. Compressed files will need to be decompressed before being sent to the GPU, which will negate any performance gains.

Background

Windows 10 introduced a little-known but very useful tool called compact.exe that allows one to compress folders and files on disk, decompressing them at runtime. With any modern CPU (I have tested as old as an i3-370M from 2010 with negligible impact), this added load is hardly noticed, and the space savings are of most use on those with smaller SSDs.

As program folders and games can be shrunk by up to 60%, this has the added bonus of potentially reducing load times - especially on slower HDDs.

More information on the inbuilt Windows function can be found here and here or by typing compact /q into the commandline

This tool is intentionally designed to only compress folders and files. Whole drives and entire Windows installations cannot be modified from within CompactGUI - users seeking that functionality should use compact /compactOS from the commandline.

The compression is fully transparent - programs, games and files can still be accessed as normal, and show up in Explorer as they normally would — they'll just be decompressed into RAM at runtime, staying compressed on disk.

Compression Modes

By default, the program runs Compact with the XPRESS8K algorithm active. This provides a good balance between compression speed and size reduction. The default that Windows uses is XPRESS4K which is faster but compresses less.

Optional Compression Modes:

Algorithm Core Advantages Detailed Description
XPRESS4K Fastest, but weakest Suitable for game files with extremely high read speed requirements, it can maximize performance while compressing.
XPRESS8K Balance of speed and compression A better balance has been achieved between compression speed and compression ratio.
XPRESS16K Slower, but stronger Suitable for scenarios with limited storage space and low loading speed requirements.
LZX Slowest, but strongest Suitable for storing archived files, backup data, or cold data that is not frequently accessed.

Screenshots

Like this project?

Please consider leaving a tip on Ko-Fi :)

Buy Me a Coffee at ko-fi.com

Related repositories
headroomlabs-ai/headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

PythonPyPIApache License 2.0agentai
headroom-docs.vercel.app/docs
61k4.6k
deepspeedai/DeepSpeed

DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.

PythonPyPIApache License 2.0deep-learningpytorch
deepspeed.ai
42.8k4.9k
microsoft/DeepSpeed

DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.

PythonPyPIdeep-learningpytorch
deepspeed.ai
36.2k4.2k
gchq/CyberChef

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

JavaScriptnpmApache License 2.0data-analysisdata-manipulation
gchq.github.io/CyberChef
35.4k4k
leandromoreira/digital_video_introduction

A hands-on introduction to video technology: image, video, codec (av1, vp9, h265) and more (ffmpeg encoding). Translations: 🇺🇸 🇨🇳 🇯🇵 🇮🇹 🇰🇷 🇷🇺 🇧🇷 🇪🇸

Jupyter NotebookBSD 3-Clause "New" or "Revised" Licensevideocodec
github.com/leandromoreira/introduction_video_technology
16.3k1.4k
borgbackup/borg

Deduplicating archiver with compression and authenticated encryption.

PythonPyPIOtherpythoncompression
borgbackup.org
13.5k864
PaddlePaddle/PaddleNLP

Easy-to-use and powerful LLM and SLM library with awesome model zoo.

PythonPyPIApache License 2.0nlpembedding
paddlenlp.readthedocs.io
13k3k
lz4/lz4

Extremely Fast Compression algorithm

COtherlz4c
lz4.org
11.9k1.6k
zeux/meshoptimizer

Mesh optimization library that makes meshes smaller and faster to render

C++MIT Licensegpumesh-processing
meshoptimizer.org
8.1k700
peazip/PeaZip

Free Zip / Unzip software and Rar file extractor. Cross-platform file and archive manager. Features volume spanning, compression, authenticated encryption. Supports 7Z, 7-Zip sfx, ACE, ARJ, Brotli, BZ2, CAB, CHM, CPIO, DEB, GZ, ISO, JAR, LHA/LZH, NSIS, OOo, PAQ/LPAQ, PEA, QUAD, RAR, RPM, split, TAR, Z, ZIP, ZIPX, Zstandard.

PascalGNU Lesser General Public License v3.0peaziprar
peazip.github.io
7.7k390
google/draco

Draco is a library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.

C++Apache License 2.0point-cloud3d-graphics
google.github.io/draco/
7.4k1.1k
zetbaitsu/Compressor

An android image compression library.

Kotlincompressorphotos
7.2k963