🔥 Launch offer: Lifetime license for $9₹699 for the first 50 purchases. Regular price $29₹2,499.

How to find duplicate files on Mac

Find duplicate downloads, check identical files in Terminal, and set extra copies aside without deleting something you still need.

··5 min read

You have invoice.pdf beside invoice (1).pdf in Downloads, plus an invoice edited.pdf you're reluctant to discard. The first two might be identical, but the third could contain the correction you needed.

Start with Downloads. Compare likely copies, then move only confirmed extras into a holding folder. No deletion on the first pass.

Start with duplicate downloads, not your whole Mac

You download the same bill twice, save an email attachment you've already saved, or copy a document to the Desktop before editing it. Names containing (1) or copy are clues. They aren't proof that the files still match.

Identical files contain the same bytes. Edited versions differ, even if the change is one account number, while similar photos may show the same scene without being the same image. Finding identical files won't settle which draft or photograph to keep.

Choose one folder whose files are stored on your Mac for the first check. Your entire home folder is too broad. It includes app data and libraries where repeated files may serve a purpose. For sorting the rest afterward, use the Downloads organization guide.

Use Finder to spot likely copies

Finder is enough for a small batch. Open Downloads and press Command+2 for list view, then click the Name column heading to bring similarly named files together.

If the Size column is missing, choose View → Show View Options and enable Size. Click its column heading to sort by size instead. Stick to individual files here, since Finder may not show folder sizes.

Look for pairs such as invoice.pdf and invoice (1).pdf. Equal sizes make them worth comparing. They prove nothing on their own: different documents can have exactly the same size, and changing a few digits may leave the byte count unchanged.

Select a file and press Space for Quick Look. Compare the invoice number, amount, date and any annotations with the other copy. Command+I opens information about the selected file, including its location and size. These checks help you understand what you're keeping, but they don't prove that every byte matches.

Check which location you actually use before choosing a keeper. A copy filed in Documents/Finance/City Power is usually more useful than an identical one in Downloads. Don't choose by age alone. The oldest creation date isn't a good reason to keep the less useful copy.

Check the Duplicates album in Photos separately

In Photos on supported macOS versions, look for Duplicates in the sidebar. It covers items in your Photos library, not PDFs and images sitting in Downloads. Analysis takes time. A missing album doesn't prove there are no duplicates.

Photos can identify exact copies and photos that appear the same but have different resolutions or formats. Inspect each group before choosing Merge. Merging changes the library and sends redundant items to Recently Deleted, so this is different from setting files aside in a holding folder.

Keep this work inside Photos. Don't open a Photos Library package in Finder and rearrange the files inside it.

Compare file contents in Terminal without moving anything

If you're comfortable with Terminal, checksums can help find identical contents under completely different names. The command below reads files and prints their checksums and paths. Nothing moves or gets deleted.

Reading cloud-backed files may trigger downloads. To avoid that, use a folder whose contents are already stored locally. Change the path below if Downloads isn't the folder you chose.

Run this in Terminal:

find "$HOME/Downloads" -type f -exec /usr/bin/shasum -a 256 {} +

This includes files in subfolders, including any app or library packages there. Don't scan your whole home folder. Large videos and archives take longer to read, and each result contains a long SHA-256 checksum followed by the file's path.

Repeated checksums identify candidates with matching contents, regardless of their names. A file called scan00034.pdf can have the same checksum as City Power September.pdf.

This is a basic listing, not a duplicate report. Names containing line breaks can make it hard to interpret, so don't feed this text into an automatic move command. For hundreds of files, comparing the listing by hand probably isn't worth the effort.

Confirm a candidate pair with a byte-for-byte comparison. Replace the example names with your files' names, keeping each path in quotes:

/usr/bin/cmp "$HOME/Downloads/invoice.pdf" "$HOME/Downloads/invoice (1).pdf"
echo $?

Run echo $? immediately after cmp, with no other command between them. It displays the comparison's exit status.

When the contents match, cmp prints nothing and the status is 0. A status of 1 means they differ. Anything higher means an error occurred, such as a missing or unreadable file. That isn't a comparison result.

This checks file contents, not all metadata. It can't tell you whether both locations are needed, either: a project may refer to one particular path even though a file elsewhere contains exactly the same bytes.

Move confirmed extras to a holding folder

Choose the keeper, then create a holding folder outside the folder you scanned. For a Downloads check, this would work:

Documents/
  Duplicate holding/
    2026-11-10/
      Downloads/

Use Finder to move only confirmed, unneeded copies there. Keep a text note alongside them with each file's original path and its name in the holding folder, so you know where to put it back if needed.

If Finder reports that a name is already taken, cancel that move. Rename the incoming file before trying again. Two extras from different subfolders can both be called invoice.pdf without being the same document. Don't replace either one.

After each move, open the retained copy from its proper folder and check that it's the document you meant to keep. Then move on. A few recorded moves are easier to reverse than one batch of hundreds of vaguely familiar files.

Leave application support files, linked project assets and library contents alone. Matching bytes don't make them spare parts. Moving a linked image out of a design project can break the project just as effectively as deleting it.

A holding folder isn't a backup. Moving files elsewhere on the same drive won't free disk space, either. Keep your normal backup, and don't schedule the folder for automatic emptying while you're still checking whether anything depends on those copies.

Keep Windows checks separate

If you also have a PC to check, follow how to find duplicate files in Windows 11. Its PowerShell instructions belong on Windows, not in Mac Terminal. Comparing contents works on both. The commands don't carry over.

Archive repeat downloads as they arrive

For recurring duplicate downloads, Moovixo checks exact duplicates by content rather than name and moves extras into the Moovixo Archive instead of deleting them. A fresh copy of a file that's already filed gets a day before archiving.

The first run shows a preview without moving anything. Subsequent moves are recorded for undo. Check the plan before approving it, especially if you deliberately keep identical files in different places. The safety details explain archiving and undo.

Moovixo isn't a Photos-library duplicate merger, and it can't decide which changes in an edited draft matter to you. For a handful of downloads, Finder and a holding folder may be enough. Automatic archiving fits the repeated-download problem, not the choice between two revisions.

guidesmac