Your SSD is almost full, and you just discovered a mysterious file called hiberfil.sys eating 20GB of space. Before you panic-delete it, here's what you need to know.
That sinking feeling when you open File Explorer and see the C: drive bar glowing red—I've been there. You dig around, enable hidden files, and there it is: hiberfil.sys, sitting there like an uninvited houseguest consuming gigabytes of your precious storage. The good news? You can disable hiberfil safely, reclaim that space in about two minutes, and the process is completely reversible.
This guide walks you through exactly how to disable hiberfil.sys on both Windows 10 and Windows 11, whether you should bother, and what you'll lose (and gain) by doing it. I'll also cover a middle-ground option most tutorials skip entirely.
What Is hiberfil.sys and Why Is It So Large?
Let's start with the basics. Hiberfil.sys is a hidden system file that Windows creates to support two features: Hibernate mode and Fast Startup. When your PC hibernates, Windows takes everything in your RAM—every open document, every background process, every browser tab—and writes it to this file on your disk. When you power back on, it reads that file and restores your session exactly as you left it.
The Role of hiberfil.sys in Windows Sleep and Hibernate
Here's the part that surprises most people: Windows creates hiberfil.sys even if you never use Hibernate. That's because the file also powers the "Fast Startup" feature, which is enabled by default on most systems. Fast Startup uses hibernation technology to shut down your PC faster by saving the kernel session to hiberfil.sys rather than closing everything completely.
The file size isn't arbitrary. It's typically about 40% of your total physical RAM. Here's what that looks like in practice:
| RAM Size | Typical hiberfil.sys Size |
|---|---|
| 8 GB | ~3.2 GB |
| 16 GB | ~6.4 GB |
| 32 GB | ~12.8 GB |
| 64 GB | ~25.6 GB |
| If you have a 32GB or 64GB machine, you can see why this file becomes a serious space hog. On a 256GB SSD—which is still common in budget and mid-range laptops—that's a significant chunk of your usable storage. |
hiberfil.sys vs. pagefile.sys: What's the Difference?
People often confuse hiberfil.sys with pagefile.sys, and I don't blame them. Both are large, hidden, system-managed files sitting in the root of C:. But they serve completely different purposes:
| Feature | hiberfil.sys | pagefile.sys |
|---|---|---|
| Purpose | Stores RAM contents for Hibernate and Fast Startup | Provides virtual memory when RAM is full |
| Typical Size | ~40% of RAM | System-managed, varies widely |
| Deletion Safety | Generally safe to disable | Risky; can cause instability |
| How to Remove | powercfg /h off | Disable virtual memory (not recommended) |
| The key takeaway: deleting pagefile.sys can cause system instability, but disabling hiberfil.sys is generally safe. I've worked on dozens of machines where disabling hibernation caused zero issues—the same cannot be said for messing with the page file. |
Should You Disable Hibernation? Pros, Cons, and Risks
Before you run any commands, let's think about whether this is the right move for your situation. I've seen users disable hibernation and immediately regret it, usually because they didn't realize what they were giving up.
When Disabling hiberfil.sys Makes Sense
In my experience, disabling hibernation is a smart move if you fall into any of these categories:
- You're on a desktop PC with an SSD. Desktop users rarely use Hibernate—you just close the lid or walk away. Sleep mode handles idle time fine.
- You're running out of disk space and need a quick win. I've helped users reclaim 10-30GB instantly, which can be a lifesaver on a nearly-full SSD.
- You prefer Sleep mode anyway. Sleep keeps your session in RAM and uses minimal power. It doesn't rely on hiberfil.sys at all.
If you're a laptop user who frequently closes the lid for hours or days at a time, Hibernate is genuinely useful. It preserves your battery while keeping your session intact. Think carefully before giving that up.
Hidden Costs: Fast Startup, Battery Life, and SSD Health
Here's what you're trading away when you disable hibernation:
Fast Startup disappears. This is the biggest practical impact. With Fast Startup enabled, boot times on a typical SSD are around 10-15 seconds. Without it, you're looking at 15-30 seconds depending on your hardware. That's not a huge difference, but it's noticeable if you reboot often.
Battery life on laptops takes a hit. Hibernate uses zero power because the system is completely off. If you regularly leave your laptop idle for extended periods, disabling hibernation means either using Sleep (which drains battery slowly) or shutting down entirely (which loses your session).
The SSD health myth. You might have heard that disabling hibernation extends SSD lifespan by reducing write operations. In my testing and based on available data, this is largely a myth. Modern SSDs handle write cycles so efficiently that hibernation writes are negligible. Don't make this decision based on SSD wear concerns.
How to Disable hiberfil.sys in Windows 11 (Command Prompt & PowerShell)
Windows 11 makes this straightforward. You have two options, and both take less than a minute.
Method 1: Using Command Prompt (Admin)
This is the method I recommend to most people because it's direct and reliable:
- Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin) from the menu.
- If prompted by User Account Control, click Yes.
- Type the following command and press Enter:
powercfg /h off
- You won't see a confirmation message—the command runs silently. To verify, navigate to C:\ in File Explorer and check that hiberfil.sys is gone (you'll need to enable hidden files first via View > Show > Hidden items).
That's it. The file is deleted automatically. No need to manually remove it.
Method 2: Using PowerShell (Admin)
If you prefer PowerShell, the process is identical:
- Open the Start menu, type PowerShell, right-click it, and select Run as administrator.
- Run the same command:
powercfg /h off
PowerShell accepts the exact same syntax as Command Prompt for powercfg commands, so there's no learning curve if you're switching between the two.
How to Re-enable Hibernation (If You Change Your Mind)
Changed your mind? No problem. Open an admin terminal and run:
powercfg /h on
Windows will recreate hiberfil.sys automatically. You might need to restart your PC for the file to appear, but the feature will work immediately.
How to Disable hiberfil.sys in Windows 10 (Step-by-Step)
Windows 10 users have the same core command available, plus a GUI alternative for those who prefer clicking over typing.
Method 1: Command Prompt (Works for All Versions)
- Open the Start menu, type cmd, right-click Command Prompt, and select Run as administrator.
- Execute the command:
powercfg /h off
- Check your disk space before and after to confirm the change. You should see the freed space immediately in File Explorer or via
dirin the command prompt.
I've run this command on Windows 10 machines ranging from old HDD laptops to modern NVMe desktops. It works consistently across all versions and hardware configurations.
Method 2: Using Control Panel (For Beginners)
If you're uncomfortable with command-line tools, there's a GUI route—but it comes with a caveat:
- Navigate to Control Panel > Power Options > Choose what the power buttons do.
- Click Change settings that are currently unavailable (you'll need admin rights).
- Uncheck Turn on fast startup and click Save changes.
Here's the catch: this method disables Fast Startup but may not delete hiberfil.sys. In my testing, the file sometimes remains even after unchecking this box. If your goal is to reclaim disk space, use the command-line method instead. The Control Panel approach is fine if you only care about boot behavior.
Troubleshooting: hiberfil.sys Not Deleted or Recreated After Disable
You ran the command, checked the drive, and... the file is still there. Or worse, you deleted it and it came back after a reboot. This happens more often than you'd think.
Why hiberfil.sys Keeps Coming Back
Several culprits can re-enable hibernation without your knowledge:
- Windows Feature Updates. Major updates (like the 23H2 or 24H2 releases) sometimes reset power settings to defaults, which re-enables hibernation.
- OEM power management software. Programs from Dell, HP, Lenovo, and others can trigger hibernation as part of their power profiles.
- Fast Startup still enabled. If you used the Control Panel method, Fast Startup might still be active, which keeps hiberfil.sys alive.
How to Permanently Prevent hiberfil.sys from Returning
If you're tired of fighting this file, here are three ways to make the change stick:
Option 1: Group Policy Editor. Run gpedit.msc, navigate to Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings, and enable "Allow hibernation (on/off)" set to Disabled.
Option 2: Registry edit. Open regedit and navigate to:
HKLM\SYSTEM\CurrentControlSet\Control\Power
Find the HibernateEnabled DWORD value and set it to 0. If it doesn't exist, create it as a new DWORD (32-bit) value.
Option 3: Scheduled task. Create a basic task that runs powercfg /h off at every startup. It's a brute-force approach, but it works even if Windows Update or OEM software tries to re-enable hibernation.
Alternative: Reduce hiberfil.sys Size Instead of Deleting It
What if you want to keep Hibernate and Fast Startup but still reclaim some space? There's a third option that most guides don't mention.
Using 'powercfg /h /type reduced' to Shrink the File
Windows supports a "reduced" hibernation mode that limits the hibernation file to core system processes only. This shrinks the file to roughly 20% of your RAM instead of 40%.
Run this in an admin terminal:
powercfg /h /type reduced
In my testing on a 16GB machine, this dropped hiberfil.sys from ~6.4GB to about 3.2GB. You keep Fast Startup functionality and the ability to hibernate, but you lose the ability to restore user applications after hibernation—only the kernel session is saved.
When to Choose Reduced vs. Full Disable
Here's a simple way to decide:
| Scenario | Best Choice |
|---|---|
| You use Hibernate regularly | Keep full hibernation |
| You value Fast Startup but rarely hibernate | Use reduced mode |
| You never hibernate and want max space | Full disable |
| You can switch between modes anytime with a single command, so there's no risk in experimenting. Start with reduced mode, see if you notice any difference, and adjust from there. |
FAQ
Is it safe to disable hiberfil.sys?
Yes, it's safe for most users. hiberfil.sys is only used for Hibernate mode and Fast Startup. Disabling it won't affect normal operation, Sleep mode, or your files. The only trade-offs are slower boot times (by 5-15 seconds) and losing the ability to hibernate. I've disabled hibernation on dozens of machines over the years and never encountered a stability issue.
How do I disable the hiberfil command?
Open Command Prompt or PowerShell as administrator and run:
powercfg /h off
That's the entire process. Windows automatically deletes hiberfil.sys when you run this command. To verify, check that the file is gone from C:\ (enable hidden files first via File Explorer > View > Hidden items).
Is disabling hibernation good?
It depends on your usage. For desktop users with SSDs, it's generally beneficial—you free up significant disk space and lose very little. For laptop users who rely on Hibernate for battery preservation during long idle periods, it may not be ideal. Consider your workflow before deciding. If you're unsure, try reduced mode as a compromise.
Can I delete hiberfil.sys after disabling hibernation?
You don't need to. When you run powercfg /h off, Windows automatically deletes hiberfil.sys. If the file remains, it's likely because Fast Startup is still enabled. Check Control Panel > Power Options > Choose what the power buttons do, and uncheck "Turn on fast startup." Then run the command again.
Final Thoughts
Disabling hiberfil.sys is one of the quickest, lowest-risk ways to reclaim disk space on a Windows machine. The entire process takes two minutes, requires zero technical expertise beyond running a single command, and is fully reversible.
Before you do it, though, think about how you use your computer. If you're on a desktop with an SSD and never touch Hibernate, go ahead—you'll barely notice the difference. If you're on a laptop that you close for days at a time, consider reduced mode instead.
And if you're still on the fence, remember: you can always switch back. Run powercfg /h on and everything returns to how it was.
Have you successfully freed up space? Share your results in the comments below, or check out our related guide on cleaning up other Windows system files like pagefile.sys and WinSxS.