Computer >> Computer tutorials >  >> System >> Windows 11

Discover the Hidden Windows File You Shouldn't Touch: A Must-Know Guide

Discover the Hidden Windows File You Shouldn t Touch: A Must-Know Guide

Published Apr 24, 2026, 6:01 AM EDT

Tashreef's fascination with consumer technology began in the school library when he stumbled upon a tech magazine, CHIP, which ultimately inspired him to pursue a degree in Computer Science. Since 2012, Tashreef has professionally authored over a thousand how-to articles, contributing to Windows Report and How-To Geek. He currently focuses on Microsoft Windows content at MakeUseOf, which he has been using since 2007.

With hands-on experience building websites and technology blogs, he brings practical developer insights to his technical writing. You can view his complete work portfolio at itashreef.com.

You might also stumble upon his short how-to video explainers, simplifying complex topics. Beyond writing, Tashreef enjoys creating short explainer videos, gaming, and exploring animated shows.

Storage space on your PC is at a premium, so whenever you run out of it, you'd run a free tool like WizTree to find and remove hidden junk to reclaim some space. While disk space analyzer apps can tell you what's taking up space on your drive, they can't tell you whether the files are junk or something important.

For instance, pagefile.sys always shows up as one of the biggest storage hogs on your PC, and its size can vary from as little as 20GB to a gigantic 300GB. It looks like an easy win, but you should never delete the pagefile.sys file because doing so can corrupt Windows and leave your PC in an unbootable state.

What's pagefile.sys, and why is it so big?

Windows' virtual memory file is sized roughly to your RAM

Discover the Hidden Windows File You Shouldn t Touch: A Must-Know Guide Credit: Tashreef Shareef / MakeUseOf

Pagefile.sys is the file Windows uses as an on-disk extension of your RAM. When your physical memory fills up, Windows moves less-active memory pages out of RAM and writes them to pagefile.sys on your drive, so active apps get the headroom they need. This is what Task Manager refers to as committed memory, which is the total memory Windows has promised to back with either RAM or pagefile space.

The size of pagefile.sys is never fixed, unless you've configured it otherwise. By default, Windows sets it to System managed size, which means the operating system decides the minimum and maximum values based on your installed RAM and workload. A general rule of thumb is 1.5x to 2x of your installed RAM, so a system with 16GB of RAM will typically have a pagefile around 24GB to 32GB.

There are a few reasons the file can grow much larger than that. If you run memory-heavy workloads like virtual machines, large datasets, or dozens of Chrome tabs, Windows may expand the file to cover the committed memory your apps demand. Enabling full or kernel memory crash dumps also forces Windows to reserve a pagefile at least as large as your installed RAM on the system drive, so it has room to write the dump.

A 200GB or 300GB pagefile, on the other hand, is rarely normal. It usually points to a manually set maximum size that was left too high, a runaway workload, or, in rare cases, a misconfiguration caused by a tweaking tool or malware. Running an antivirus scan is a reasonable first step before you decide to touch the settings.

Discover the Hidden Windows File You Shouldn t Touch: A Must-Know Guide Related

Why you should never delete it

Windows actively protects the file for a reason

Discover the Hidden Windows File You Shouldn t Touch: A Must-Know Guide Credit: Tashreef Shareef / MakeUseOf

Deleting pagefile.sys might seem tempting since you've found such a big resource hog sitting on your drive, but Windows protects the file for the same reason it refuses to let you touch the system registry. Pagefile.sys is a core part of Windows' memory management, and the operating system assumes it's always available while running.

If you try to delete the file through File Explorer, Windows will simply refuse and show an "open in another program" message because the file is in use. Even if you boot into a live Linux environment and delete it from there, Windows will recreate the file on the next boot as long as virtual memory is enabled. The only real way to remove it is to disable virtual memory altogether, which is a different decision with its own consequences.

Disabling the pagefile outright is risky. Without it, Windows has nowhere to offload inactive memory pages, so the moment your workload exceeds your physical RAM, apps start failing or crashing. Even on machines with plenty of RAM, real-world behavior like opening too many browser tabs, running a game alongside background apps, or a memory leak in a single app can push you over that limit faster than you'd expect.

Additionally, your PC would also lose the ability to capture meaningful crash dumps. Since Windows writes kernel and full memory dumps through the pagefile, without one on the system drive, troubleshooting a blue screen becomes a lot harder.

Managing a large pagefile.sys file to save space

Resize it manually instead of removing it

If pagefile.sys has ballooned to an unreasonable size, the right move is to cap it rather than disable it. Windows lets you set a custom minimum and maximum size so the file stays within a range you're comfortable with, while still doing its job.

To change the settings, open Start and search for Advanced system settings, then press Enter. In the System Properties window, go to the Advanced tab and click Settings under Performance. In the Performance Options window, switch to the Advanced tab again and click Change under Virtual memory.

From here, you have two options. You can leave "Automatically manage paging file size for all drives" checked and let Windows handle it, which is fine for most systems. Or, you can uncheck it, select your drive, choose Custom size, and enter values in MB for the initial and maximum size. For a 16GB RAM system, setting the initial size around Windows' "Recommended" value and the maximum at 16GB to 32GB is a sensible range. Click Set, then OK, and reboot to apply the change.

Keep in mind that the minimum size still needs to be large enough to handle your typical workload. Setting it too low can cause low-memory warnings or force Windows to expand the file back on its own. If you rely on full memory dumps for debugging, Microsoft recommends keeping the pagefile on the system drive at least equal to your installed RAM.

Discover the Hidden Windows File You Shouldn t Touch: A Must-Know Guide

OS Windows

Minimum CPU Specs 1Ghz/2 Cores

Windows 11 is Microsoft's latest operating system featuring a centered Start menu, Snap Layouts, virtual desktops, enhanced security with TPM 2.0, and deeper integration with Microsoft Teams and AI-powered Copilot.

Keep the pagefile, but keep it in check

Disabling the pagefile or shrinking it too aggressively can cause app crashes, failed memory allocations, and blue screens that are harder to debug. On the other hand, letting Windows leave it at system managed size is rarely a problem unless you've noticed it ballooning far beyond your RAM. For most people, the sweet spot is to leave the default settings alone and only step in if the file size gets genuinely out of hand.

If you do decide to resize it, treat pagefile.sys the same way you'd treat a hidden Windows folder that grows unchecked, something to manage, not eliminate. Cap it at a sensible maximum based on your RAM, scan for malware if the size looks suspicious, and leave yourself enough room for crash dumps if you ever need to diagnose a system failure. That's how you reclaim space without trading stability for it.