How to find duplicate files on a Mac (free and paid ways)
Duplicate files pile up in Downloads, Desktop and photo folders. Here are the free ways to find them with Finder, Photos and Terminal, when a dedicated app is worth it, and how to delete copies without losing the original.
Duplicates are rarely one big problem. They are hundreds of small ones: the same PDF downloaded three times, a folder of photos imported twice, contract (1).pdf next to contract.pdf, a project zipped and unzipped in two places. Together they can take gigabytes, and they make search results noisier.
This guide starts with the free tools already on your Mac, moves to Terminal for exact matching, and ends with when a paid app is worth it. Whatever you use, read the safety section before deleting anything.
First, what counts as a duplicate?
There are three different things people mean:
- Same name, possibly different content.
invoice.pdfin two folders might be two different invoices. A name match alone proves nothing. - Exact duplicates. Byte-for-byte identical files, whatever their names. These are safe to reduce to one copy, as long as you keep the one in the right place.
- Look-alikes. Photos that look the same but aren’t identical: a resized copy, an edited version, a burst of near-identical shots. Deciding which to keep is a judgement call, not a technical one.
Free Mac tools are good at the first, need some help with the second, and mostly don’t do the third outside the Photos library.
Free way 1: Finder, sorted the right way
Finder can’t detect duplicates by content, but it can make obvious ones easy to spot.
- Open the folder you suspect, usually Downloads or Desktop.
- Choose View ▸ as List.
- Click the Size column to sort by size. Identical files have identical sizes, so copies line up next to each other.
- Look for names that end in a number, such as
report (1).pdforreport 2.pdf. Browsers and Finder add these when a file with the same name already exists.
To widen the search across your whole Mac, use a Smart Folder:
- In Finder, choose File ▸ New Smart Folder.
- Click + and set Kind to the type you care about, for example PDF or Image.
- Add another rule for Name contains a word from the file name.
- Sort by size, then select a file and press Space to compare with Quick Look.
This works well for a handful of files. It doesn’t scale to thousands, and same size is a strong hint rather than proof.
Free way 2: Photos has its own duplicate finder
If your photos live in the Photos app rather than in folders, use what Apple built in. Since macOS Ventura, Photos detects duplicates in the library and lists them in a Duplicates album in the sidebar, among the utility albums. Each group has a Merge button that keeps one copy and moves the rest to Recently Deleted, where you can still recover them for a while.
This only covers the Photos library. Images saved in Downloads, Desktop or Documents are invisible to it.
Free way 3: exact matches with Terminal
To find files that are truly identical, compare a fingerprint (a hash) of their contents. macOS includes shasum, so no installs are needed. This command lists every group of identical files in your Downloads folder:
cd ~/Downloads
find . -type f -size +100k -print0 \
| xargs -0 shasum -a 256 \
| sort \
| awk '{h=$1; sub(/^[0-9a-f]+ /,""); n[h]++; f[h]=f[h] "\n " $0} END {for (h in n) if (n[h]>1) print h f[h] "\n"}'
What it does, line by line:
findlists every file larger than 100 KB (skipping tiny files keeps it fast; change or remove-size +100kif you like).shasum -a 256computes a SHA-256 hash of each file. Identical contents give identical hashes.sortandawkgroup the files by hash and print only the groups with more than one file.
The output is a hash followed by the paths that share it. Nothing is deleted; you decide what to do with each group. On a large folder this can take a while, since every file is read in full. If you point it at iCloud Drive, files stored only in the cloud may be downloaded so they can be read.
If you use Homebrew, the free command-line tool fdupes does the same job with friendlier output: brew install fdupes, then fdupes -r ~/Downloads. The free, open-source app dupeGuru is another option if you prefer a window to a terminal.
When a paid app is worth it
The free routes are fine for a one-off tidy of one folder. A dedicated app earns its place when:
- You want to scan several folders at once and see the space you would get back.
- You need look-alike detection for photos and screenshots outside the Photos library.
- You want help choosing which copy to keep, instead of reading paths in Terminal.
- You want a safety net, so removed files go to the Trash rather than disappearing.
There are several established duplicate finders for the Mac; compare them on how they match files (content, not just names), whether they can find similar photos, and what happens to removed files.
Bowerbird, our own app, includes a duplicate finder as one of its tools. It matches exact duplicates by size and then a SHA-256 hash of the contents, and finds look-alike photos with Apple’s on-device image analysis, with a slider from strict to loose. For each group you can keep the newest, oldest or largest copy, and anything you remove is moved to the Trash, never deleted outright. It all runs on your Mac; no files or fingerprints are uploaded. If duplicates are your only problem, a single-purpose tool is fine. If you also want search and cleanup in the same place, that is what Bowerbird is for.
Delete duplicates safely
However you found them, a few habits prevent painful mistakes:
- Keep the copy in the right place, not the first one listed. A file in
Documents/Taxes/2026is probably the one you want; the one in Downloads is the stray. - Never delete inside app libraries or packages. Files inside
~/Library, inside a.photoslibrary, or inside an app bundle may look like duplicates but are managed by an app. Remove them through the app instead. - Move to Trash, then wait. Don’t empty the Trash right away. If nothing breaks in a week or two, empty it.
- Be careful with look-alikes. An edited photo and its original are not duplicates in the way that matters to you. Review them with Quick Look before choosing.
- Know that some copies cost almost nothing. On APFS, the file system modern Macs use, duplicating a file in Finder can create a clone that shares storage with the original until one of them changes. Deleting such a copy frees little space. Copies from separate downloads or other drives do use their full size.
A routine that keeps duplicates down
- Before downloading something again, search for it first. Spotlight (⌘Space) is fast for names.
- Empty Downloads regularly. Most duplicates start there.
- Import photos into one place, either the Photos library or a folder, not both.
Ten minutes a month is usually enough to keep the problem from coming back.
Bu konu Türkçe de var: Mac’te kopya dosyaları bulma: ücretsiz ve ücretli yollar