How to Find Duplicate Files on Mac: Free Methods and Tools
On this page
Quick answer: macOS has a duplicate finder only for photos: in Photos, open Utilities > Duplicates and merge them. For other files there is no built-in tool. You can find exact copies with a Terminal command that compares file contents, or use an app that does the same and lets you review before deleting.
Tested on: MacBook Air M1, macOS 27.0.1, on 22 November 2026. I scanned my own Downloads, Desktop and Documents folders by comparing file contents, and ran the Terminal command below. The Photos steps come from Apple's guide, read the same day.
Is there a built-in duplicate finder on Mac?
Only for photos and videos. Apple's Photos guide says duplicates appear automatically in a Duplicates collection under Utilities in the sidebar. Select them, then choose Merge.
Apple says merging leaves one original in your library, and the removed copies go to Recently Deleted, where you can recover them for 30 days. The guide lists macOS Ventura and later.
For documents, downloads, videos outside Photos and everything else, Apple's Mac guides describe no duplicate finder. Finder can search and sort, but it cannot tell you two files have the same contents.
What a duplicate scan of my Mac found
To see how big the problem really is, I compared the contents of every file of 1 MB or more in my Downloads, Desktop and Documents folders. It took 5 seconds:
| Result | On my Mac |
|---|---|
| Files of 1 MB or more scanned | 1,870 |
| Sets of identical files | 149 |
| Extra copies | 529 |
| Space taken by the extra copies | 1.49 GB |
| Largest single case | One 107 MB video, saved 4 times |
Then I sorted the copies by cause, and the headline number fell apart:
- Build files inside my development projects: 479 of the 529 extra copies, and 1.27 GB. They are identical on purpose. Deleting them one by one would break the projects.
- Folders I had downloaded twice: 33 copies, 71 MB. macOS had saved each second download with " 2" added to the name.
- Everything else, such as that video saved four times: 17 copies, 147 MB.
So the real waste was about 220 MB, not 1.49 GB. A duplicate finder that counts everything as junk would have offered to break my projects. Not every duplicate is junk.
Find duplicates with Terminal, for free
This command compares file contents, not names, so it only reports true copies. It only reads files and deletes nothing. Change ~/Downloads to any folder:
find ~/Downloads -type f -size +1M -print0 | xargs -0 shasum -a 256 | sort | awk '{h=$1} h==p {if (!shown) print prev; print; shown=1; next} {p=h; prev=$0; shown=0}'
Each line starts with a long checksum. Lines that share a checksum are copies of the same file. On my Downloads folder it took 16 seconds and listed 28 files in 14 groups.
How it works: find lists files over 1 MB, shasum computes a fingerprint of each one's contents, and awk prints only the fingerprints that appear more than once.
Before you delete a duplicate
- Check where each copy lives. A copy inside a project, an app or a library may be needed there.
- Keep the copy in the place you use. Delete the one in Downloads, not the one your project or document points to.
- Move copies to the Trash, not
rm. If something breaks, you can put the file back. - Leave app bundles and libraries alone. Files inside a Photos library or an app are not separate documents.
What to look for in a duplicate finder app
If you would rather not use Terminal, choose an app that works the safe way:
- It matches by contents. Matching by name or size alone will flag files that are different.
- It selects nothing for you. You should review each set and choose.
- It sends files to the Trash, so a wrong choice can be undone.
- It stays out of packages. An app or a Photos library looks like one file in Finder, and its insides should never be split up.
Questions about duplicate files on Mac
These come up most.
Does Finder have a duplicate finder?
No. Finder can search by name, kind and size, but it does not compare contents. Apple's only duplicate finder is the one in Photos.
Is it safe to delete duplicate files?
Often, in Downloads and on the Desktop. Less so inside projects, apps and libraries, where identical files can be there on purpose. Look at where each copy lives first.
Will this find similar photos?
No. Comparing contents finds exact copies only. Edited or resized versions of a photo count as different files. For photos, use the Duplicates collection in Photos.
Find duplicates with Purgy
Purgy's duplicate finder works the way described above. It matches files by contents, selects nothing for you, and sends what you choose to the Trash. It looks where copies pile up, such as Downloads, Desktop, Documents and iCloud Drive, and never looks inside app bundles or libraries.
Duplicates are one part of a full disk. For the biggest files, see how to find large files on Mac. Try Purgy with the free trial.