MacDirStat

See what's eating your disk. Then clear it.

A native macOS treemap of your whole drive — every folder sized to scale — with one-click cleanup of the regenerable junk that quietly fills a Mac. If you loved WinDirStat on Windows, this is that, free and open source.

Download for macOS Free & open-source (MIT) · signed & notarized by Apple · Apple Silicon and Intel
brew install --cask chartres/mac-dir-stat/mac-dir-stat
MacDirStat showing a treemap of an entire macOS disk beside a directory tree and file-type breakdown

Why it exists

Every Mac fills up, and the Storage bar in Settings won't tell you with what. The good disk visualizers are either paid (DaisyDisk) or barely maintained (GrandPerspective). MacDirStat is the third option: free, fast, native, and it doesn't stop at showing you the problem — it finds the caches, build folders, and node_modules you can safely delete and trashes them in one pass.

Whole-disk treemap

Every file drawn to scale, colored by type, depth, or age. Free and hidden space accounted for, so the picture adds up to your actual drive.

One-click cleanup

Finds Xcode DerivedData, simulators, node_modules, target, Docker, Cargo, Gradle caches — tick what you trust, Trash it, confirm once.

Folder tree + file types

A synced directory list and a per-extension breakdown with sizes, counts, and sort controls. Click the treemap to jump to any location.

Fast, native, Rust

A parallel filesystem walk with live progress. No Electron, no web view — a real Mac app that opens straight into a scan.

One permission, once

Grant Full Disk Access a single time and the per-folder prompts stop. Protected areas you skip just show as Hidden / Skipped.

Move to another disk

Right-click a folder and send it to an external drive. MacDirStat copies it, checks the copy byte for byte, then moves the original to the Trash. It can leave a symlink so old paths still work.

Your own AI, your approval

mac-dir-stat serve gives you a page for your phone, a REST API and an MCP endpoint. Your AI looks around and proposes what to trash or move. Nothing runs until you approve it.

No account

Release builds send anonymous usage counts: app opens, scans and space freed, never a file name or path. One checkbox under Privacy (press ?) turns them off.

Not a cleaner that nags, not a subscription, not a menu-bar gimmick. A disk map you can act on. Mac-only, on purpose.