Duplicate files on a Mac: which copy actually stays

There are four practical ways to deal with duplicate files on a Mac. For pictures and videos inside the Photos library, use the built-in Duplicates collection, which merges copies and keeps one original. For ordinary files, macOS has no duplicate finder, so the choice is between a Terminal command that compares file contents and a dedicated app such as Nektony's Duplicate File Finder or MacPaw's Gemini 2. Whichever route is used, two questions decide whether the cleanup is worth it: which copy should stay, and whether deleting the other one frees any space at all. On an APFS disk, a copy made on the same volume can be a clone that takes up no extra room, so removing it can change nothing. The sections below cover each method with the steps and prices checked on October 9, 2026, and then the part most guides skip, choosing the survivor.

Start with what kind of duplicate it is

The word duplicate covers several different situations, and each method on a Mac catches only some of them.

  • Exact copies. Two files with identical bytes, whatever their names. "Report.pdf" and "Report copy.pdf" made with Command+D are the classic case. A content hash finds these reliably.
  • Same name, different content. Two files called "notes.md" in different folders are not duplicates at all. Tools that match on name and size alone can flag them; content checks will not.
  • Near duplicates. A photo exported twice at different sizes, or a burst of almost identical shots. Only tools that compare images visually catch these, and they always need a human decision.
  • Linked copies. Aliases, symbolic links and APFS clones look like separate files in the Finder but do not hold separate data in the usual way.

Knowing which kind is in play saves time. A Downloads folder full of "file (1).zip" entries is an exact-copy problem. A photo library imported twice from a phone is a Photos problem. A project tree with many identically named files is usually not a duplicate problem at all, and deleting by name there breaks work.

Photos: the Duplicates collection

For anything inside the Photos library, use Photos itself. Deleting image files from inside the library package in the Finder can damage the library, and third party tools that scan it from outside are working around the app rather than with it.

According to Apple's guide to removing duplicate photos and videos on Mac, duplicates appear automatically in the Duplicates collection under Utilities. The steps are:

  1. Open Photos and click Duplicates below Utilities in the sidebar. If it is not visible, hold the pointer over Utilities and click the arrow to expand it.
  2. If iCloud Shared Photo Library is in use, choose Both Libraries from the Library pop-up menu in the toolbar.
  3. Select the rows to merge. Command+A selects every duplicate.
  4. Click Merge [number] Items, then confirm in the dialog.

Apple notes that the collection can take some time to fill on a large library, because Photos has to analyse every item first. After a merge, one original stays where the selected duplicates were, and the removed copies go to Recently Deleted, where they can be recovered for 30 days. The space is only returned once Recently Deleted is emptied or the 30 days pass, which is why a merge often seems to change nothing in the storage figures at first.

Finder and Terminal: what macOS can do on its own

The Finder has no duplicate search. What it can do is narrow the field. Open the folder in question, switch to list view with Command+2, and sort by name or size. Copies made with Command+D end in " copy", and files downloaded twice usually carry a number in parentheses, so they line up next to the original. A Smart Folder (File, then New Smart Folder) with a condition such as Kind is Document can gather files from many folders into one sortable list. This works for a quick look but cannot confirm that two files are really identical.

For a reliable answer without installing anything, compare content hashes in Terminal. The command below lists every group of files under a folder whose contents are byte for byte the same. Replace ~/Documents with the folder to check.

find ~/Documents -type f -exec shasum -a 256 {} + | sort | awk '{c[$1]++; l[$1]=l[$1] "\n" $0} END {for (h in c) if (c[h]>1) print l[h]}'

Each block of output shows one hash followed by every path that shares it. Names do not matter, so "Invoice.pdf" and "scan_0034.pdf" are grouped if their content is identical, and two different files that happen to share a name are not. The command only reads files; nothing is deleted. On a large folder it can take several minutes, because every byte of every file is read. Adding -size +1M after -type f limits the check to files over one megabyte, which is where the meaningful space usually is.

The same command works on an external drive. Connected disks appear under /Volumes, so find /Volumes/Archive -type f checks a drive named Archive. Comparing two locations at once is a matter of listing both paths after find, for example the Desktop and a backup drive, and the output then shows which files exist in both places. The first time Terminal reads the Desktop, Documents or Downloads folders, macOS asks for permission to access them. Allowing it once is enough for that folder. If the prompt was dismissed earlier, the permission can be granted later under Privacy and Security in System Settings. Before acting on the results, make sure a current backup exists. A content match is certain, but the choice of which path to remove is a judgment, and a backup turns a wrong choice into a quick restore rather than a lost file.

Dedicated duplicate finders and what they cost

Dedicated apps add a visual interface, rules for auto-selecting which copies to remove, and in some cases similar-image detection. The two most often recommended in the current results were checked on their official pages on October 9, 2026.

App Free tier Paid pricing Requirements
Nektony Duplicate File Finder Free version on the Mac App Store Pro from $7.95 per month, 2-day trial macOS 11.0 to 27, version 9.2.2
MacPaw Gemini 2 Free download From $1.95 per month macOS 10.10 or later, version 407

