Disk analyzer for macOS · APFS-aware
Find out what deleting really frees.
Most disk tools count APFS clones twice, trust sparse files and ignore snapshots, so their numbers don't match Finder and deleting doesn't give your space back. MacDiskSleuth shows what is really on disk.
Free and open source · macOS 13+ · Apple silicon and Intel · Signed and notarized
- Docker.rawsparse64.0 GB18.3 GB18.3 GB
- DerivedDatacache14.2 GB11.8 GB11.8 GB
- render-final.movclone8.0 GB8.0 GB0 KB
- Old installersdownloads6.4 GB6.4 GB6.4 GB
- node_moduleshard links3.9 GB3.1 GB1.3 GB
How it counts
Three honest sizes for every file and folder.
What the files claim to be. This is what most tools show.
What the disk actually holds. Clones, hard links, sparse ranges and compression are counted once.
What deleting it would give back right now.
render-final.mov
An 8 GB video that's a clone of another file shows 8 GB logical, about 0 freeable, because deleting it frees almost nothing. MacDiskSleuth tells you that before you empty the Trash and wonder where your space went.
- ClonesCopy-on-write copies share blocks. Other tools count them twice.
- Hard linksOne file, many paths. Counted once here.
- Sparse & compressedDisk images that claim 64 GB but hold 18.
- SnapshotsTime Machine local snapshots that quietly keep "deleted" files.
Top 5 things to delete
Every scan ends with a to-do list.
A ranked, explained list of what to delete first: regenerable caches, build artifacts, old downloads, container images and duplicates. It's ranked by what deleting really frees, and you get a notification when the scan finishes. Checked items go to the Trash, so you can put them back.
- 1Docker disk imageContainer images you can pull again18.3 GB
- 2Xcode DerivedDataBuild artifacts, rebuilt on demand11.8 GB
- 3Old installers in DownloadsUntouched for over a year6.4 GB
- 4Homebrew cacheDownloaded bottles2.2 GB
- 5Duplicate photos exportSame bytes as your library1.9 GB
What's in the box
One engine, four ways to use it.
MacDiskSleuth.app
A native SwiftUI app with an interactive sunburst, a size-lens toggle, and delete-to-Trash that shows true freeable bytes.
macdisksleuth CLI
A fast command-line tool: scan, top, recommend, info, overview and snapshots.
Finder Quick Action
Analyze with MacDiskSleuth on any folder or volume, right from Finder.
MacDiskSleuthKit
The shared engine as a Swift package, for your own tools.
Built on getattrlistbulk with APFS extended attributes, with per-file clone, sparse and dataless awareness. It opens no files, so iCloud placeholders are never downloaded. How the accounting works
Quick tour
At home in the Terminal, too.
$ macdisksleuth info ~/Movies/render.mov # 3 sizes, clone family, "deleting frees X"
$ macdisksleuth scan ~ --top 15 # biggest items, honest sizes
$ macdisksleuth overview # capacity, purgeable space, snapshots
$ macdisksleuth snapshots # what Time Machine is still holding
$ macdisksleuth top ~ --only clone --sort freeable,logical
Grant your terminal Full Disk Access for complete results. MacDiskSleuth records every folder it couldn't read and says so, rather than silently under-counting.
Install
Download, open, scan.
- DownloadGet the app zip (or the command-line tarball) from the latest release.
- Move to ApplicationsUnzip and drag MacDiskSleuth into Applications. It needs macOS 13 or later, on Apple silicon or Intel.
- Scan a folderPick your home folder or a volume. The Top 5 list appears when the scan finishes.
Build from source
git clone https://github.com/denmanjohn-maker/macdisksleuth.git
cd macdisksleuth
swift build -c release
.build/release/macdisksleuth --help
macOS says the app can't be opened
Release builds are signed with a Developer ID certificate and notarized by Apple, so they open without a Gatekeeper warning. If a release is marked as not notarized, open System Settings → Privacy & Security and click Open Anyway, or clear the quarantine flag from Terminal: xattr -dr com.apple.quarantine MacDiskSleuth.app.