How to find duplicate files on a Mac, without a cleaner app
Finder has no duplicate finder. Three free ways that work: Photos' Duplicates album, a search by name, and a Terminal script that deletes nothing.
Finder can’t find duplicate files on its own. For photos, open Photos and look at the Duplicates album under Utilities in the sidebar: it lists copies and offers to merge them. For everything else, the reliable free way is to compare file contents with a checksum, which a short Terminal script does for any folder; the one below lists duplicates and deletes nothing.
Names lie. invoice.pdf and invoice (1).pdf may be the same file downloaded twice, or two different invoices. IMG_2041.HEIC exported twice under different names is still the same photo. Content is the only test that holds.
1. Photos: the Duplicates album
If the duplicates are photos and videos in your Photos library:
- Open Photos.
- In the sidebar, under Utilities, click Duplicates. It only appears when Photos has found some.
- Each group shows the copies side by side. Click Merge to keep one, with the best quality and the combined information.
This only covers the Photos library. Pictures sitting in Downloads or on the Desktop aren’t in it.
2. Finder: search by name
The quick check for the classic double download:
- Open the folder (Downloads: ⌥⌘L) and press ⌘F.
- Click the folder’s name next to Search: so the search stays in this folder.
- Type
(1), thencopy. Files that came down twice end in(1),(2); files duplicated in Finder end incopy.
Then open both versions before deleting one. Same name doesn’t mean same content.
3. Terminal: compare contents (free script)
This finds true duplicates: identical content, whatever the names and dates. It reads every file in a folder and its subfolders, computes a SHA-256 checksum with shasum (built into macOS), and prints the files that share one.
- Download find-duplicates.sh (it lands in Downloads).
- Open Terminal (Applications > Utilities).
- Type
bash ~/Downloads/find-duplicates.shwith a space at the end, drag the folder to check into the Terminal window, and press Return.
Checking 612 files in /Users/you/Downloads...
/Users/you/Downloads/Invoice March.pdf
/Users/you/Downloads/Invoice March (1).pdf
/Users/you/Downloads/Photos/IMG_2041.HEIC
/Users/you/Downloads/IMG_2041 copy.HEIC
2 group(s) of duplicates, 2 extra copies.
Each block is one group: the same file, several times. Keep one, move the others to the Trash in Finder. The script never deletes or moves anything, and it skips empty files and .DS_Store.
The script is short; read it before running it, as with any script from the web. The core is one line you can type yourself:
find ~/Downloads -type f -print0 | xargs -0 shasum -a 256 | sort
It prints one checksum per file, sorted, so identical files land on consecutive lines.
A big folder takes time: every byte is read. Point it at Downloads, Desktop or a project folder, not your whole disk.
Where the free methods stop
- Photos only sees its own library.
- The name search finds the obvious doubles and misses renamed copies.
- The script finds exact copies only. A photo resized or re-exported, or a PDF saved again, has different bytes and won’t show up. For near-identical photos, the Photos album does better.
- None of them prevents the next duplicate. Most come from downloading the same attachment twice or unzipping an archive and keeping both.
Where Declutr fits, and where it doesn’t
DeclutrDeclutr is not a duplicate finder. It sorts a folder into folders by file type in one click, which makes duplicates easier to spot (both copies of a PDF end up side by side in Documents), and its Pro rules, a one-time $8.99 purchase in the US, can file installers and archives as they arrive, two of the biggest sources of doubles. It never deletes files and doesn’t compare their content. It needs macOS 13 Ventura or later.
To free space beyond duplicates: how to free up disk space on a Mac. For a Downloads folder that keeps filling up: how to delete downloads on a Mac.
Questions people ask
Does a Mac have a built-in duplicate file finder?
Not in Finder. The Photos app has a Duplicates album for your photo library (Utilities in the sidebar). For files in folders, use a Finder search by name or a checksum script in Terminal.
How do I find duplicate files on a Mac for free?
Run a script that compares a checksum of every file: files with the same checksum have the same content, whatever their name. The script on this page lists them and deletes nothing.
Are files named 'copy' or '(1)' always duplicates?
No. 'report (1).pdf' is usually a second download of the same file, but it can be a newer version. Compare content, not names, before deleting.
Is it safe to delete duplicate files on a Mac?
Delete the copy, keep one. Move duplicates to the Trash rather than deleting them for good, and keep the copy that sits in the folder you actually use.