Qdirstat / Guides / Treemap

How to Read the Qdirstat Treemap Like an Expert

By the Qdirstat Guides TeamUpdated 3 December 20267 min read
Mosaic of coloured glass rectangles in different sizes

In the Qdirstat treemap, each rectangle represents a file and its area shows how much of the displayed space the file occupies. The directory tree supplies the names and totals behind those rectangles. Selecting a large tile is a quick way to find the corresponding file, but its size alone cannot tell you whether to remove it.

The sections below explain nesting, shading, colour and zoom. They also show how to check the path and compare related files before acting on what you find in Qdirstat.

The Core Idea: Area Equals Size

A treemap represents a hierarchy, such as folders within folders, as nested rectangles. In Qdirstat, every file becomes a rectangle whose area is proportional to its size. If one file is twice as large as another, its rectangle covers twice the area. The entire treemap represents the directory you scanned, so a file that occupies a quarter of the treemap uses a quarter of the scanned space.

Directories do not have rectangles of their own in the same sense. Instead, the files inside a directory are packed together into a region, and that region sits inside the region of its parent directory. As a result, every folder appears as a cluster of tiles, and every cluster sits inside a larger cluster, all the way up to the scanned root.

This simple rule has a powerful consequence: you never need to read numbers to spot what matters. Large tiles are large files. Large clusters are heavy folders. The eye picks them out immediately.

Squarified Layout: Why Tiles Look Balanced

Early treemap algorithms produced long, thin slivers that were difficult to compare and click. Qdirstat uses a squarified layout, which arranges rectangles to keep them as close to square as possible. Square-ish tiles are easier to compare visually and much easier to select with the mouse. The result is a pleasant, balanced mosaic in which even medium-sized files remain clearly visible.

Because tiles are packed according to size, the largest items in each folder tend to appear in one corner of that folder’s region, with progressively smaller items filling the remaining space. With practice you will learn to read each cluster from its largest tiles downward.

Cushion Shading: Seeing the Hierarchy

A plain treemap with flat colours makes it hard to see where one folder ends and another begins. Qdirstat solves this with cushion shading, a technique that lights each rectangle as if it were a soft, raised cushion. Each level of the directory hierarchy adds a gentle ridge to the lighting, so tiles belonging to the same folder share a common curvature, and boundaries between folders appear as subtle valleys.

This is why the Qdirstat treemap looks almost three-dimensional. The shading is not decoration; it encodes structure. When you see a group of tiles that seem to bulge together, you are looking at a directory. When you see a sharp shading change, you are crossing a folder boundary. Qdirstat 1.9 significantly refined this rendering, producing smoother cushions and crisper borders that make the hierarchy even easier to follow.

What the Colours Mean

Colours in the Qdirstat treemap represent file types, determined by MIME categories configured in the settings. Typical categories include images, videos, music, archives and compressed files, source code, object files and libraries, documents and executables. Files that match no category receive a neutral colour.

Colour turns the treemap into a second layer of information. A large block in a single video colour means a heavy video collection. A dense, multicoloured mosaic usually indicates many small files of different kinds, typical of source code trees, application data or caches. A big region in the archive colour suggests downloaded installers, backups or package caches.

Customising Colour Categories

You can edit MIME categories in Qdirstat’s settings, add your own patterns and choose colours. Developers might create a category for build outputs such as *.o and *.so, while photographers might separate RAW files from JPEG images. Thoughtful categories make the treemap even more informative for your specific work.

Selecting Items

Click any tile to select its file. Qdirstat instantly expands the tree view above to show that file, with all parent folders opened. The status bar displays the full path and size. This two-way synchronisation is the heart of Qdirstat’s workflow: the treemap shows you where to look, and the tree tells you exactly what you are looking at.

Selecting Folders

Selecting a directory in the tree highlights its entire region in the treemap with an outline. This is an excellent way to understand how much of the total a folder represents and which of its children dominate.

Zooming In and Out

The treemap can zoom into a selected directory so that it fills the whole area, giving more room to its contents. Use the zoom actions in the toolbar or the treemap menu, and zoom out again to return to the overview. Zooming is invaluable for large folders containing thousands of small files that would otherwise appear as fine grain.

Hovering for Information

Moving the mouse over tiles shows the corresponding path and size, so you can explore without clicking. Combined with keyboard navigation in the tree, this makes inspection fast and comfortable.

Recognising Common Patterns

Treemap patternLikely meaning
One huge single-colour tileA large single file: a disk image, video, virtual machine or database
Large region of many equal tilesA collection of similar files, such as photos or log rotations
Dense, fine, multicoloured grainMany small files: caches, source trees, node_modules
Archive-coloured clusterDownloads, backups or package caches
Surprisingly large hidden folderApplication data or caches under .cache or .local

Fine grain deserves special attention. Even if each file is tiny, a region full of them can occupy significant space and slow down backups. Qdirstat’s item count column in the tree confirms how many files such a region contains.

Reading Habits That Lead to Good Decisions

  1. Start from the biggest clusters. Ignore fine detail at first; locate the two or three largest regions.
  2. Read colour before size. Ask what kind of data dominates before deciding whether it is waste.
  3. Confirm in the tree. Click and read the path. A large file in Videos is likely intentional; the same file in /tmp probably is not.
  4. Check dates. Use the modification time column or the oldest files list to judge whether data is still in use.
  5. Act through the right tool. Personal files can go to the trash from Qdirstat; system and package data should be handled by package managers and dedicated cleaners.

Using the Treemap to Explain Findings to Others

The Qdirstat treemap is also an excellent communication tool. When a team asks why a server needs more storage, a screenshot of the treemap with the dominant region highlighted tells the story instantly, often more persuasively than a table of numbers. Select the folder in question so its outline appears, then capture the window. Colleagues with no technical background can see at a glance that, for example, backups or log files occupy most of the disk.

For written reports, pair the screenshot with the figures from the tree view, such as size and percentage, so readers get both the picture and the precise numbers.

Treemap Performance and Settings

Rendering a treemap for millions of files takes effort, but Qdirstat handles it well. If you scan extremely large trees on modest hardware, consider scanning narrower directories or zooming into subtrees. The settings let you adjust aspects of the treemap’s appearance, such as whether tile borders are drawn and how strong the cushion lighting appears, so you can tune it to your preference and display.

Some users temporarily hide the treemap while navigating very large scans and reveal it again once they reach the area of interest. This keeps the interface responsive while preserving the visual overview when it matters.

Frequently Asked Questions

Why are some Qdirstat treemap tiles so small I can barely see them?

Their area matches their size, so small files produce small tiles. Zoom into the containing directory to give them more room.

What do the colours in the Qdirstat treemap mean?

Colours represent file type categories, such as videos, images, archives or source code. You can customise these categories and their colours in the settings.

Why does the Qdirstat treemap look three-dimensional?

Qdirstat uses cushion shading, which lights each tile like a soft cushion and adds ridges per directory level, making folder boundaries visible.

Can I hide the treemap in Qdirstat?

Yes. The treemap can be toggled from the View menu, which is useful when navigating extremely large scans.

Conclusion

The Qdirstat treemap is far more than an attractive picture. Area shows size, nesting shows hierarchy, cushion shading reveals folder boundaries and colours reveal file types. Combined with the synchronised tree, it lets you move from a whole-disk overview to a specific file in seconds. Learn its patterns, read colour before size and confirm in the tree, and the Qdirstat treemap will become the quickest disk diagnosis tool you own.