How to find duplicate files on a Mac

macOS doesn't come with a general duplicate file finder. The Photos app can find duplicate photos in its own library, but Finder can't find duplicate documents, downloads or videos. Here's how to find them for free.

Method 1: Scan a folder in your browser (easiest)

  1. Open fileduplicatefinder.com in Safari, Chrome or Firefox.
  2. Click Choose a folder, or drag a folder from Finder onto the page. Good places to start are Downloads, Documents, Desktop, Movies and external drives.
  3. Duplicates are confirmed by comparing file contents, then grouped and ranked by wasted space.
  4. In Chrome or Edge, select the extra copies and move them into a review folder from the page. In Safari or Firefox, export a CSV and remove them in Finder.

The scan runs entirely on your Mac and no files are uploaded. When you choose a folder, Safari may say it's uploading files to the site. It isn't; that's just the browser's standard wording, and the files stay on your Mac.

Method 2: The Photos app Duplicates album

For pictures stored in Apple Photos (macOS Ventura 13 and later):

  1. Open Photos and look in the sidebar under Utilities.
  2. Click Duplicates. If it isn't there, Photos hasn't found any yet, or is still analysing your library.
  3. Click Merge next to a set, or select several sets and merge them all.

Merging keeps the best-quality version with the combined metadata and moves the rest to Recently Deleted. Only use this for the Photos library. Never delete files from inside the .photoslibrary package in Finder. Our duplicate photos guide covers iPhone and exports too.

Method 3: Finder Smart Folders and sorting

  1. In Finder, press ⌘ F and choose This Mac or a specific folder.
  2. Add a criterion such as Kind is Document or File Size is greater than 100 MB, then save it as a Smart Folder.
  3. Switch to List view (⌘ 2) and sort by Size or Name. Duplicates sit next to each other, often with names like file 2.pdf or file copy.pdf.

This is useful for spotting big copies, but files with matching sizes or names aren't guaranteed to be identical, so check before deleting.

Method 4: Terminal

To list files with identical contents using built-in tools, open Terminal and run (change the folder as needed):

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

Each block of output is a set of identical files. It hashes every file, so it's slower than a size-first tool on large folders.

Where duplicates pile up on a Mac

Before you delete