See where your disk space went.
A fast, beautiful macOS disk usage visualizer — built entirely in Swift.
MacDirStat scans any folder and turns your filesystem into an interactive sunburst chart — every ring is a depth level, every arc is a file or folder, sized by disk usage. Hover to inspect. Click to drill in. Right-click to delete.
- Sunburst visualization — depth rings, color-coded by file type (video, code, images, archives…)
- Spotlight hover — everything else fades when you hover; selected files pulse with a glow
- Force Touch haptics — soft tap for small files, triple thud for multi-GB ones
- Drill navigation — click any folder to zoom in, click back to go up
- Duplicate detection — finds identical files by content hash, shows wasted space per group
- One-click cleanup — keep one copy, trash the rest — or delete file by file
- File list panel — sortable tree view beside the chart, toggle to give the chart full width
- File type breakdown — top file types with a searchable list of all types
- Move to Trash — right-click any arc or row to trash it, chart refreshes instantly
- CSV export — dump the full scan as a spreadsheet
- Settings — toggle haptic feedback on/off
| Full view | File types | Expanded types |
|---|---|---|
![]() |
![]() |
![]() |
Mac App Store (coming soon)
Coming soon
Build from source
git clone https://github.com/Ti-03/MacDirStat.git
cd MacDirStat
swift runRequires macOS 14+ and Xcode 15+.
Pure Swift + SwiftUI — no Electron, no web views, no dependencies.
| Layer | What |
|---|---|
| Scanner | POSIX opendir/fstatat with async task groups — parallel, cancellable |
| Layout | Custom sunburst partition algorithm (band-width from view size) |
| Renderer | SwiftUI Canvas — draws 1,000+ arcs at 30 fps |
| Haptics | NSHapticFeedbackManager — intensity scales with file size |
| Duplicates | SHA-256 content hashing on a background actor |
MacDirStat collects zero data. No network access. No analytics. No tracking. Everything runs on your device. Full privacy policy.
PRs welcome. Open an issue first for anything beyond a bug fix.
MIT — free to use, modify, and distribute.
If you find it useful, the App Store version (coming soon) will be the best way to say thanks.



