WinDirStat: Find the Disk Hogs and Delete Safely

A colorful map of your drive shows in seconds where the gigabytes went, and the cleanup tools help you clear space without breaking Windows.

FREE$34.95UpdateStar PremiumShare a link to claimWindows pops up the red bar under drive C: again. You emptied the Recycle Bin last week, you don't remember installing anything big, and yet 40 GB seem to have vanished. Explorer won't tell you where, because it doesn't add up folder sizes for you.

WinDirStat does exactly that. It scans a drive, sorts every folder by size and paints the result as a treemap where big files are big rectangles. The 2.x series brought it back to life after years of silence, with much faster scans, a duplicate finder and a proper cleanup menu. The current version is 2.9.3.

Step 1: Get it from a trustworthy source

WinDirStat is free and open source, which is why copycat download sites love it. The developers point you to the Microsoft Store, winget (winget install -e --id WinDirStat.WinDirStat) or the releases page of the official GitHub project. Unofficial sites may host outdated or modified builds.

On a normal Intel or AMD PC, pick the 64-bit MSI installer. There's also a portable version if you'd rather not install anything.

Step 2: Run your first scan

Start WinDirStat and the Select Drives dialog opens.

  1. Choose All Local Drives for a full overview, Individual Drives for just C:, or Individual Folders if you only care about, say, your Downloads folder.
  2. Leave Use accelerated scanning switched on.
  3. Leave Scan for duplicate files off for now. It slows the scan down, and we'll come back to it.
  4. Click OK.

Want the fastest possible scan? Run WinDirStat as administrator, or use File > Run Elevated. With admin rights, WinDirStat reads the NTFS Master File Table directly on local drives, which is much quicker than walking through every folder. It also lets the program look into protected system folders, so the totals come out more complete.

Step 3: Read the three views

When the scan finishes, the window splits into linked panes. Click something in one and the others follow.

The All Files tree at the top left lists folders sorted by size. The bar in Size Proportion shows each item's share at a glance. Expand the biggest folder, then the biggest folder inside that, and keep going until you hit the actual files. That usually takes four or five clicks.

The extension list on the right groups everything by file type: total size, share and number of files. It also shows which color each type has in the treemap. If .mp4 or .vhdx sits at the top, you know whether you're looking for videos or a forgotten virtual machine.

WinDirStat main window with the extension list highlighted The extension list (right) explains the treemap colors below.

The treemap at the bottom draws every file as a rectangle, sized by its disk space and colored by its type. One giant block means one giant file. Click it and the tree jumps to that file. Use View > Zoom In to focus on a region and Zoom Out to step back. If you prefer rings or bars, the View menu also offers a sunburst and a flame graph.

Trick 1: Jump straight to the biggest files

Sometimes you don't want to explore. You want a list. Click the Largest Files tab below the tree and WinDirStat shows the heaviest single files from the whole scan, sortable by size.

WinDirStat file tree with the Clean Up menu and the Largest Files tab highlighted The Largest Files tab sits next to All Files; cleanup actions live in the Clean Up menu.

Double-click an extension in the extension list to get a search result with only that file type. And with Ctrl+F you can search by name, for example *.iso to find old disc images.

Step 4: Clean up without breaking anything

This is where you need some discipline. WinDirStat can delete files, but it doesn't know which ones Windows or your apps still need. Follow a fixed routine:

  1. Select a large item and press Ctrl+E (Select in Explorer) to see it in context. Alt+Enter shows its properties.
  2. Ask yourself whether you know what it is. Downloads, old videos, ISO files and setup files you can identify are fair game.
  3. Press Delete to move it to the Recycle Bin. Avoid Shift+Delete unless you're sure, because that deletes permanently.
  4. Use File > Refresh Selected so the tree and treemap match the disk again.

Keep your hands off Windows, Program Files, application data and other profile folders unless you know what owns the files. A big folder of a program you don't use any more should go through Clean Up > Launch Program & Features (or Windows Settings) so it's uninstalled properly rather than ripped out.

The Clean Up menu also has a few one-click helpers: Empty Recycle Bin, Run Windows Disk Cleanup Utility and Component Store Cleanup, which tidies the Windows component store through DISM. Leave Remove Volume Shadow Copies alone unless you understand it, because it can delete your restore points.

A huge hiberfil.sys at the top of drive C: is the hibernation file. Disable Hibernate File removes it, but you lose Hibernate and Fast Startup. On a desktop PC that's often fine. On a laptop you close every evening, think twice.

Trick 2: Find duplicates (only when you need them)

Photos copied twice, the same installer downloaded five times, a backup of a backup. That's what the duplicate finder is for.

  1. Start a new scan and tick Scan for duplicate files in Select Drives.
  2. After the scan, open the Duplicate Files tab.
  3. Each group lists files with identical content. Delete the extra copies the normal way, checking each location first.

WinDirStat first groups files by size and then compares content hashes, so the matches are real. If you switch on sparse hashing for big files in Settings > Advanced to speed things up, matches appear as Probable duplicates because only parts of those files were read. Treat those with care. Files in OneDrive and similar cloud folders that are only placeholders are skipped by default, so the scan doesn't download your whole cloud.

There's also Deduplicate with Hardlink for advanced users. It replaces copies with hardlinks to a single file. Edits then affect every path, so only use it for files that should stay identical forever.

Our verdict

WinDirStat is the right tool for anyone whose drive keeps filling up for no obvious reason. Today, scan C: with admin rights, check the Largest Files tab and the top three entries in the extension list, and delete only what you can clearly identify.

Related on UpdateStar

about author