Duplicates

How to find and delete duplicate files on a Mac

Duplicates pile up quietly: the same PDF downloaded three times, a folder copied “just in case”, an old backup of a project you later copied again. Each one is small, but together they can take gigabytes.

macOS doesn’t have a duplicate finder for files. Here are the ways to find them yourself, and how to delete the right copy.

What counts as a duplicate

A real duplicate has exactly the same content, byte for byte, even if its name is different. Files with the same name aren’t always duplicates: Report.pdf in two folders might be two different versions.

So the safe test is content, not name. For photos that only look alike, like bursts and retakes, see how to find duplicate photos.

Look for the usual suspects

Most duplicates come from a few places:

  • Downloads: files with (1) or (2) at the end of the name.
  • Copies of folders: Finder names them … copy.
  • Old exports: videos, PDFs or images exported more than once.
  • Phone and camera imports done twice.

In Finder, search your Downloads folder for (1) or copy and sort by size to find the big ones first.

Find exact duplicates with Terminal

macOS can compute a fingerprint (a checksum) for every file. Files with the same fingerprint have the same content. This lists files over 1 MB in your Documents folder, grouped by fingerprint, so duplicates sit next to each other:

Terminal
find ~/Documents -type f -size +1M -exec shasum {} + | sort

Look for lines that start with the same long code. It can take a while on large folders.

If you use Homebrew, the free fdupes tool does the grouping for you:

Terminal
brew install fdupes
fdupes -r ~/Documents

It only lists duplicates; it doesn’t delete anything unless you ask it to.

Photos library: use Photos

Don’t delete files from inside your Photos library in Finder. Instead, open Photos and check the Duplicates album in the sidebar (on recent macOS). Merging there keeps the best quality and combines the details.

Which copy to keep

  • Keep the copy in the place you’d look for it, usually the shorter, tidier path.
  • Keep the one that’s backed up or in iCloud Drive.
  • Be careful with copies inside app folders or project folders: an app or project may need its own copy.
  • When in doubt, move the extra copy to the Trash, not delete it straight away, and empty the Trash a week later.
Duplicates

Or let Tinymop find them

Duplicates checks files by content, first with a quick fingerprint and then byte for byte, so only true copies are grouped. Smart Selection keeps one copy in each group, the one with the shortest path, and you can change the pick before anything goes. Then you choose: Move to Trash, so you can put a copy back, or delete for good.

Download for Mac
Desktop
is tidy