Windows 11 includes a built-in compression feature that can reduce the amount of storage space used by files on an NTFS drive. This can be useful when a drive is running low on free space and you want to recover some capacity without immediately deleting files.
The feature is available directly from File Explorer, so you do not need third-party compression software. Windows can compress files and folders automatically while still allowing you to open and use them normally. The operating system handles the compression and decompression in the background.
However, compressing an entire drive is different from creating a ZIP archive. The files remain in their original locations and can still be accessed normally. Compression may also have a small performance impact because Windows has to compress or decompress data when it is accessed.
Before compressing a drive, it is important to understand which drive you are working with and whether compression is appropriate for it. The following methods explain how to enable NTFS compression in Windows 11 and how to reverse it when necessary.
Method 1: Compress a Drive From File Explorer
The simplest way to enable drive compression is through the drive’s Properties window.
- Press Windows + E to open File Explorer.
- Click This PC in the navigation pane.
- Locate the drive you want to compress.
- Right-click the drive.
- Select Properties.
- Stay on the General tab.
- Look for the option labeled Compress this drive to save disk space.
- Check the box.
- Click Apply.
- Windows will ask whether you want to apply the changes to the drive and its contents.
- Select the option appropriate for your needs.
- Click OK.
Windows will begin processing the files.
The amount of time required depends on the size of the drive and the amount of data stored on it. A drive containing many files can take considerably longer than a mostly empty drive.
You can continue using Windows while the process is running, although disk activity may increase.
Method 2: Compress a Specific Folder Instead of the Entire Drive
You do not necessarily need to compress an entire drive. If only certain data consumes a significant amount of storage, compressing selected folders can be a better approach.
- Open File Explorer.
- Navigate to the folder you want to compress.
- Right-click the folder.
- Select Properties.
- Click Advanced on the General tab.
- Enable Compress contents to save disk space.
- Click OK.
- Click Apply.
- Choose whether the compression should apply to the folder only or to the folder, subfolders, and files.
- Confirm your selection.
Windows will compress the selected data using NTFS compression.
This approach gives you more control than compressing an entire drive. For example, you might choose a folder containing documents that are accessed occasionally rather than compressing every file on the computer.
If a folder contains thousands of files, the operation may take some time.
Method 3: Compress a Drive Using Command Prompt
Advanced users can enable NTFS compression from Command Prompt.
- Press Windows + S.
- Search for Command Prompt.
- Right-click it.
- Select Run as administrator.
- Approve the User Account Control prompt.
- Enter the following command, replacing
C:with the drive you want to compress:
compact /compactos:always
The command above is intended for Windows system-file compression rather than general drive compression.
For NTFS file and directory compression, the compact command can also be used directly with a drive path. For example:
compact /c /s:C:\ /i /q
The /c option enables compression, while /s allows the operation to process files in the specified directory and its subdirectories.
Because command-line compression can affect a large number of files, make sure you understand the command before running it against an entire drive.
For most users, File Explorer is safer and easier because Windows presents the available options graphically.
Method 4: Check Whether a Drive Is Already Compressed
Before changing compression settings, you can check whether files or folders are already using NTFS compression.
- Open File Explorer.
- Right-click the drive or folder.
- Select Properties.
- Check the compression-related options.
For a more detailed check, open Command Prompt and use:
compact /q
You can specify a particular directory if needed:
compact /q C:\Users
The output can help indicate whether compression is currently being used.
You can also compare the Size and Size on disk values in a folder’s Properties window.
These values can differ for several reasons, including file-system allocation and compression.
A compressed file may occupy less physical disk space than its uncompressed size.
Method 5: Compress Windows System Files
Windows 11 also has a separate feature called Compact OS, which can compress Windows system files.
This is different from simply enabling the NTFS compression option on a drive.
To check whether Compact OS is enabled:
- Open Command Prompt as administrator.
- Run:
compact /compactos:query
Windows will report whether the operating system is currently using Compact OS.
If you want Windows to determine whether system-file compression is appropriate, you can use:
compact /compactos:query
Avoid forcing system compression simply because you want to recover a small amount of storage. Windows already manages many aspects of system storage automatically, and system-file compression can have different performance characteristics from ordinary file compression.
If you are trying to free up storage on a Windows 11 installation, Windows Storage settings and temporary-file cleanup should generally be considered before aggressively compressing system data.
Method 6: Compress Files With the Compact Command
The compact utility provides more control over NTFS compression than File Explorer.
To compress a particular folder:
compact /c /s:"C:\Example"
Replace the path with the folder you want to process.
You can also use additional options when needed.
For example:
compact /c /s:"C:\Example" /i
The /i option tells Windows to continue even if errors occur rather than stopping the entire operation.
You can use:
compact /u /s:"C:\Example"
to uncompress files in the specified directory and its subdirectories.
Because the command can affect many files, check the directory carefully before executing it.
It is better to start with a specific folder rather than immediately applying compression to an entire drive.
Method 7: Uncompress a Drive When Necessary
If compression causes unwanted performance changes or you simply want to return the drive to its previous state, you can disable NTFS compression.
- Open File Explorer.
- Click This PC.
- Right-click the compressed drive.
- Select Properties.
- Clear Compress this drive to save disk space.
- Click Apply.
- Choose whether the change should apply to the drive, subfolders, and files.
- Confirm the operation.
Windows will begin decompressing the affected data.
Alternatively, Command Prompt can be used for specific directories:
compact /u /s:"C:\Example"
Replace the path with the directory you want to decompress.
Decompression can also take time, particularly when many files are involved.
Do not interrupt a large compression or decompression operation unnecessarily.
Method 8: Check How Much Space Compression Saves
Compression does not save the same amount of space for every type of file.
Text documents and other files containing highly repetitive data may compress relatively well. Files that are already compressed may show little or no meaningful reduction.
Examples of files that are often already compressed include:
- JPEG images
- MP4 videos
- MP3 audio
- ZIP archives
- RAR archives
- Many software installation packages
You can check a folder’s Properties window before and after compression to see whether the amount of physical disk space used has changed.
Remember that the Size value and Size on disk value measure different things.
The important figure when evaluating storage savings is how much actual disk space the compressed data occupies.
If compression saves very little space, there may be better ways to recover storage, such as removing unnecessary temporary files or uninstalling applications you no longer use.
Method 9: Avoid Compressing Important High-Performance Data Without Testing
Although NTFS compression can save storage space, accessing compressed files requires Windows to decompress them when necessary.
For many everyday files, the difference may be difficult to notice. However, workloads that constantly read and write large amounts of data can behave differently.
Before compressing a drive used for demanding tasks, consider testing compression on a smaller folder first.
This is particularly useful for:
- Large software projects
- Frequently modified databases
- Heavy development workloads
- Large media-processing directories
- Frequently accessed application data
You should also avoid treating NTFS compression as a replacement for a backup.
Compression does not protect files from accidental deletion, drive failure, malware, or other forms of data loss.
Keep important data backed up independently.
Method 10: Use Windows Storage Cleanup Before Compressing
If the main reason for compressing a drive is that it is almost full, check whether Windows can safely remove unnecessary data first.
Windows 11 provides storage-management options under Settings.
- Press Windows + I.
- Click System.
- Select Storage.
- Review the categories consuming space.
- Open Temporary files.
- Review the available items.
- Select files you no longer need.
- Click the appropriate cleanup option.
You can also review:
- Installed apps
- Temporary files
- Large files
- Other storage categories
- Recycle Bin contents
Removing unnecessary data can sometimes recover considerably more space than compressing files.
Once unnecessary files have been removed, you can decide whether NTFS compression is still needed.
Conclusion
Windows 11 provides built-in NTFS compression that can reduce the physical disk space consumed by compatible files. You can enable it from a drive or folder’s Properties window, making it accessible even if you have never used command-line storage tools.
For more control, the compact command can compress or decompress specific directories. Windows also has Compact OS for compressing certain operating-system files, although this should not be confused with ordinary NTFS compression.
Compressing selected folders is often a more controlled approach than compressing an entire drive. It allows you to target data where storage savings are useful while limiting potential performance effects.
Before compressing a large drive, check whether you can free space by removing unnecessary files instead. Also remember that compression is not a backup strategy.
If you later decide that compression is not worthwhile, you can disable it from the same Properties window or use the compact /u command for specific directories.
FAQs
1. Does compressing a drive delete any files?
No. NTFS compression does not intentionally delete your files. Windows stores the data in compressed form while keeping the files accessible through their normal locations.
2. Does compressing a drive make Windows slower?
It can have some performance impact because Windows may need to compress and decompress data during file operations. The actual effect depends on the hardware, type of files, and workload.
3. Can I compress only certain folders?
Yes. You can enable Compress contents to save disk space through a folder’s Properties and apply it to that folder rather than the entire drive.
4. Is NTFS compression the same as creating a ZIP file?
No. NTFS compression works transparently in the file system. You can continue opening and editing compressed files normally. A ZIP archive instead packages files into a separate archive that must be opened or extracted to access its contents normally.
Quick Summary
- Use Drive Properties to enable NTFS compression on a drive.
- Compress individual folders when you want more control over which data is affected.
- Use the
compactcommand for advanced compression and decompression tasks.





