Free up storage
How to Find and Delete Duplicate Files on Your Mac
Track down duplicate files on your Mac — using Smart Folders, Terminal, or a dedicated tool. Plus how to spot fake duplicates that aren't actually duplicates.
Duplicate files are the storage problem that hides in plain sight. You download an attachment twice from email. You save the same PDF to Desktop and Documents. You restore from a backup and end up with two copies of your photo library. None of these are “wasteful” individually. Together, on a typical Mac, they’re often 5-15GB.
Finding them is harder than it sounds, because true duplicates aren’t always identically named. A file called Statement.pdf might exist as Statement (1).pdf in another folder, and they could be byte-for-byte identical or completely different versions. Here’s how to find both kinds reliably.
What “duplicate” actually means
A few different definitions worth distinguishing:
- Byte-identical duplicates — same file, exactly the same bytes. These are 100% safe to delete (one copy).
- Same content, different format — same image saved as JPEG and PNG, same audio at different bitrates. Not technically duplicates but often treated as such.
- Similar but not identical — two photos taken seconds apart, two slightly edited versions of the same document. Not duplicates; both might be worth keeping.
- Same name, different content — two files named
Untitled.jpgthat are completely different. Definitely not duplicates.
Most duplicate-finder tools handle the first category well, the second sometimes, and the third badly. Tools that claim to find “similar” duplicates can be useful but should be treated with caution — false positives are common.
Method 1: Smart Folders for the obvious cases
Built into Finder, no extras required. File → New Smart Folder. In the criteria:
- Set a search location (specific folder, or whole Mac)
- Click “Kind” → switch to “File Size”
- Set “is greater than” → some threshold like 50MB
This finds large files. Not duplicates directly, but: when you sort by Size, duplicate or near-duplicate files often appear next to each other with the same exact byte count. Two 3.5GB video files of the same exact size are very likely the same file.
Limitations: doesn’t compare actual file content, just sizes. A 2-byte coincidence isn’t a duplicate. But for files over 10MB, identical sizes are usually a real signal.
Method 2: Terminal for byte-perfect duplicates
If you’re comfortable in Terminal, this finds true duplicates anywhere on your system. The technique uses MD5 checksums to compare files byte-for-byte.
For a single folder:
find /path/to/folder -type f -exec md5 {} + | sort | awk -F '=' '{a[$2]++; b[$2]=b[$2]"\n"$1} END {for(k in a) if(a[k]>1) print k": "b[k]}'
That’s a mouthful. It hashes every file, sorts the hashes, and prints groups where the same hash appears more than once.
Simpler version using a tool you’ll need to install (Homebrew-based):
brew install fdupes
fdupes -r /path/to/folder
fdupes is purpose-built for this. The -r flag makes it recursive. To delete interactively (it asks before each delete):
fdupes -rd /path/to/folder
Even simpler — rmlint is more powerful:
brew install rmlint
rmlint /path/to/folder
It generates a rmlint.sh script you can review before running. Safe by default — won’t delete anything until you explicitly run the generated script.
Method 3: Spotlight by hash (the practical middle path)
If you don’t want to install Homebrew but also don’t want to write awk one-liners, here’s a workable middle ground using Spotlight metadata:
- Open Finder
- Cmd+F to start a search
- Set Where: This Mac
- Click “Kind” → change to “File Size”
- Set “is equal to” → some specific size
You can’t actually do equality on file size in the standard search, but you can use the Smart Folder approach. List all files sorted by size, scroll through looking for clusters where the exact same byte count repeats. That repetition is your signal.
For images and videos specifically, this works well because real duplicates almost always have identical byte counts.
Common locations where duplicates pile up
Worth checking these by hand even without tooling:
~/Downloads— same PDF re-downloaded multiple times often shows up asFilename.pdf,Filename (1).pdf, etc.~/Desktop— temporary files, screenshots, drag-drops from email all pile up here~/Documents— same document saved to multiple subfolders~/Pictures(outside Photos) — copies of phone photos exported multiple times~/Movies— same video saved at multiple resolutions or formats- External drives — backups overlapping with main storage
Sort each by Name. Duplicates with parenthesized numbers will cluster together. A quick scan often turns up obvious ones.
The Photos library: a special case
Duplicates inside the Photos library are different beasts. Photos for Mac (since Ventura 13) has a built-in Duplicates album. To find it:
- Open Photos
- Sidebar → Library → Duplicates
Photos identifies duplicates using image hashing, not just file content. So a JPEG and a HEIC of the same photo, or the same image at different sizes, will both be flagged.
For each group, click “Merge X items” — Photos keeps the highest-quality version and deletes the rest. Far cleaner than handling Photos duplicates manually.
If your Photos library is huge (50GB+) and the Duplicates album is empty, give Photos a few hours to scan. The first scan is slow.
What to NOT delete
Some files look like duplicates but aren’t:
- App bundle files. Applications are folders ending in
.app. They contain dozens of files, many with identical names across different apps (Resources/icon.icns,MacOS/binary, etc.). Never delete files inside.apppackages. Info.plistfiles. Every app has one. They’re not duplicates of each other..frameworkfiles. Frameworks contain shared libraries; multiple apps depend on them.- System files in
/Systemand/Library/Frameworks. Hands off. - iCloud Drive stub files. A file showing as 0 bytes might be a cloud-only stub, not a duplicate.
- Music tracks in iTunes/Music library. Use the Music app’s “File → Library → Show Duplicate Items” option instead of touching files directly.
Rule of thumb: don’t delete anything inside ~/Library, /System, /Library, or /Applications. Stick to your own user files in Documents, Downloads, Desktop, Pictures, Movies, Music.
Set up a sane workflow
A few habits to prevent duplicates from accumulating:
- Don’t save attachments to Downloads twice. If you’ve already downloaded a PDF from email, save it once to a real folder and delete the email’s downloaded copy.
- Use cloud sync for the things you’d otherwise duplicate. iCloud Drive, Dropbox — they replace the impulse to save the same file in three places.
- Quarterly cleanup of
~/Downloads. Most duplicates start here. - Use Photos’ native Duplicates album at least once a year, more often if you import from multiple sources.
- Don’t manually back up the same folder to multiple external drives. Use Time Machine on one drive, or use rsync with proper hard-linking — never two redundant manual copies.
A reasonable expectation
For a Mac that’s never had duplicates handled, expect to find:
- 1-3GB in Downloads (parenthesized-number files)
- 2-10GB in Pictures and Photos (depending on import history)
- 1-5GB in Documents (same files saved to multiple places)
- 0-5GB in Desktop (drag-drop accumulation)
- Variable in Movies (same video at multiple bitrates)
Total: usually 5-25GB freed in a thorough first pass. After that, periodic maintenance keeps it small.
The honest framing: duplicate cleanup isn’t worth obsessing over. The tools that find “fuzzy” duplicates (similar but not identical files) generate false positives constantly, and you can spend hours reviewing them. Stick to the byte-identical kind for safety, run Photos’ built-in tool, and move on. The other 90% of your reclaimable space is in caches, snapshots, and old downloads — not duplicates.