What is hiberfil.sys

Last updated: April 1, 2026

Quick Answer: Hiberfil.sys is a Windows system file that stores the contents of your computer's RAM during hibernation mode. It's typically equal in size to your total installed RAM and located in the C: drive root directory.

Key Facts

What Hiberfil.sys Does

Hiberfil.sys stands for Hibernation File and is a crucial system file in Windows operating systems. When your computer enters hibernation mode, Windows saves the entire contents of your RAM (Random Access Memory) to this file on your hard drive or SSD. This allows the computer to power down completely while preserving all open applications, documents, and system state. When you restart the computer, Windows reads this file and restores everything exactly as it was before hibernation, providing a faster startup than a cold boot.

File Size and Location

The hiberfil.sys file size is automatically determined by your total installed RAM. If your computer has 8GB of RAM, hiberfil.sys will be approximately 8GB in size. For 16GB RAM, the file will be about 16GB. This proportional sizing is necessary because the file must be large enough to store all RAM contents. The file is located at C:\hiberfil.sys (the root directory of your C: drive), but Windows marks it as a hidden system file to prevent accidental deletion by users.

Hibernation vs. Sleep Mode

It's important to distinguish between hibernation and sleep mode. Sleep mode keeps your computer in a low-power state while maintaining RAM, allowing quick wake-up without using hibernation file. Hibernation saves everything to disk and powers down completely, consuming minimal electricity. Hibernation is useful for laptops or situations where you won't use the computer for extended periods. Many modern systems default to sleep mode because it's faster and SSDs have made storage less precious than in earlier computing eras.

Disabling Hibernation and Freeing Space

If you don't use hibernation and want to free up significant disk space, you can safely disable it and delete hiberfil.sys. In Windows, open Power Settings, go to 'Change plan settings,' then 'Change advanced power settings,' and expand 'Sleep.' Set 'Hibernate after' to 'Never.' You can also use the command prompt command powercfg /h off to disable hibernation entirely. This will delete the hibernation file and recover the disk space it occupied. Conversely, to re-enable hibernation, use powercfg /h on.

Common Misconceptions

Many users wonder if hiberfil.sys is a virus or malware—it is not. It's a legitimate Windows system file necessary for hibernation functionality. Some users try to manually delete it through file explorer, but since it's protected and in use by the system, deletion typically fails. The proper way to remove it is by disabling hibernation through Windows settings or command prompt. Understanding hiberfil.sys helps users make informed decisions about managing disk space and system features.

Related Questions

Can I safely delete hiberfil.sys?

Yes, you can safely delete hiberfil.sys by disabling hibernation through Windows Power Settings or using the command 'powercfg /h off'. However, you cannot manually delete the file directly—you must disable hibernation through Windows settings first.

What's the difference between hibernation and sleep?

Sleep mode keeps your computer in a low-power state with RAM active, allowing quick wake-up. Hibernation saves all data to disk and powers down completely, using minimal electricity. Sleep is faster but uses some power; hibernation is slower but more energy-efficient.

How do I re-enable hibernation if I disabled it?

To re-enable hibernation in Windows, open Command Prompt as Administrator and type 'powercfg /h on'. Alternatively, go to Power Settings, change plan settings, and set 'Hibernate after' to your desired time instead of 'Never'.

Sources

  1. Microsoft - Hibernation, Sleep, and Hybrid Sleep CC-BY-4.0
  2. Wikipedia - Hibernation (Computing) CC-BY-SA-4.0