How to delete duplicate photos on a Mac
By the team that makes Sahabounne · Updated · 5 min read
To delete duplicate photos on a Mac, open Photos, go to Utilities › Duplicates in the sidebar and click Merge (macOS Ventura 13 or later). That only covers the Photos library. For Finder folders and external drives, compare file contents with the free md5 command in Terminal or a duplicate finder app, keep the oldest copy, and send the rest to the Trash.
The 4 methods below, from built-in to fastest:
- Photos app Duplicates album: for the Photos library. Free, built in.
- Finder search: finds copies named "copy" or "2". Free, misses renamed copies.
- md5 in Terminal: finds every exact copy by content. Free, read only.
- Sahabounne: finds exact copies by content, shows them, sends extras to the Trash. Free, no file limit for duplicates.
How to delete duplicate photos in the Photos app on a Mac
On macOS Ventura (13) or later, Photos finds duplicates on its own and lists them in a Duplicates album:
- Open Photos and find Utilities › Duplicates in the sidebar. If it is missing, Photos has not found any yet, or is still analyzing the library.
- Each row is a set of copies. Check them, then click Merge on a set, or select several sets and merge them together.
- Photos keeps the highest-quality copy, combines captions, keywords and favorites, and moves the rest to Recently Deleted, where they stay for about 30 days.
Photos also groups near-duplicates there: the same shot saved at two sizes, for example. Look before you merge.
This only covers photos inside the Photos library. Files in Finder folders, on external drives or in old backups are invisible to it.
How to find duplicate photos in Finder folders and on external drives
Outside the Photos library, find duplicate photos by name with a Finder search, or by content with a Terminal command or an app.
Spot the obvious ones by name
Copies made by Finder or by imports often carry a telltale name: "IMG_4821 copy.jpg", "IMG_4821 2.jpg" or "IMG_4821 (1).jpg". To list them:
- Open the folder and press Cmd-F.
- Click the folder's name next to Search: This Mac, so only this folder is searched.
- Set Kind is Image, then click + and add Name contains "copy".
- Sort the results by name and compare each one with its original before you delete it.
This misses copies that kept the same name in another folder, which is the most common case after merging two drives. For those, compare contents.
Compare contents with a free Terminal command
Two files are true duplicates when their contents are identical, whatever their name or date. macOS includes md5, which turns each file into a fingerprint. This lists every photo whose fingerprint was already seen:
cd ~/Pictures/To-sort
find . -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.heic' -o -iname '*.png' \) \
-exec md5 -r {} + | sort | awk '$1 == previous { print } { previous = $1 }'Each line is a fingerprint and a path. The command only reads, it deletes nothing. Its copies are picked by the alphabetical order of the paths, so check which one is the original before you remove anything by hand. On a large drive it takes a while, since it reads every file in full.
Let an app do it with a preview
Sahabounne is the Mac app we make for this. Pick a folder or a whole drive, and it:
- finds copies by content, comparing size first, then a sample, then the full file, so a big library is checked fast and only true copies match;
- shows each set with thumbnails so you can see what you are removing;
- keeps the oldest file as the original;
- sends the extras to the Trash, not straight to deletion, so you can drag one back.
It then offers to sort what is left into folders by year, month, camera or person. It finds exact copies only: burst shots and edited versions are left alone, which is deliberate.
Exact duplicates vs similar photos
Exact duplicates are the same file twice and are safe to delete automatically; similar photos are different files and need a human choice.
| Exact duplicates | Similar photos | |
|---|---|---|
| What they are | The same file, byte for byte, often under another name or in another folder | Different files of the same moment: a burst, a resized copy, an edit, a WhatsApp version |
| Safe to remove automatically? | Yes, nothing is lost | No, you may want the edit or the better shot |
| How to find them | Compare contents (md5, Sahabounne) | Visual comparison (Photos Duplicates album, dedicated similar-photo apps), then decide by hand |
App Store reviews of duplicate finders often complain about the second column: an app decided two photos were "the same" and removed one the owner wanted. Start with exact duplicates. They are usually most of the wasted space after merging backups.
Ways to delete duplicate photos on a Mac compared
The Photos app covers the library for free; for folders and drives, only a content check finds every copy.
| Method | Cost | Where it looks | Finds renamed copies | Where deleted copies go |
|---|---|---|---|---|
| Photos Duplicates album | Free, built in | Photos library only | Yes | Recently Deleted, about 30 days |
| Finder search (Name contains "copy") | Free | Any folder or drive | No | Wherever you drag them |
| md5 in Terminal | Free | Any folder or drive | Yes | Nothing is deleted, it only lists |
| Sahabounne | Free for duplicates | Any folder or drive | Yes, exact copies | The Mac's Trash |
Sahabounne is not the right tool if your duplicates are all inside the Photos app (use its Duplicates album) or if you want to find similar shots such as bursts and edits: it only matches exact copies.
Why a Mac fills up with duplicate photos
Most duplicates come from copying the same photos twice from different places. Common causes: importing a camera card that was already imported, keeping both iCloud Photos and an exported copy, merging two backup drives, choosing "Keep Both" when Finder asks about a file that already exists, and chat apps saving every received photo again.
How to keep the original when you delete duplicate photos on a Mac
Back up first, keep the oldest copy, and use the Trash rather than permanent deletion.
- Back up before a big clean-up. A Time Machine backup or a copy on another drive makes any mistake reversible.
- Keep the oldest copy. It is usually the one closest to the camera, with the original metadata.
- Keep Live Photo and RAW pairs whole. IMG_4821.HEIC and IMG_4821.MOV are not duplicates: one is the photo, the other its short video. Same for a RAW file and its JPEG.
- Use the Trash, not permanent deletion, and empty it a week later.
What to do after deleting duplicate photos
Removing duplicates is usually step two of a bigger clean-up. The next steps (sorting into year and month folders, naming, backup) are in how to organize photos on a Mac and the best way to organize photos.
Questions
Does the Mac have a built-in duplicate photo finder? +
Yes, inside the Photos app on macOS Ventura or later: Utilities > Duplicates in the sidebar. It only checks photos in the Photos library, not files in Finder folders or on external drives.
How do I find duplicate photos in a folder on a Mac? +
Finder can list copies by name (search for Kind is Image and Name contains "copy"). To find copies with the same content under any name, use the md5 command in Terminal or an app such as Sahabounne that compares file contents.
Where do deleted duplicates go? +
In the Photos app, merged duplicates go to Recently Deleted for about 30 days. Sahabounne sends duplicates to the Mac's Trash, so you can drag one back until you empty it.
Is it safe to delete duplicate photos on a Mac? +
Yes for exact duplicates, which are the same file twice. Back up first, keep the oldest copy, and send the others to the Trash so you can restore one if needed. Review similar photos by hand.
Are a HEIC and a MOV file with the same name duplicates? +
No. They are the two halves of a Live Photo: the still image and its short video. Keep them together in the same folder.