Guides
How to Find Duplicate Files on Mac
How to find duplicate files on a Mac by comparing contents rather than names, and how to decide which copy of each group to keep.
Short answer
To find duplicate files on a Mac, compare file contents rather than filenames. Group the files that are genuinely identical, then keep one copy of each group and remove the rest — checking first that nothing references the copy you remove.
Duplicate files are identified by comparing file contents; matching on filename alone produces both false matches and missed duplicates.
Why filename matching is not enough
Comparing names fails in both directions.
False positives. Invoice.pdf from two different suppliers is two different
documents with the same name. A name-based check reports them as duplicates and
invites you to delete one.
False negatives. IMG_4821.jpg and holiday-2019.jpg can be identical
files. A name-based check sees nothing at all.
Only a content comparison answers the actual question, which is whether two files hold the same data.
Finding them with Finder
- Open a folder in list view and sort by Name.
- Look for files that share a name.
- Select two candidates and press Space to preview them side by side.
- Use Get Info to compare their sizes and modification dates.
This works for a handful of obvious cases. It does not scale, and it cannot find duplicates that were renamed.
Finding them with Neatwise
The Duplicate File Finder groups files by content and shows each group with the location and size of every copy. The result is a set of groups where every member is genuinely identical, which is what makes the decision simple.
It is worth running the Storage Analyzer first if you are not sure where to look. Duplicates cluster in a few predictable places, and the analyzer tells you which of them is large enough to bother with.
Why duplicates accumulate
- Importing twice. Photo libraries grow when an import runs over files that were already imported.
- Downloading again. The quickest way to get a file you cannot find is to download it a second time.
- Duplicating before editing. A copy is made so the original is preserved, and then both are kept.
- Restoring from backup. Restoring into a populated folder produces a second copy of everything in the backup.
- Cloud sync. Services that keep local copies can reintroduce files you removed locally.
Deciding which copy to keep
Inside a group the contents are identical, so the decision is about location. Keep the copy in the folder you will look in later, and remove the copies in staging areas.
Two cases need care:
- Application support files. Applications look for their data at specific paths. An identical copy elsewhere does not help the application find it, so removing the copy it expects breaks the application.
- Anything referenced by a link. Aliases, symlinks, scripts and other documents can point at a specific file. Removing that path breaks the reference silently.
When either applies, keep both. The space is recoverable later.
Preventing them
Duplicates come from habits rather than accidents. Checking before importing, finding a file instead of downloading it again, and restoring backups to a clean location removes most of them at the source. A periodic pass over Downloads and the photo library catches the rest.
Step by step
About 10 minutes for a first pass on the folders you use most.
Start with the folders most likely to hold duplicates
Photo libraries, Downloads, Documents and any folder that has been through a restore from backup. Scanning the whole disk works too, but these are where the duplicates are.
Compare contents, not filenames
Two files with different names can be byte-for-byte identical, and two files with the same name are often different documents. Group files by content so each group is a genuine set of duplicates.
Review each group
Look at where each copy lives and how large it is. Inside a group the contents are identical, so the decision is about location rather than content.
Keep the copy in the location you actually use
Keep the copy in the folder you will look in later, and remove the copies in staging areas such as Downloads or the Desktop.
Check for references before removing a copy
An alias, a symlink, a script, an application or another document may point at a specific path. Removing that path breaks the reference even though an identical copy exists elsewhere.
How Neatwise helps
Duplicate File Finder
The Duplicate File Finder finds files that exist in more than one place on your Mac and groups the copies together, so you can keep one and remove the rest.
Similar Photos
Similar Photos groups images that are visually alike rather than byte-identical, so burst shots and repeated frames are presented as sets you review and thin down.
Frequently asked questions
- How do I find duplicate files on a Mac for free?
- Open a folder in Finder, switch to list view, sort by Name, and compare files that share a name. This finds obvious cases but misses duplicates saved under different names and reports different documents that happen to share a name.
- Why are there duplicate files on my Mac?
- The usual causes are importing the same photos twice, downloading a file again instead of finding the first copy, duplicating a document before editing and then keeping both, and restoring from a backup into a folder that already held the same files.
- Is it safe to delete duplicate files?
- It is safe when an identical copy remains and nothing refers to the copy being removed. Applications sometimes expect support files at specific paths, and aliases and scripts point at specific files, so check before removing those.
- Does a duplicate finder detect similar photos?
- A content-based finder detects identical files. The same photo at two resolutions, or saved in two formats, has different contents and is not reported as a duplicate. Comparing visually similar images is a different problem.
Product information
- Official product
- Neatwise: Mac Cleaner
- Platform
- macOS
- Available on
- Mac App Store
- Category
- Mac Cleaner / Mac Utility / Storage Management
- Written by
- zhangyi xu
- Last updated
This page describes features available in Neatwise: Mac Cleaner: