Quick answer
For a free visual map, use GrandPerspective or OmniDiskSweeper. For a fast terminal view, use du or ncdu. DaisyDisk is the polished paid option. If most of your space is developer caches such as Xcode, Docker and node_modules, use a developer-aware tool like SpaceWise that knows what is safe to remove.
The options at a glance
| Tool | Price | View | Knows what’s safe to delete |
|---|---|---|---|
| Storage settings | Free, built in | Categories | No |
| du | Free, built in | Terminal list | No |
| ncdu | Free, open source | Terminal browser | No |
| GrandPerspective | Free, open source | Treemap | No |
| OmniDiskSweeper | Free | Sorted list | No |
| DaisyDisk | Paid | Sunburst map | No |
| SpaceWise | Free scan, paid cleanup | Grouped by project | Yes, for developer caches |
Start free: Storage settings and du
System Settings → General → Storage shows the big categories and suggests large files. It doesn’t break down System Data, which is where most developer data ends up.
du ships with macOS and answers the question directly:
du -sh ~/* ~/Library/* 2>/dev/null | sort -h | tail -20ncdu (brew install ncdu) is the interactive version: browse folders sorted by size with the arrow keys and delete from inside it.
Visual analyzers: GrandPerspective, OmniDiskSweeper, DaisyDisk
- GrandPerspective draws your disk as a treemap, so big files jump out as big rectangles. Free and open source.
- OmniDiskSweeper from The Omni Group lists folders sorted by size, like a size-aware Finder. Free.
- DaisyDisk shows a sunburst map and lets you collect files to delete in one go. Paid, and the most polished of the three.
All three are excellent at answering what is big. None of them knows whether a 30 GB folder is a cache you can rebuild or a project you need.
When you need more than a map
On a developer Mac the biggest folders are usually build output and caches: DerivedData, Docker.raw, node_modules, ~/.gradle, model weights. A generic analyzer shows them as anonymous folders. To clear them safely you need to know which project they belong to, whether that project is still active, and how they get rebuilt.
See how SpaceWise compares with other cleaners, including WinDirStat and TreeSize on Windows.
SpaceWise: a disk analyzer that knows developer files
SpaceWise scans Xcode, Docker, node_modules, Gradle, Homebrew, package manager caches and local AI models, groups them by project, checks git status and lockfiles before it suggests anything, and moves what you approve to the Trash so you can undo it. The scan is free on Mac and Windows.
Scan your Mac for free
See every developer cache, sized and grouped by project, before you delete anything.
Download for MacFAQ
What is the best free disk space analyzer for Mac?
GrandPerspective and OmniDiskSweeper are the most common free picks for a visual view, and ncdu is the best free terminal option. macOS's own Storage settings are the place to start but don't show individual folders inside System Data.
Does macOS have a built-in disk analyzer?
Partly. System Settings > General > Storage shows categories and large files, and the du command in Terminal shows the size of any folder. Neither tells you which files are safe to delete.
Why does a disk analyzer show less than the Storage bar?
Analyzers without Full Disk Access can't read some protected folders, and none of them count APFS local snapshots or purgeable space. Grant Full Disk Access in System Settings > Privacy & Security for a complete scan.
Is it safe to delete what a disk analyzer finds?
Not automatically. An analyzer only shows size. Rebuildable caches such as Xcode DerivedData or npm caches are safe; project files, app data and anything under /System are not. Check what a folder is before deleting it.
Run this cleanup in SpaceWise
Same targets, Recovery Bin rollback, no Terminal required. Free tier included.