How to Find and Delete Duplicate Files on a Mac (Without Deleting the Wrong Copy)

How to Find and Delete Duplicate Files on a Mac (Without Deleting the Wrong Copy)

Duplicate files build up on every Mac. You download the same PDF twice, import a camera card into Photos and then again into a folder, copy a project to "work on it safely," and restore files from an old drive on top of what's already there. Finding them sounds simple. It's more subtle than it looks, because on a modern Mac some duplicates take up no extra space at all, and deleting them gets you nothing back.

Quick answer: For photos and videos, open Photos and click Utilities → Duplicates in the sidebar, then Merge. For music, select a song in Music and choose File → Library → Show Duplicate Items (hold Option for exact duplicates). For everything else, macOS has no built-in duplicate finder: sort folders in Finder by name and size, use a Terminal command that compares file hashes, or use a duplicate finder app. Before deleting, remember that copies made on the same drive with Finder may be APFS clones that share storage, so removing one frees almost nothing. MacCove Space finds identical files across folders even when their names differ, and lets you choose which copy to keep.

Where duplicates usually come from

SourceTypical exampleWhere to look
Repeated downloadsreport.pdf, report (1).pdf, report (2).pdfDownloads
Photo importsThe same shots in Photos and in a Pictures folderPhotos; Pictures; Desktop
Manual backups"Project copy" and "Project final" foldersDocuments; Desktop
Restoring old drivesA whole old Mac's files copied into a folderHome folder; external drives
Music librariesAlbums imported twiceMusic app
Messages and MailThe same attachment saved from several conversationsDownloads; Storage settings → Messages

How to remove duplicate photos in Photos

Photos has a built-in duplicate finder, which is far safer than deleting files from inside the Photos library yourself.

  1. Open Photos.

  2. In the sidebar, under Utilities, click Duplicates. If you don't see Utilities, hover over the sidebar heading and click the arrow to expand it.

  3. Review the sets Photos has found. To merge one set, click Merge next to it. To merge everything, press ⌘A and click Merge Items.

Photos keeps one original where the duplicates were and moves the rest to Recently Deleted, where they stay for 30 days. You only get the space back once you empty that album. On a large library, the Duplicates album can take a while to appear while Photos analyses your pictures. If you use an iCloud Shared Photo Library, switch to Both Libraries first.

Never go into the Photos Library package in Finder and delete files manually. It's a database, and removing files from inside it can corrupt the library.

How to find duplicate songs in Music

  1. Open Music and click Songs in the sidebar.

  2. Choose File → Library → Show Duplicate Items. This shows songs with the same name and artist, including legitimate versions such as an album track and the same song on a soundtrack.

  3. For true duplicates only, hold Option and choose File → Library → Show Exact Duplicate Items, which matches song, artist, album and version.

  4. Delete the copies you don't want, then choose File → Library → Show All Items to go back.

How to find duplicate files with Finder

There's no duplicate finder in Finder, but you can get surprisingly far by hand for a single folder:

  1. Open the folder and switch to List view (⌘2).

  2. Sort by Name to spot copies like "file (1)" and "file copy."

  3. Sort by Size as well. Files with an identical size, especially large ones, are worth comparing.

  4. Select two files and press Space to compare them in Quick Look before deleting one.

This works for Downloads or one project folder. It doesn't scale to a whole disk, and it can't tell you that two differently named files are identical.

How to find duplicates with Terminal

For a reliable check, compare file contents rather than names. This command lists files in your Documents folder that have exactly the same contents as another file, without deleting anything:


If you use Homebrew, the free tools **fdupes** and **jdupes** do the same job with more options. Install one with **brew install jdupes**, then run **jdupes -r ~/Documents** to list duplicates. Both can also delete duplicates, but run them in list-only mode first and check the results before you let them remove anything.

## Why deleting a duplicate sometimes frees no space

Macs with APFS-formatted drives, which is every Mac with an SSD, can make **clone files**. When you duplicate a file in Finder (**⌘D**) or copy it to another folder on the same drive, macOS doesn't copy the data. It creates a second file that points to the same blocks on the disk. Only the parts you later change take up new space.

This has two consequences:

- Finder shows both files at their full size, so your folder looks twice as big as it really is on disk.
- Deleting one of the pair frees almost nothing, because the other one still needs those blocks.

There's no official way to tell a clone from a real duplicate in Finder, and most duplicate finders can't tell either. So if you delete hundreds of "duplicates" and your free space barely moves, clones are probably the reason. Copies made to a *different* drive, downloaded twice, or imported twice from a camera are real duplicates and do take up full space.

## What not to deduplicate
Leave aloneWhy
Anything inside the Photos Library or Music libraryUse the apps' own duplicate tools instead
Files inside app bundles and ~/LibraryApps expect them in specific places
Files in iCloud Drive that aren't downloadedThey may not be on your Mac at all, so deleting them frees nothing locally
Project files that reference other filesA video or design project may point to one specific copy
Your only backupA "duplicate" on an external drive might be your backup

Duplicate finder apps

If you need to deduplicate a whole disk, an app saves hours. Some options:

AppPriceGood at
dupeGuruFree, open sourceFiles, music and fuzzy-matched pictures; hasn't been updated in years
Duplicate File Finder (Nektony)Free version; Pro from $7.95/monthFiles and folders, with folder merge in Pro
Gemini 2 (MacPaw)SubscriptionDuplicates and similar photos, with a polished interface
PhotoSweeperPaid (trial limited)Photos across Apple Photos, Lightroom and Capture One
MacCove SpaceDuplicate finding in the free tierIdentical files and duplicate photos across folders, even with different names

MacCove Space finds duplicates as part of its storage scan, so you see them alongside caches, large files and app leftovers rather than in a separate app. You choose which copy to keep, and removed files go to the Trash so you can undo.

FAQs

Does macOS have a duplicate file finder?

Only for photos and videos (Photos → Utilities → Duplicates) and music (File → Library → Show Duplicate Items). There's no built-in tool for documents and other files.

Is it safe to delete duplicate files on a Mac?

Yes, as long as you're deleting real duplicates of your own files and keeping one copy. Avoid duplicates inside app, system and library folders, and check that the copy you keep is the one your projects use.

Why didn't I get space back after deleting duplicates?

Either the files were APFS clones sharing the same storage, or they're still in the Trash or Photos' Recently Deleted album. Empty both and check again.

Can I find duplicates on an external drive?

Yes. The Terminal command and duplicate finder apps work on any drive you can browse in Finder. Just change the folder path.

How do I find similar but not identical photos?

Photos' Duplicates album catches near-identical copies, but not similar shots like bursts. For those, use an app with "similar photo" detection and review the results yourself.

Related guides

  • How to Find Large Files on a Mac

  • How to Free Up Disk Space on a Mac

  • How to Clear System Data on a Mac

Sources

← Back to all articles