How to remove hiberfil.sys in free storage in Windows. Tech Windows Guide

If you use your device for a long time, you will definitely run out of memory. Although there are several ways to solve such low memory problems, we bet you didn’t know that there are some files from the system backup memory that can be deleted to free up storage space. One such file is called hiberfil.sys.

Hiberfil.sys is a system file that can be safely deleted to free up space. By reading this article, you will understand what this file is used for and how you can delete it to free up space.

What is the hiberfil.sys file

If you’ve ever come across power modes in Windows, you’ve probably come across Hibernate mode. This is a power-saving feature that saves the current session to the hard disk before turning off the PC. Once you download it, you can continue your session without having to reopen apps and programs.

There should now be space on your computer to store all of this session-related data. That’s why we have hiberfil.sys files. Moreover, the program data must be transferred from the RAM to the hard disk, where it is stored.

The file size is close to the RAM size and is usually around 50-75% of the RAM size. This means that it takes up several gigabytes of memory. If you’re wondering how big it is, skip to the next section.

How much space do hiberfil.sys files take up?

Step 1: Open the Settings app in Windows and tap Storage.

Windows settings

Step 2: Now go to Show other categories.

show more storage categories

Step 3: Select System and reserved.

system and reserved storage

Now you can see how much space the hibernate file is taking up on your system. It takes about 6GB on my system. It may be more or even less on your computer depending on your devices and configurations.

hibernation file

Is it safe to remove hiberfil.sys

Simply put, yes, it’s safe to delete a hibernation file unless you’re sure you’re not using hibernation. This way, you can easily delete the file and free up a few gigabytes of memory on your system.

Now, if you change your mind and want to hibernate at any point, you can easily restore this file as well.

In the following sections of the article, we have presented a step-by-step procedure for deleting and restoring the file. What’s more, both uninstall and restore require nothing more than a command line. Therefore, the procedure can be considered safe.

Should I turn off sleep mode

The main difference between hibernation and hibernation is that hibernation uses much less power. Therefore, if this feature seems useful, we recommend not to delete hiberfil.sys.

If this feature is not needed and if it is important to free up storage space, delete these files. Alternatively, if you are a user with administrative rights, you can access the command line and delete these files.

How to remove hiberfil.sys

We mentioned using the command line to delete a file. Here is the step-by-step procedure for doing so.

Step 1: Find Command Prompt in the Start menu.

cmd start menu

Step 2: Right-click and select “Run as administrator”.

cmd is run as administrator

Step 3: After opening, type powercfg -h is off and press enter.

cmd remove hiberfil.sys

That’s all. Hibernation is now effectively disabled and you can see that it is also invisible in the system files. It also helped me save the 6GB I mentioned earlier.

hiberfil.sys deleted 1

How to restore hiberfil.sys

Restoring hiberfil.sys is also easy.

If you are using Windows 7, 8, 9, 10 and 11: Open a command prompt as an administrator and type Powercfg – h is enabled. This will put your PC back into sleep mode.

restore hiberfil sys

If you are using Windows XP: Open the Control Panel, select Power Options, select the Hibernation tab, and uncheck the box to enable hibernation.

Here’s how to remove hiberfil.sys in Windows. If you have more questions, check out the section below where we’ve answered some common questions you might have.

Frequently asked questions

1. What happens if I delete the hibernation file?

After deleting the hibernate file, you will not be able to use the hibernate option on your system. So your power options will be limited to sleep, shutdown and restart only.

2. How to reduce the size of the hiberfil.sys file in Windows?

You can reduce the size using the command line in administrator mode. But there is a minimum percentage of RAM that hiberfi.sys must be set to and you cannot reduce it any further. It is usually around 40-55%. You need to type Powercfg –h – percentage of size. For example, if I need to reduce it to 40%, I need to type Powercfg –h – size 40.

3. Can I move hiberfil.sys to another drive?

Unfortunately, the file should only stay on the drive where Windows is installed. Therefore, you cannot move or partition hiberfil.sys files.

Safely delete the hibernation file

This is all you need to know about hiberfil.sys, how and why you need to remove it. We hope this article helped you free up a significant amount of memory on your device. Still have questions about your Windows device? Share them in the comments below.