sodcalculator

10 Tech How-To

How to Compress Windows 10 OS (Free & Safe)

Guide 10-53436 · Updated · Step by step

This guide shows you how to shrink the space Windows 10 takes up on your drive, freeing valuable storage without breaking your system. You’ll learn built-in tools like Disk Cleanup, Storage Sense, and Compact OS, plus how to move or compress optional files. No third-party software needed.

What You’ll Need

  • An administrator account on the PC
  • At least 10–15 GB of free space to work with (for temporary files during cleanup)
  • A stable power connection (laptop) to avoid interruptions
  • About 30–60 minutes of time, depending on drive size

Step-by-Step

  1. Back up important files. Compression is safe, but a system restore point or file history backup protects you. Go to Settings → Update & Security → Backup and set up a backup, or create a restore point via Control Panel → System → System Protection.
  2. Run Disk Cleanup. Type “Disk Cleanup” in the Start menu, open it, select your system drive (usually C:), and click OK. Click “Clean up system files” to include Windows Update leftovers, temporary files, and old system images. Check everything you want to remove, then click OK.
  3. Enable Storage Sense. Go to Settings → System → Storage and turn on Storage Sense. Click “Configure Storage Sense or run it now” to set it to clean temporary files and recycle bin items automatically. You can also run it immediately.
  4. Move or compress optional features. In the same Storage screen, click “Manage optional features” and remove any features you don’t use (like old Windows Media Player or manual language packs). Also, go to Settings → Apps → Apps & features and uninstall any large apps you don’t need.
  5. Compress the OS with Compact OS. Open Command Prompt as administrator (right-click Start → Windows Terminal (Admin) or Command Prompt (Admin)). Type compact /compactos:always and press Enter. This compresses system files in place, typically saving 2–6 GB on a 64-bit system. To undo, run compact /compactos:never.
  6. Reduce system restore space. In the System Protection window (from step 1), select your drive, click Configure, and reduce the max usage to 5–10% (or disable for the system drive if you have another backup). This frees several GB.
  7. Move your page file and hibernation file (optional). If you have a second drive, you can move the page file: Control Panel → System → Advanced system settings → Settings (under Performance) → Advanced → Change (under Virtual memory). Uncheck “Automatically manage”, select your system drive, set “No paging file”, then select the second drive and set “System managed size”. For hibernation, open Command Prompt as admin and type powercfg /h off to disable hibernation (frees ~75% of your RAM size). Note: disabling hibernation removes fast startup.
  8. Clean up Windows Update cache. Open Command Prompt as admin and run net stop wuauserv, then delete the contents of C:\Windows\SoftwareDistribution\Download, then run net start wuauserv. This clears old update files.
  9. Verify the results. After all steps, check your free space in This PC. You should see a noticeable gain. If you used Compact OS, you can check compression stats with compact /compactos:query.
  10. Reboot. Restart your PC to finalize all changes and let Windows finish any cleanup tasks.

Common Mistakes

  • Skipping the backup. Even though compression is reversible, a bad update or accidental deletion can cause issues. Always have a restore point.
  • Disabling hibernation without knowing the side effects. Fast startup is disabled, so your PC will boot slower. If you use BitLocker, you may need to suspend it before disabling hibernation.
  • Moving the page file to a slower drive. This can reduce performance. Only move it to another SSD or a fast HDD.
  • Deleting everything in Disk Cleanup without checking. Some items like “Previous Windows installations” are safe to remove, but if you plan to roll back a recent update, keep them.
  • Using Compact OS on a very slow HDD. Compression can increase CPU usage and slow down file access on older drives. It’s best for SSDs.

Tips

  • Use the built-in “Free up space now” in Storage Sense for a quick one-click cleanup.
  • Run Disk Cleanup monthly to keep temporary files from piling up.
  • If you have a small SSD (128 GB or less), consider moving user folders (Documents, Downloads) to a secondary drive via their Properties → Location tab.
  • Check for large files with the Storage settings page—it shows a breakdown by category.
  • For maximum compression, combine Compact OS with disabling hibernation and moving the page file, but only if you don’t need those features.

Troubleshooting

  • Compact OS fails with an error. Make sure you’re running Command Prompt as administrator. If you get “access denied”, check that your user account has admin rights. Also, ensure you have at least 10% free space on the system drive.
  • System feels slower after compression. On HDDs, compression can cause lag. Run compact /compactos:never to revert. If you still want space, consider uninstalling apps or moving files instead.
  • Disk Cleanup doesn’t show “Clean up system files”. This button only appears when you run Disk Cleanup as administrator. Right-click the shortcut and select “Run as administrator”.
  • Hibernation file won’t disable. If you have Fast Startup enabled, you may need to turn it off first in Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable → uncheck “Turn on fast startup”. Then run powercfg /h off again.
  • Storage Sense doesn’t free as much as expected. It only removes files that meet your criteria. Increase the age thresholds or run Disk Cleanup as well.
  • Windows Update cache won’t clear. If the service won’t stop, try stopping it from Services.msc (right-click Start → Run → services.msc, find Windows Update, stop it). Then delete the folder contents.

Frequently Asked Questions

Is Compact OS safe?

Yes, it’s a Microsoft-supported feature that compresses system files without affecting functionality. It’s reversible with compact /compactos:never.

How much space can I free up?

Typically 5–15 GB, depending on your drive size, installed apps, and whether you disable hibernation. Compact OS alone saves 2–6 GB.

Will compression slow down my PC?

On SSDs, the impact is minimal. On HDDs, you may notice slower file access, especially for large programs. If so, revert Compact OS.

Can I compress Windows 10 to a ZIP file?

No, you can’t compress the entire OS into a ZIP while it’s running. Compact OS compresses files in place, and you can’t zip the system drive while Windows is active.

What’s the difference between Disk Cleanup and Storage Sense?

Both clean temporary files, but Storage Sense runs automatically and can also clean recycle bin and Downloads folder. Disk Cleanup is more thorough with system files.

Do I need third-party software?

No, all steps use built-in Windows tools. Third-party tools may offer more options but aren’t necessary.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →