What Is hiberfil.sys? How to Delete It and Free Up Disk Space in Windows

If you’ve ever analyzed your Windows drive using tools like WinDirStat, TreeSize, or WizTree, you’ve probably noticed a massive hidden file called hiberfil.sys. Depending on your computer’s memory, this file can consume anywhere from several gigabytes to over 30 GB of storage.

For users struggling with limited SSD space, removing this file can instantly recover a significant amount of disk capacity. Before deleting it, however, it’s important to understand its purpose and whether disabling it is the right choice for your system.

What Is hiberfil.sys?

hiberfil.sys is a protected Windows system file created for the Hibernate feature.

When your computer enters Hibernate mode, Windows saves the current contents of your RAM—including open applications, documents, browser tabs, and system state—to this file before completely powering off the machine.

The next time you start your PC, Windows loads this information back into memory, allowing you to continue exactly where you left off instead of performing a full startup.

Unlike Sleep mode, Hibernate uses no power while the computer is turned off.


Why Is hiberfil.sys So Large?

The size of hiberfil.sys is directly related to the amount of installed physical memory (RAM).

Typical examples include:

  • 8 GB RAM: approximately 6–8 GB file size
  • 16 GB RAM: approximately 12–16 GB
  • 32 GB RAM: approximately 24–32 GB
  • 64 GB RAM: can exceed 40 GB

Modern computers with large amounts of RAM often end up dedicating a considerable portion of their SSD storage to this single file.


Is It Safe to Delete hiberfil.sys?

Yes—provided that you don’t use Hibernate.

If you normally:

  • Shut down your PC,
  • Restart Windows regularly,
  • Or only use Sleep mode,

then disabling Hibernate is generally safe and will not affect everyday computer usage.

However, there is one important consideration.

Fast Startup May Also Be Disabled

Windows’ Fast Startup feature relies on the Hibernate system. Turning off Hibernate may also disable Fast Startup, which could result in slightly longer boot times on some computers.

For users with modern NVMe or SSD drives, the difference is usually minimal.


Why Can’t You Delete the File Manually?

Since hiberfil.sys is a protected operating system file, Windows prevents users from deleting it through File Explorer.

Even with administrator permissions, pressing the Delete key won’t remove it.

The proper method is to disable Hibernate, after which Windows automatically deletes the file.


How to Delete hiberfil.sys

Follow these steps to remove the file safely.

Step 1: Open Command Prompt as Administrator

Search for:

cmd

or

Command Prompt

Then choose Run as administrator.


Step 2: Disable Hibernate

Type the following command and press Enter:

powercfg -h off

Windows will usually return directly to the command prompt without displaying a success message.

That’s completely normal.


Step 3: Verify the Result

Open your C: drive or run your preferred disk analyzer again.

You’ll notice that hiberfil.sys has disappeared and the storage space it occupied has been immediately released.


How to Restore hiberfil.sys Later

If you decide to use Hibernate again or want to re-enable Fast Startup, simply execute this command in an elevated Command Prompt:

powercfg -h on

Windows will automatically recreate the hiberfil.sys file during the process.


Should You Disable Hibernate?

Disabling Hibernate is worth considering if:

  • Your SSD is nearly full.
  • You never use Hibernate.
  • You prefer maximizing available storage.
  • Your computer already boots quickly from an SSD.

You may want to leave it enabled if:

  • You regularly use Hibernate.
  • You work on long sessions and prefer resuming exactly where you stopped.
  • You’re using a laptop and frequently save battery by hibernating instead of shutting down.

Frequently Asked Questions

Does deleting hiberfil.sys improve performance?

Removing the file itself doesn’t make Windows faster. The primary benefit is recovering disk space, which can indirectly help overall system performance if your storage was nearly full.


Can I simply delete hiberfil.sys from File Explorer?

No. The file is protected by Windows and cannot be removed manually. It is automatically deleted only after Hibernate is disabled.


Will disabling Hibernate damage Windows?

No. Windows functions normally without Hibernate. The only noticeable change is that Hibernate—and potentially Fast Startup—will no longer be available until you enable the feature again.


Is Sleep mode affected?

No. Sleep mode is a separate power-saving feature and continues to work even after Hibernate has been disabled on most Windows systems.


Final Thoughts

The hiberfil.sys file serves an important purpose for Windows users who rely on Hibernate, but it isn’t essential for everyone. If your computer rarely uses this feature, disabling Hibernate is one of the easiest ways to recover several gigabytes of valuable storage.

With a single command, you can free up disk space immediately, and if you ever need Hibernate again, re-enabling it takes only a few seconds. For anyone looking to optimize storage on a Windows PC, this is a simple and effective maintenance step.

Scroll to Top