Finding large files in Windows with TreeSize

Is your C: drive almost full, or does Windows say there is not enough space for an update? Usually a few large files or folders take up most of the space: old downloads, videos, ISO files, a Windows.old folder or a large hibernation file. This article shows five ways to find large files in Windows 11 and Windows 10, which files you can safely delete and which ones you should leave alone.

Which method should you use?

MethodInstall?Best when
Settings > StorageNoYou want a quick view of what uses the most space
Search by size in File ExplorerNoYou are looking for files above a certain size
PowerShellNoYou want an exact top 20 for the whole drive
TreeSize Free or WinDirStatYesYou want to see per folder where the space goes
Disk Space Analyzer in your browserNoYou want to explore a folder visually without installing anything

Method 1: Settings > System > Storage

  1. Open Settings (Windows + I) > System > Storage.
  2. You immediately see which categories use the most space: apps, temporary files, documents, pictures, videos.
  3. In Windows 11, click Cleanup recommendations. Under Large or unused files, Windows lists the biggest files you have not opened for a while. Tick what can go and click Clean up.
  4. Click Temporary files to clean up the Recycle Bin, the Windows Update cache, Previous Windows installation(s) and more. Check carefully what you tick: your Downloads folder is in that list.

Also turn on Storage Sense on the same page. Windows then cleans temporary files and the Recycle Bin automatically when the drive fills up.

Method 2: search by size in File Explorer

  1. Open File Explorer (Windows + E) and go to This PC or the C: drive.
  2. Type one of these filters in the search box at the top right and press Enter.
  3. Choose View > Details and sort by the Size column.
FilterFinds files of
size:large128 MB to 1 GB
size:huge1 GB to 4 GB
size:giganticmore than 4 GB
size:>500MBlarger than a size you choose

Searching a whole drive can take a while if the folder is not indexed.

Method 3: the 20 largest files with PowerShell

Open PowerShell as administrator and paste this command:

Get-ChildItem C:\ -Recurse -File -Force -ErrorAction SilentlyContinue |
  Sort-Object Length -Descending |
  Select-Object -First 20 @{n='GB';e={[math]::Round($_.Length/1GB,2)}}, FullName

You get the twenty largest files with their size in GB and the full path. On a full drive this takes a few minutes. Replace C:\ with a folder, such as $env:USERPROFILE, to search only your own files.

Method 4: TreeSize Free or WinDirStat

Not looking for one big file but for a folder full of smaller ones? A tool that shows the size of each folder helps.

Both install with winget too: winget install JAMSoftware.TreeSize.Free or winget install WinDirStat.WinDirStat.

  1. Start the tool as administrator, otherwise it cannot read system folders and the drive looks fuller than what you see.
  2. Choose the C: drive and wait for the scan to finish.
  3. Expand the largest folders until you reach the files that take up the space.
  4. Only delete files you are sure about (see below).
Choosing a drive in TreeSize Free
TreeSize shows which folders are the largest

Method 5: without installing anything, in your browser

Not allowed to install software on your computer? With the free Disk Space Analyzer you pick a folder (for example your user folder or Downloads) and see in a treemap what takes the most space. The scan runs entirely in your browser; nothing is uploaded. It works in Chrome and Edge. It cannot scan system folders such as C:\Windows; use method 3 or 4 for those.

The biggest space hogs and what to do with them

File or folderWhat is it?Safe to clean up?
C:\Windows.oldYour previous Windows version after a major updateYes, via Storage > Temporary files > Previous Windows installation(s). After that you can no longer roll back.
hiberfil.sysHibernation file, often several GBOnly if you do not use hibernation: powercfg /h off as administrator. Never delete it by hand.
pagefile.sysPage file for memoryNo, let Windows manage it.
C:\Windows\WinSxSWindows component storeNever by hand. Clean it with Dism.exe /Online /Cleanup-Image /StartComponentCleanup.
DownloadsInstallers, ISO files, zip filesUsually, after checking.
OneDrive folderFiles downloaded locallyRight-click a folder > Free up space. The files stay in OneDrive.
Recycle BinDeleted filesYes, empty it if you no longer need anything.

Tips

Read also

Run Command Prompt as administrator in Windows 11 and 10: 6 ways
Turn Windows features on or off in Windows 11 and 10: 4 ways
How to restore deleted files in Microsoft Teams and SharePoint

Nederlandstalige versie: Grote bestanden vinden en verwijderen in Windows 11 en 10: 5 manieren


More in English