Nektony's Duplicate File Finder page describes free and Pro versions, an Auto Select option for marking redundant copies, and the ability to compare whether files and folders are exact duplicates. The free version is distributed through the Mac App Store. MacPaw's Gemini 2 page highlights a Duplicates Monitor that notices new copies as they appear, and detection of similar photos and music files that are not exact duplicates.

Both are reasonable choices when the job is large or repeats every month. For a one-off check of a single folder, the Terminal command above does the comparison without a subscription. Whatever the tool, the scan only produces a list. The decision about which copy stays still has to be made, and that is where most of the risk sits.

Why deleting a copy can free no space

Many people clear out hundreds of duplicates and then see the free space figure barely move. There are three common reasons.

The first is APFS clones. Apple's developer documentation on the Apple File System explains that "a clone is a copy of a file or directory that occupies no additional space on disk." Copies made with the standard system copy routines on the same APFS volume can be clones, and the two files share their unmodified blocks. Deleting one of them returns little or nothing until the other is also changed or removed. The Finder shows each file with its full size, so the sizes add up on screen in a way they do not on disk.

The second is the Trash and Recently Deleted. Files moved to the Trash still occupy space until it is emptied, and Photos keeps merged copies for 30 days.

The third is local snapshots. Time Machine and some backup tools keep snapshots on the startup disk, and blocks referenced by a snapshot stay allocated until the snapshot expires. The space comes back later without any further action.

The practical lesson is to judge a cleanup by the free space figure after emptying the Trash, not by the sum of file sizes in the duplicate list.

Choosing which copy stays

A scanner can prove that two files are identical. It cannot tell which one other things depend on. Deleting the wrong copy of an identical file loses no data, but it can break a link, a project reference, or a sync setup. A few rules make the choice predictable.

  • Keep the copy in the folder that work refers to. If a Keynote file, a website project or a script points at ~/Projects/client/logo.png, the copy in Downloads is the one to remove, even if it is older.
  • Keep the copy inside synced or backed-up locations. A file in iCloud Drive or a folder covered by backup is safer than the same file on the Desktop.
  • Do not trust dates alone. Modification dates change when a file is copied between disks, unzipped or synced, so "newest" and "oldest" often reflect handling rather than authorship.
  • Leave app libraries alone. Photos, Music and similar libraries manage their own files. Clean them from inside the app.
  • Move, then delete. Put the copies to remove into a single folder first. Live with it for a few days. If nothing breaks, empty it.

Most auto-select rules in dedicated apps follow one of these rules, such as keeping the copy in a chosen folder. Setting that rule deliberately, rather than accepting the default, is what keeps a cleanup from turning into a repair job.

When duplicates keep coming back

Recurring duplicates usually come from a workflow rather than carelessness. Common sources are downloading the same attachment from several email threads, exporting from an app into a different folder each time, two sync services covering the same folder, and AI coding agents or scripts that write output files next to the originals. Fixing the source saves more time than any scan.

For people who work across folders with a terminal and AI agents open beside the Finder, the cleanup itself can move into the same window. The features page describes a file manager with a terminal tied to each folder and a command palette, opened with Shift+Command+P, that includes a Find Duplicates in This Folder action. The check runs on the folder already open, and the follow-up, moving the copies into a holding folder, can be typed in the terminal beside it. Everything on the Mac is free with no time limit, as listed on the pricing page.

What to change first

Run the Photos Duplicates merge if the library has copies, then use the Terminal command on the one folder that grows fastest, usually Downloads, and move rather than delete what it finds. If the duplicates come from switching between Finder, terminal and an AI agent, try Atriens on that folder so the check and the cleanup happen where the files are created.

Frequently asked questions

Does macOS have a built-in duplicate file finder?

Not for ordinary files. Photos has a Duplicates collection under Utilities that merges duplicate photos and videos in the library. For files in the Finder, the options are sorting and Smart Folders for a rough look, a Terminal command that compares content hashes, or a third party app.

Is it safe to delete files named "copy" in the Finder?

Usually, but check first. A file ending in " copy" is not always identical to the original, since either could have been edited after the copy was made. Compare them with a content hash or open both before deleting, and move the copy to a holding folder rather than straight to the Trash.

Why did deleting duplicates not free up storage?

On APFS, a copy on the same volume can be a clone that shares data with the original, so removing it returns little space. Files also stay on disk until the Trash is emptied, Photos keeps merged items in Recently Deleted for 30 days, and local snapshots can hold space until they expire.

Can a duplicate finder damage the Photos library?

Deleting files inside the Photos library package from the Finder can leave the library inconsistent. Use the Duplicates collection inside Photos for anything in the library, and keep external tools for ordinary folders.

Which copy of a duplicate should be kept?

Keep the copy that other files, projects or sync services refer to, and the one inside a backed-up location. Modification dates are a weak signal because copying and syncing change them. When unsure, keep both until a few days of normal work show nothing depends on the other copy.

Back to all posts