Launch dealDiskKind Pro for $29 $14.50, once, for the first 100 buyers. Use code LAUNCH100 at checkout.See what Pro adds

hiberfil.sys and pagefile.sys: what they are, and can you delete them?

Both are hidden system files at the root of your C drive, and Windows looks after both of them. You can shrink hiberfil.sys or do without it by turning off hibernation. It's best not to mess with pagefile.sys, as Windows will know what it needs best. Here's what each file does, and the cost of changing each one, from Microsoft's own pages, checked on 24 November 2026.

Updated

hiberfil.sys, the hibernation file

The next time your PC goes into hibernate mode, Windows saves the contents of memory to this file so you can pick up where you left off. Microsoft Learn

What it is

Windows reserves this file when it is installed. It is at the root of the drive Windows is installed on. Your PC cannot hibernate without it.

Why it's so big

It depends on the amount of memory your computer has. Microsoft's pages give different sizes: equal to the memory you have, 40 percent of your memory, or 20 percent for a smaller size file.

Fast startup uses it too

Fast startup is what Windows normally does when you shut down. It saves part of the system to the hibernation file and loads it back next time, so your PC starts sooner. A restart, on the other hand, is a full shutdown. Microsoft Learn

How to make hiberfil.sys smaller, or remove it

Open Command Prompt as an administrator and run one of these. You can change back later.

Make it smaller and keep fast startup

Microsoft puts a reduced hibernation file at 20 percent of memory, against 40 percent for a full one. Fast startup still works with it, but hibernate doesn't.

powercfg /h /type reduced

Turn hibernation off

It turns off hibernation. This also means that hybrid sleep will stop working as well, and since fast startup uses hibernation file, it should stop working as well. The page from Microsoft doesn't say what exactly happens to this file, so we'd recommend checking the free space before and after doing this.

powercfg.exe /hibernate off

Turn it back on

If you miss hibernate or fast startup later, turn it back on with this.

powercfg.exe /hibernate on

pagefile.sys, the page file

The page file lets Windows move memory it isn't using right now from RAM onto the drive, so more apps can run at once. Microsoft Learn

What it does

The total amount of memory that a PC can handle at any one time is the amount of RAM plus the page file. If this limit is reached, Microsoft explains, apps could freeze or crash.

Why to keep it

Without a page file, that limit drops to a bit less than your RAM. Windows also uses the page file to save details when it crashes, and some programs need one to run.

Windows does it for you

Windows automatically manages the size of the page file and will expand it when it needs to. Microsoft states that the proper size for each PC is different, so there is no definitive setting.

If you still want to change the page file

Microsoft recommends that you allow Windows to handle it. If you've changed it before, you can set it back with these instructions. Microsoft Support

Find the setting

On Windows 10, go to Control Panel > System and Security > System > Advanced system settings. On the Advanced tab, click Performance > Settings > Advanced tab > Virtual memory > Change.

Let Windows handle it.

Make sure Automatically manage paging file sizes for all drives is checked. Click OK, Apply, and then restart your computer.

What DiskKind shows

DiskKind for Windows shows these files on its overview, so you can see how much of the C drive they take. DiskKind for Windows

Windows large files

The page file and hibernation and swap files that Windows keeps, their sizes, and who manages them. DiskKind does not offer to delete them, it refers to the settings above.

And everything else

Every folder on the drive, with what it takes, and caches in AppData with a written reason they are safe to clear. What you choose is placed in the Recycle Bin. DiskKind never deletes anything.

Questions about hiberfil.sys and pagefile.sys

Can I delete the hiberfil.sys?

Not by deleting it in File Explorer. Microsoft's method involves using powercfg.exe /hibernate off in an administrator Command Prompt. Hibernate and hybrid sleep will stop working. Fast startup will be gone with them. See how much free space you have after.

Can I delete pagefile.sys?

You can turn it off, but Microsoft has some good reasons why you shouldn't: it will reduce your PC's memory limit to below its RAM, programs may freeze or crash out if it runs out of memory, crash reports cannot be saved, and some programs require it.

Why is hiberfil.sys so big?

It stores the state of memory when your PC is in hibernation mode. Its size grows and shrinks based on the size of your RAM. A reduced hibernation file created using powercfg /h /type reduced will be smaller but still allow for fast startup.

Does turning off hibernation also disable fast startup?

Fast startup works by saving to the hibernation file, so with hibernation off it can't work. Turn hibernation back on with powercfg.exe /hibernate on if you want it again.

See what's filling up the rest of your C drive.

DiskKind Free lets you see your entire drive. See the page file and hibernate file next to everything else. Move whatever you want to the Recycle bin. It never deletes anything.

The DiskKind app icon