Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Enable File Compression Windows 11: How To

· 6 min read · Home Tech

In this article
  1. What NTFS Compression Actually Does
  2. How to Enable Compression on a File or Folder
  3. How to Check if Compression Is Working
  4. Choosing What to Compress
  5. Common Problems and Misconceptions
  6. Compression vs. ZIP vs. Other Tools
  7. Performance and Safety Considerations
  8. Frequently Asked Questions

To enable file compression in Windows 11, open File Explorer, right-click the file or folder you want to compress, select Properties, click the Advanced button on the General tab, check the box for Compress contents to save disk space, and click OK. This turns on NTFS compression for that item, which automatically shrinks files on the fly to free up storage space without needing a separate program.

What NTFS Compression Actually Does

NTFS compression is a built-in feature of the Windows file system that reduces the amount of disk space files use. When you enable it on a file or folder, Windows compresses the data as it writes it to the disk and decompresses it automatically when you open it. The process is transparent – you still see and use the files normally, but they take up less physical space on your hard drive or SSD.

Compression works best on files that have lots of repetitive data, such as text documents, spreadsheets, XML files, and some image formats. It has little effect on files that are already compressed, like JPEG photos, MP3 audio, MP4 video, or ZIP archives – those formats already have their data squeezed, so trying to compress them again usually saves almost nothing.

How to Enable Compression on a File or Folder

  1. Open File Explorer and navigate to the file or folder you want to compress.
  2. Right-click the item and choose Properties from the context menu.
  3. On the General tab, click the Advanced… button near the bottom.
  4. In the Advanced Attributes window, check the box labeled Compress contents to save disk space.
  5. Click OK, then click Apply in the Properties window.
  6. If you're compressing a folder, Windows will ask whether you want to apply the change to just that folder or to the folder, subfolders, and files. Choose the option that fits what you need – applying to everything is usually what you want.

You can also enable compression on an entire drive. Right-click the drive in File Explorer, select Properties, check Compress this drive to save disk space on the General tab, and click Apply. This compresses all files on the drive that aren't already compressed.

How to Check if Compression Is Working

After enabling compression, you can verify it's active in a couple of ways:

  • File Explorer columns: Add the “Size” and “Size on disk” columns to your folder view. If compression is working, “Size on disk” will be noticeably smaller than “Size” for compressible files.
  • File attributes: Right-click a compressed file, go to Properties, and look at the Advanced button – the compress box will be checked.
  • Command line: Open Command Prompt and type compact /q filename to see the compression ratio for a specific file, or compact /s to list compressed files in a folder.

Choosing What to Compress

Not every file benefits from compression. Here are practical guidelines:

  • Good candidates: Office documents, text files, log files, CSV exports, XML, JSON, and other plain-text or lightly structured formats. These often compress to 50-80% of their original size.
  • Poor candidates: JPEG, PNG, GIF, MP3, MP4, ZIP, EXE, and most already-compressed formats. You might save 1-5% at best, and you'll still pay the CPU cost.
  • System files and program folders: Avoid compressing Windows system folders or installed applications. Many programs expect their files to be uncompressed and may experience slowdowns or errors if they're compressed.

A good rule is to compress only your data folders – documents, spreadsheets, project files – and leave the operating system and applications alone.

Common Problems and Misconceptions

“It will make my PC faster.” Not usually. Compression saves disk space but adds CPU overhead. On modern multi-core processors, the performance hit is often noticeable only when opening large files repeatedly. On an older or low-power CPU, you may see slower file access.

“It works the same on SSDs.” It works, but the benefit is different. On a traditional hard drive, compression can actually improve read speed because the drive reads less data. On an SSD, the drive is already fast, and the CPU time spent compressing/decompressing can make operations slightly slower while saving the same space.

“Compressed files are encrypted.” No – compression and encryption are separate features. You can't have both NTFS compression and EFS encryption on the same file. If you try to enable both, Windows will warn you and only allow one.

“I can compress a folder and then move it anywhere.” The compression attribute stays with the file as long as it's on an NTFS volume. If you copy or move the file to a FAT32 or exFAT drive (like a USB stick), compression is removed.

Compression vs. ZIP vs. Other Tools

NTFS compression is different from creating a ZIP file. A ZIP file is a single compressed archive that you must extract to use the contents. NTFS compression works invisibly – files stay in their normal location and open normally, but they take less space. You don't need to “unzip” anything.

Compared to third-party tools like 7-Zip or WinRAR, NTFS compression is simpler and always available, but it offers less control and generally lower compression ratios. Those tools let you choose algorithms, set compression levels, and create archives, which is useful for sharing files or backing up.

Windows also has the compact command-line tool, which gives you more control. For example, compact /c /s:D:\data compresses everything in the D:\data folder and its subfolders, and compact /u uncompresses files. You can also set a compression ratio threshold with compact /q to see what's actually being compressed.

Performance and Safety Considerations

Compression is safe – it doesn't damage files. But there are a few things to keep in mind:

  • Backup compatibility: Some backup programs may not handle compressed files correctly, or may restore them without the compression attribute. Test your backup/restore process if you rely on it.
  • Disk defragmentation: On traditional hard drives, compressed files can become more fragmented over time. Windows Defragmenter handles this, but it's worth knowing.
  • Page file and hibernation file: These system files are not compressed, and you shouldn't try to compress them manually.
  • Transferring files: If you move a compressed file to a non-NTFS drive (like a USB flash drive formatted as exFAT), it will be stored uncompressed and will take up full space.

Frequently Asked Questions

Does compressing files slow down my computer? It can, especially on older CPUs or when opening large files repeatedly. On modern hardware, the impact is usually small, but it's not zero. If you notice sluggishness, try compressing only folders you rarely access.

Can I compress the entire C: drive? Yes, but it's not recommended. Compressing system files and program folders can cause performance issues and, in rare cases, errors with some applications. It's safer to compress only data folders.

Will compression work on files I download later? No. Compression applies only to files that exist when you enable it. New files added to a compressed folder will inherit the compression attribute, but files you download to an uncompressed location will not be compressed automatically.

How do I turn off compression? Follow the same steps as enabling it, but uncheck the “Compress contents to save disk space” box. For a folder, you'll be asked if you want to apply the change to subfolders and files – choose “Apply changes to this folder, subfolders and files” to decompress everything inside.

Does compression work on files stored in OneDrive or cloud folders? NTFS compression works on the local copy of the file. If you use OneDrive’s “Files On-Demand” feature, the file may be a placeholder that isn't actually stored locally, so compression won't have any effect until the file is downloaded.

What's the difference between “Compress contents” and “Encrypt contents”? Compression reduces file size; encryption protects data with a password. They are mutually exclusive on NTFS – you can't apply both to the same file. If you need both, you'd have to encrypt the file first and then compress it with a tool that supports encryption, or use a different approach.