How to delete duplicate photos on a Mac
Duplicate photos pile up when you import the same card twice, save a picture from Messages that's already in your library, or keep a folder of exports next to the originals. To delete duplicate photos on a Mac, start in Photos itself, then look at the folders Photos doesn't see.
The short answer: in Photos on macOS Ventura or later, click Duplicates under Utilities in the sidebar, select the duplicates and click Merge. Photos keeps one copy and moves the others to Recently Deleted, where you can recover them for 30 days. With iCloud Photos on, merged copies disappear from your other devices too. Photos only checks its own library: copies in Finder folders, and resized or converted versions, need another check.
Where is the Duplicates album in Photos on Mac?
- Open Photos.
- In the sidebar, click Duplicates under Utilities. If you don't see it, hold the pointer over Utilities and click the arrow. If you use iCloud Shared Photo Library, choose Both Libraries from the Library pop-up menu in the toolbar.
- Select the duplicates you want to merge: one row, several rows, or all of them with Command-A.
- Click Merge, then confirm in the dialog. The button shows how many items it merges.
Duplicates appears only when Photos has found some. In a large library it can take a while, because Photos analyzes the photos in the background.
What happens to merged duplicate photos?
One copy stays in your library. The others go to Recently Deleted, where you can select them and click Recover for 30 days; after that, Photos deletes them for good. The space on your Mac comes back when they leave Recently Deleted, so delete them there if you need it now.
Photos decides which copy stays. If two copies had different dates, captions or locations, check the one that's left.
Does merging duplicates delete them from iCloud and my iPhone?
Yes, with iCloud Photos turned on. A photo you delete on one device is deleted everywhere you use iCloud Photos. Without iCloud Photos, merging changes only the library on this Mac.
Why doesn't Photos find all my duplicate photos?
- Photos outside the library: pictures in Downloads, Pictures, Desktop or on an external drive aren't part of Photos, so its Duplicates album never sees them.
- HEIC and JPEG pairs: an iPhone takes photos in HEIC. When you share them or import them to a Mac, they may be converted to JPEG, so you end up with the same picture in two formats. A JPEG export of a HEIC photo isn't an exact copy, and Photos doesn't always group the two.
- Resized and re-saved copies: a smaller version made for email or the web, or a file opened and saved again, has different bytes even though it looks the same.
- Edits, crops and bursts: these are different photos, not duplicates, and Photos keeps them apart on purpose.
Two files that belong together aren't duplicates either: a Live Photo is a picture plus a short video, and a camera set to RAW and JPEG saves both on purpose.
How do I find duplicate photos in folders outside the Photos library?
For exact copies, Terminal can compare the pictures by checksum. This lists identical JPEG, HEIC and PNG files under Pictures in groups. It only reads files, and it skips the Photos library package:
find ~/Pictures -name '*.photoslibrary' -prune -o -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.heic' -o -iname '*.png' \) -exec shasum -a 256 {} + 2>/dev/null | sort | awk '$1 == h { if (!p) print prev; print; p = 1; next } { if (p) print ""; h = $1; prev = $0; p = 0 }'
Replace ~/Pictures with another folder, such as ~/Downloads or a folder on an external drive. Checksums only match exact copies; resized and converted versions need you to compare them by eye. More about this method: How to find duplicate files on a Mac.
Never delete files inside Photos Library.photoslibrary in Finder. Photos keeps its own records of them, and changing the package by hand can damage the library. Delete library photos in Photos.