How to find duplicate files on a Mac

By Little Mac Apps · Updated

Short answer: macOS has no general duplicate-file finder. For photos and videos, open Photos and click Duplicates under Utilities in the sidebar (macOS Ventura or later). For everything else, use a tool that compares file contents. File Stacker's Duplicates tool groups identical files, lets you choose which copy to keep, and moves the others to the Trash.

Identical files vs. similar files

“Duplicate” can mean two different things, and they need different tools.

KindWhat it meansExample
IdenticalThe files contain exactly the same bytes, even if their names, dates or folders differ.An installer downloaded twice; report.pdf and report (1).pdf.
SimilarThe files look alike but their contents differ.A photo and its edited or resized version; two burst shots; a song in two formats.

Identical files contain the same bytes, but their locations and metadata can matter. Before removing a copy, check that no app or project depends on it and that you’ve kept the metadata you need. Similar files need a person to compare them. File Stacker's Duplicates tool finds identical files only. It doesn't decide whether two different photos look alike.

What macOS can do on its own

Photos library: the Duplicates collection

  1. Open Photos and click Duplicates under Utilities in the sidebar. If you don't see it, Photos may not have found any yet.
  2. Select the duplicates you want to combine and click Merge.
  3. One item stays in your library. The others move to Recently Deleted, where you can recover them for 30 days.

Never delete files from inside the Photos library package in Finder. Use Photos for anything in your library.

Other files: a manual check in Finder

Finder can't compare contents, but it can show likely duplicates. Search for a name, then switch to list view and sort by Size. Files with the same name and exactly the same size are worth checking. Open both before deleting, because the same size doesn't prove the same contents.

Find identical files with File Stacker

  1. Scan the folders you want to check. Your Home folder is a good start; add an external disk with Grant Access to a Folder….
  2. Open Duplicates in the sidebar.
  3. Set Ignore files under to skip small files. A larger limit is faster and shows where the space is.
  4. Run the search. Each set lists copies with identical contents, with the size of one copy and how many there are.
  5. Choose the copy to keep, using the advice below, and move the others to the Trash.

To check a file before choosing, select it to see its full path and dates, or press Space for Quick Look.

How to choose which copy to keep

Why removing a duplicate may free less space than shown

File Stacker treats duplicate savings as an upper bound. You may get back less than the size shown because:

Undoing a mistake

Everything File Stacker removes goes to the Trash. Open Recent Removals and click Put Back to return an item to its original folder, as long as it's still in the Trash. In Finder, you can also select an item in the Trash and choose File → Put Back. You can also protect a folder so File Stacker won't remove anything inside it.

Sources