DEV Community

DiskInsight
DiskInsight

Posted on

How to Find the Largest Files on Your Mac (Fast, Free Methods)

"Where did my free space go?" almost always resolves to a handful of giant files: an old disk image, a 4K video, a Photos library, a .pkg you downloaded twice. Finding the top 20 gives you 80% of the win.

Here are the fastest methods on macOS - one app-legit, one terminal, one visual - with exactly how much they cost in effort.

Method 1 - Finder (no install)

  1. Open Finder, hit ⌘F (Find), set search location to This Mac.
  2. Add filters: File size → "is greater than" → type 1 GB.
  3. Sorted by size, top results first. Whatever the giant is, it's here.

Repeat with This Mac = "is greater than" 0.5 GB if 1 GB cut out the interesting stuff.

Method 2 - Terminal (precise, instant)

The workhorse. From a folder or your home, list the heaviest files:

# top 30 biggest files under the current dir
find . -type f -size +1G -exec du -h {} + 2>/dev/null | sort -rh | head -30

# same, but any size, sorted top-down
du -a . 2>/dev/null | sort -rn | head -30 | awk '{print $1, $2}'
Enter fullscreen mode Exit fullscreen mode

And to find the folders that hide the files (the only "big folder, small files" paradox):

du -sh ~/Library/Developer 2>/dev/null
du -sh ~/Pictures 2>/dev/null
du -sh ~/Downloads 2>/dev/null
Enter fullscreen mode Exit fullscreen mode

Method 3 - A disk map (see the structure, not just a list)

Files hide inside folders. The terminal list shows you videos/week4-4k.mov - a treemap shows you why ~/Pictures is 40 GB at a glance (one giant library vs 20,000 photos).

  • Every folder rendered as a rectangle sized by bytes
  • Zoom from drive → folder → a single file
  • Hidden & contained folders (~/Library/Application Support, ~/Library/Containers) counted for real

That's what I built DiskInsight to do: nine views, one scan, byte-exact - see it, decide, stage to Trash, never auto-delete. 100% local, no telemetry, one-time price.

What you'll typically find (and what's safe)

  • .dmg/IPSW installers in ~/Downloads - safe to delete once installed
  • ~/Pictures/Photos Library - review before deleting
  • Movies: the 4K editing originals - archive to an external drive
  • ~/Library/Developer - Xcode DerivedData & simulators
  • ~/Library/Caches - everything worth clearing
  • Docker.raw - the never-shrinking blob

The honest rule: caches and installers are always re-downloadable; your Documents/Desktop/Pictures are not. Delete accordingly.

The 30-second version

  1. Finder ⌘F → This Mac → size > 1 GB. There's your top-10.
  2. If a folder hides the space, du -sh the top-family folders.
  3. Check ~/Library/Developer and ~/Library/Caches if you build apps.

And when a list isn't enough, visualize: see the disk the way math sees it - rectangles scaled by bytes, ranked, inspectable, reversible.


I'm building DiskInsight - a local macOS disk analyzer with nine visualizers (treemap, sunburst, flame graph, bubbles, mind map, age map, top sizes, list, folders). Scanning is free forever; a one-time Pro unlock adds duplicate cleanup, a dev cache cleaner (Xcode, npm, CocoaPods, Gradle) and a full app uninstaller. Nothing is uploaded, no account, no telemetry.

More: https://diskinsight.com

Top comments (0)