Features Download Screenshots Blog Pricing

โ† Blog

Disable Hibernation to Free Up Gigabytes (hiberfil.sys Explained)

Open C:\ in DiskRaptor and sort by size. On many PCs one of the biggest single files is hiberfil.sys โ€” often 6, 12 or even 16 GB. It's a hidden system file, you never created it, and if you've never hibernated your PC on purpose, it's pure dead weight.

Here's what it is, how to reclaim it with one command, and when you should leave it alone:

What is hiberfil.sys?

When Windows hibernates, it writes the entire contents of your RAM to disk so it can power off completely and resume later. That snapshot lives in C:\hiberfil.sys. Because Windows must guarantee the space is there before you hibernate, the file is reserved permanently โ€” roughly 40โ€“100% of your installed RAM, depending on Windows version and settings.

16 GB of RAM means up to ~16 GB of disk gone. On a 256 GB SSD, that's over 6% of your entire drive for a feature most desktop users never touch.

DiskRaptor scan showing large system files on C:
Scan C: sorted by size โ€” hiberfil.sys shows up as one giant block.

Sleep vs. hibernate โ€” do you need it?

Don't confuse the two. Sleep keeps RAM powered and wakes in seconds โ€” it doesn't use hiberfil.sys. Hibernate powers off fully and restores from disk. Hibernate matters mainly for laptops running on battery that might fully drain while asleep. On a desktop, or a laptop that's usually plugged in, hibernate is redundant โ€” sleep plus an occasional shutdown covers everything.

Quick check: press Win + X โ†’ Shut down or sign out. If there's no Hibernate entry in the menu, you're already not using it โ€” but the disk space is still reserved.

Free it with one command

Disabling hibernation deletes hiberfil.sys instantly and permanently โ€” until you re-enable it:

  1. Open Start, type cmd, right-click Command Prompt โ†’ Run as administrator
  2. Type powercfg /hibernate off and press Enter (no output = success)
  3. Rescan C: in DiskRaptor โ€” hiberfil.sys is gone, gigabytes back

Changed your mind? powercfg /hibernate on (as admin) brings it back. Nothing else on your system is affected โ€” sleep, shutdown and restart all keep working.

When NOT to disable it

Keep hibernation enabled if any of these apply:

Verify with DiskRaptor

After running the command, rescan and confirm. While you're at it, check the other usual suspects from our 5 biggest space wasters roundup โ€” update caches, old installers and duplicates often hide another 20 GB next to hiberfil.sys:

DiskRaptor treemap visualization
Rescan after the change โ€” the freed space is visible immediately.

Related reading

Ready to see what's eating your disk?

DiskRaptor is free, open source, and runs 100% locally โ€” no telemetry, no tracking.