How to find and delete duplicate files on a Mac

Updated

macOS has no built-in tool that finds duplicate files in Finder. You can narrow the search by hand, but the only reliable test is whether two files have identical contents, not whether they share a name.

How copies end up on your Mac

Most duplicates are made without you noticing. Knowing where they come from tells you where to look.

Check Photos first

If the duplicates are pictures in the Photos app, open Photos and look under Utilities in the sidebar for Duplicates (macOS Ventura and later). It only covers the Photos library, not files in folders. The duplicate photos guide walks through merging them.

Narrow it down in Finder

  1. In Finder, choose File, then New Smart Folder.
  2. Click the plus button and add a Kind rule, for example Kind is PDF, or choose Other to add File Size.
  3. Switch to list view with Command-2 and sort by Size.
  4. Files with exactly the same size sitting next to each other are your candidates. Sort by Name as well to catch copy, (1) and 2 endings.

A matching name and size is only a hint. Two files can share both and still differ, and real duplicates are often named differently.

Confirm two files are identical

For a handful of suspects, Terminal gives a definite answer without changing anything. Type the command, a space, then drag each file into the window to add its path.

Decide which copy to keep

SituationUsually keep
One copy in Downloads, one in a project folderThe one in the project folder
One copy is used by an app, such as a music or video projectThe one the app points to
Same picture as HEIC and as JPEGNot true duplicates; keep the format you need
An edited version and the originalBoth, unless you only want the edit

Compare contents with FileSift

A tool that reads file contents can tell real duplicates from look-alikes across many folders at once. FileSift finds identical files and look-alike photos, shows each group as thumbnails, always keeps one copy in each group, and checks the files again just before anything moves. Files that are stored only in iCloud are shown but never treated as duplicates, so nothing is downloaded in the background.

Delete safely

Move the extras to the Trash instead of deleting them straight away, and empty the Trash only after you have checked that the copy you kept opens. Leave the insides of app bundles and the Photos and Music libraries alone; manage those from their own apps.

On the APFS file system used by current Macs, a copy made in Finder on the same disk can share storage with the original until one of them changes. Removing such a copy may free less space than its size suggests.

Common questions

Is a file with the same name always a duplicate?

No. Two files can share a name and differ in content, and true duplicates are often named differently. Compare size and contents before deleting.

How many copies should I keep?

Keep exactly one in each group. FileSift always keeps one copy and moves the others to the Trash.

Can I undo deleting a duplicate?

Yes, until you empty the Trash. Open the Trash, right-click the file and choose Put Back.

FileSift shows your folders as large thumbnails, searches in plain English and clears duplicates. US$19 once, for macOS 14 or later. See what it does.

Related guides

More in How-to guides, or see all guides.