Take a closer look at your disk usage with WinDirStat

Updated: 10/07/2019 by Computer Hope

If you're running out of disk space on your computer, WinDirStat is a great tool for getting a detailed look at the files and folders taking up the most space.

WinDirStat window, displaying a completed analysis

In this article, we'll walk through how to use this great, free Windows program.

Why should I use WinDirStat?

Windows already lets you check your free disk space using the File Explorer. In Windows 10, for instance, click This PC in the left pane of any File Explorer window, and see how much space you have available on your disk drives.

Checking free disk space in Windows File Explorer

If you right-click any disk and select Properties, you will see more detailed information under the General tab.

Windows 10 Disk Properties

You can do the same thing with individual directories on your computer. Right-click any folder, select Properties, and Windows will tally up the size of all the files and directories that it contains.

However, these methods don't give you many details. Is there one big file taking up all that space? Is there one particular folder containing many big files?

That's where WinDirStat can be used. It can show you a diagram of every file on your computer, and you can see at a glance which files and directories are taking up most of your space.

Let's look at how to install WinDirStat, and how to use it.

Installing WinDirStat

  1. In a web browser, go to the WinDirStat download page. It contains links to several places where you can download the WinDirStat installer.

Downloading WinDirStat

  1. Download the installer.
  2. Optional step: Verify the checksum of the installer before you run it to verify the software you're running is authentic. For instructions and more information, see How to verify the checksum of an installer file.
  3. Run the installer.
  4. The UAC (User Account Control) prompt asks for your permission to install WinDirStat. Choose Yes.

WinDirStat installation UAC prompt

  1. Review the WinDirStat license agreement. (WinDirStat is published under version 2 of the GPL (GNU General Public License).) If you accept the agreement, check the box and click Next.
  2. Choose which optional components you'd like to install. If you're unsure, you can use the default settings. Click Next to continue.
  3. Choose the location on your computer where WinDirStat should be installed. To use the default location, click Next.
  4. Click Finish to run WinDirStat.

Using WinDirStat

WinDirStat begins by asking you which drives it should scan. Highlight your choices, or choose All local drives to scan everything. You can also choose to scan only one particular directory on your computer. To begin scanning, click OK.

Selecting a drive to scan in WinDirStat

While WinDirStat performs its scan, it displays a Pac-Man animation next to the items being scanned. The scan can take a while, depending on your computer.

WinDirStat scanning, with Pac-Man animations

You will know that the scan is complete when you see the graph displayed at the bottom of the window in the Treemap.

The Treemap

In the Treemap view, every rectangle represents a single file on your computer. The rectangles are color-coded by file type.

WinDirStat scan complete, Treemap displayed

The smallest rectangles (your files) are organized into larger rectangles (your directories). If several rectangles make up a larger rectangle, that means they're all in the same directory.

Click anywhere in the Treemap to highlight a single file. In the image below, we have selected one of the larger files on our computer.

WinDirStat Treemap, with a single file selected

The Directory List

When you highlight a file in the Treemap, it's also highlighted in the Directory List, which is located in the top-left window pane.

WinDirStat Directory list, with the same file selected

This view is similar to what you might find in the Windows File Explorer. In this view, you can expand and collapse branches of your directory hierarchy.

Details about the highlighted item are provided in columns on the right:

  1. Name — The name of the file or directory.
  2. Size — The size of the file, in bytes. For directories, this number is the total size of all files and subdirectories it contains.
  3. Subtree Percentage — This bar displays what percentage of the parent directory's total is made up by the highlighted item. In other words, if this bar is 1/3 full, the highlighted item makes up 1/3 of the parent item's total disk use.
  4. Percentage — The same as Subtree Percentage, shown as a number.
  5. Files — How many files exist in this subtree.
  6. Subdirs — How many subdirectories are in the subtree.
  7. Items — How many total items in the subtree (Files + Subdirs).
  8. Last Change — Date of the last time anything in the subtree was modified.
  9. AttributesAttributes of the file or folder. Possible attributes are:

The Extension List

WinDirStat Extension list

In the upper-right pane is the Extension List, which shows you what the colors mean in the Treemap. For instance, in our example above, all zip files (files that have the extension .zip) are the same shade of red.

This view provides sortable columns of useful information:

  1. Extension — The file extension.
  2. Color — The color used to display this type of file in the Treemap.
  3. Description — A verbose description of the file type.
  4. Bytes — How many bytes this type of file occupies on your disk.
  5. % Bytes — Same as Bytes, expressed as a numerical percentage.
  6. Files — The number of files on your disk of this type.

Additional tips

Show free space in the Treemap

By default, the Treemap graph does not show the free space on your disk. To show your free disk space as its own rectangle, press F6, or select Show Free Space under the Options menu.

Right-click items for additional options

If you right-click any item in the directory tree or treemap, you are presented with additional options for that item. For instance, you can view Properties here, as you can do in any File Explorer window. You can also choose to send the item to your Recycle Bin, or delete the item immediately. Deleting a file immediately is equivalent to sending it to the Recycle Bin and then emptying the Recycle Bin. Deleting a file this way prevents you from undeleting the file, so use this option with care.