# How to find duplicate files on a Mac

Source: https://trygander.app/find-duplicate-files-mac  
Updated: 2026-11-13

Finder cannot tell you which of your files are copies of each other. A few Apple apps can for their own libraries, Terminal can for any folder, and there are apps that do it with pictures.

## What "duplicate" should mean

Two files are true duplicates when their contents are identical, byte for byte. Names are a poor guide: `report.pdf` and `report (1).pdf` are often the same file, but two different photos can both be called `IMG_0001.jpg`. A reliable check compares contents, usually by computing a fingerprint (a hash) of each file.

## In Photos

If the copies are in your Photos library, open **Photos** and look for **Duplicates** in the sidebar under Utilities. Photos groups matching pictures and offers to merge each group, keeping the best version and its captions and keywords. This only covers the Photos library, not image files in your folders.

## In Music

In the Music app, choose **File**, then **Library**, then **Show Duplicate Items**. It matches songs by title and artist. Hold <kbd>⌥</kbd> while opening the menu to match exactly, including the album.

## In Finder, by hand

There is no command for it, but you can spot likely copies:

1. Open the folder and switch to list view.
2. Sort by **Size**. Identical files have identical sizes, so copies sit next to each other.
3. Select two candidates and press <kbd>Space</kbd> to compare them in Quick Look.

This is fine for one folder and hopeless across a whole Mac.

## In Terminal

This prints every file in Downloads that is an exact copy of an earlier one, by comparing SHA-256 fingerprints of files over 1 MB:

```
find ~/Downloads -type f -size +1M -exec shasum -a 256 {} + | sort | awk '$1 == last { print substr($0, 67) } { last = $1 }'
```

It only lists the copies. Check them before deleting anything, and expect it to take a while on a large folder, because it reads every file in full.

## With thumbnails and a Keep button

[Gander](https://trygander.app/) finds byte-identical files across your Desktop, Documents, Downloads, Pictures, Movies and Music. It compares sizes first, then the first part of each file, and only fingerprints the files that still match, so the scan is quick.

Each group shows its copies side by side as thumbnails with where they live. Gander picks one to keep, preferring the copy outside Downloads and without "(1)" or "copy" in its name, and you can click another to keep that one instead. The extras go to the Trash, and Undo puts them back.

> Files that exist only in iCloud are skipped, so checking for duplicates never downloads anything.

## FAQ

### Does macOS have a built-in duplicate file finder?

Not for files in general. Photos can find duplicates inside its library and Music can inside its own. Finder has nothing.

### Is it safe to delete duplicate files?

If the contents are identical, removing one copy loses nothing. Take care with files inside app libraries and project folders, where an app may expect each copy to be where it is.

### Will a duplicate finder find photos that merely look alike?

Only if it is built for that. Byte-for-byte comparison, which Gander uses, finds exact copies. It does not group a photo with an edited or resized version of it.

## Keep reading

- [Free up space on a Mac](https://trygander.app/free-up-space-on-mac): A checklist that gets disk space back without deleting something you need.
- [Find large files](https://trygander.app/find-large-files-mac): The biggest files on your Mac: Storage settings, Finder search by size, Terminal, or a visual browser.
- [Clean up screenshots](https://trygander.app/clean-up-screenshots-mac): Find every screenshot, delete the old ones, and stop the Desktop filling up again.
