Finding what uses space

Windows · macOS · Linux

The Disk usage page shows every file on a drive, so you can see at a glance where the space went.

Scanning

Pick a drive or your home folder on the start screen, choose any folder with Scan a folder, or drop a folder onto the window. Later, use Scan drive, Scan folder and Rescan in the toolbar.

Heft has two ways to scan:

After a fast scan, Rescan doesn't start from scratch: it reads the NTFS change journal and updates only what changed. Tick View > Update automatically and Heft keeps the map current every few seconds while it's open.

On a Mac the same works after any scan of a local disk, with no administrator rights or extra permission. macOS keeps a log of which folders changed (FSEvents), so Rescan only lists those folders again, and View > Update automatically keeps the map current: macOS tells Heft when something changes, so the map updates within a second or two and Heft does nothing in between. On an M5 MacBook Pro, rescanning 480,000 items after a small change takes under a tenth of a second, against 1.7 seconds for a full scan. Network shares always get a full scan.

The treemap

A treemap colored by file type, with folder names on the largest blocks
Colored by file type. Each color is one extension, so a big block of one color is a lot of one kind of file.

Every file is a rectangle sized by the space it uses. Files in the same folder sit together, and the shading makes each folder look like a raised cushion, so you can tell folders apart without borders.

ToDo this
Select a file or folderClick it. The folder tree scrolls to it.
See its path and sizeHover over it.
Zoom into a folderDouble-click, or press Enter.
Zoom outBackspace, the mouse back button, or the up arrow button above the map.
Move between rectanglesArrow keys, with the treemap focused.
Clear a highlightEsc.

Color by in the toolbar changes what the colors mean:

The View menu has two more options. Size rectangles by switches between file size and space on disk; compressed, sparse and online-only files take less room than their size suggests. Show names on large rectangles turns the labels on or off.

Right-click anything, in the map or the tree, for Zoom into folder, Show in Explorer (Finder on a Mac), Open, Copy path, Highlight all files of that type, Compress, Move to another drive and Move to Recycle Bin.

Folders

The Folders tab is the classic view: a tree with each folder's size, its share of the folder above it, how many files it holds and when anything inside last changed. Biggest folders come first.

A warning triangle next to a folder means deleting it could cause trouble. Hover over the triangle for the reason, or read what the warnings mean.

Keyboard: Up and Down move through the tree, Right and Left expand and collapse.

File types

The File types tab listing categories and extensions with their share of the drive
Space by category and by extension. Clicking a row lights those files up in the treemap.

The File types tab adds up space by category (games, video, programs and so on) and by extension. Click a row to highlight every matching file in the treemap; press Esc to clear it.

The Search tab listing the largest files, with the treemap colored by age
With no search text, Search lists the largest files. Here the treemap is colored by age.

The Search tab searches the whole scan instantly, without touching the disk again. With no search text it lists the largest files.

Search looks inside the folder shown in the treemap, so zoom in first to search one part of the drive. Everything that matches can go to the Recycle Bin or Trash in one step, with the usual confirmation.

Changes over time

Heft saves a small snapshot after each scan: every folder, plus files over 16 MB. Scan the same drive again a few days or weeks later and the Changes tab can compare the two.

  1. Open the Changes tab.
  2. Pick an earlier scan under Compare with and press Compare.
  3. Heft lists the folders that grew or shrank the most. Choose Color by > Growth to see the same thing on the map.

The Size over time chart shows how the folder shown in the treemap changed across every saved scan. Zoom into a folder to chart just that folder.

Export

The Export menu saves the folder shown in the treemap as:

To export from a script instead, see Command line.

How sizes are counted

Heft goes out of its way to count space correctly, so its totals can differ from other tools: