Two of everything: finding and removing duplicate files on Mac
You download a PDF, forget you already have it, and download it again. A photo gets saved to two folders. A presentation exists in three versions with slightly different names. Over years, these duplicates accumulate — quietly, invisibly — until they're wasting several gigabytes.
macOS has no built-in duplicate finder. But there are several ways to hunt them down.
Where duplicates come from
Duplicates sneak in through predictable patterns:
- Downloads folder. You download the same file months apart. The browser appends "(1)" to the name. You end up with
report.pdfandreport (1).pdf. - Photos. AirDrop, iCloud sync issues, or importing from a camera can create multiple copies of the same image in different locations.
- Desktop clutter. Files saved to Desktop "temporarily" get copied to Documents later — but the Desktop copy stays.
- Multiple backups. Manual backup folders alongside Time Machine create a second copy of everything.
- Email attachments. Saving the same attachment from different email threads creates separate files.
Method 1: Smart Folders in Finder
Finder's Smart Folders can help you spot obvious duplicates without any extra tools:
- In Finder, go to File → New Smart Folder
- Click the + button to add search criteria
- Set it to search by file kind (e.g., "Images" or "PDFs") and sort by Name
- Scroll through and look for files with similar names — especially ones with "(1)" or "copy" in the name
This method is free and built-in, but it's manual and only catches files with similar names — not identical files with different names.
Method 2: Terminal with fdupes
For a more thorough approach, the command-line tool fdupes compares files by content (not just name) and finds true byte-for-byte duplicates. You can install it through Homebrew:
brew install fdupes
Then scan a folder:
fdupes -r ~/Documents
The -r flag searches recursively. fdupes groups identical files together in its output, so you can decide which copy to keep.
-d) on your entire home folder. Some apps intentionally keep identical files in different locations. Review the results and delete manually, or limit the scan to specific folders like Downloads, Documents, or Desktop.Method 3: Duplicate file finder apps
Third-party apps provide a visual interface for duplicate finding. They typically scan by file hash (content comparison), group duplicates together, and let you preview before deleting. Some also find "similar" photos (near-duplicates with different resolutions).
Look for an app that compares by file content, not just file name — name-based matching misses the most common duplicates (same file, different name).
What to keep in mind
- Always keep at least one copy. This sounds obvious, but when you're batch-deleting, it's easy to accidentally remove all copies of a file instead of just the extras.
- Check before deleting photos. Some "duplicates" are actually different sizes or edits. A 4000px image and a 1200px thumbnail of the same photo aren't true duplicates.
- Don't scan system folders. Stick to your user folders — Documents, Downloads, Desktop, Pictures. System files and Library should be left alone.
- Empty Trash after. Deleted duplicates sit in Trash until you empty it. You don't recover space until the Trash is emptied.
How much space do duplicates waste?
Duplicates are just one type of wasted space. For a broader cleanup, check out our guide to System Data on Mac — it covers caches, snapshots, and other invisible space consumers.
Find duplicates (and everything else) in one scan
Gigatidy scans your entire Mac — duplicates, caches, leftovers, and more — and shows you what's safe to remove, with sizes.
Meet Gigatidy →FAQ
Does macOS have a built-in duplicate file finder?
Not directly. Finder's Smart Folders can help you spot files with similar names, but macOS doesn't have a tool that compares file contents to find true duplicates. You'll need a Terminal tool like fdupes or a third-party app for thorough duplicate detection.
Is it safe to delete duplicate files?
Yes, as long as you keep one copy of each file. The risk is accidentally deleting all copies, so always review before deleting — especially with photos and documents. Start with your Downloads folder, where duplicates are safest to remove.
How do I know which copy of a duplicate to keep?
Keep the one that's in the right location (e.g., the one in your organized Documents folder, not the one in Downloads). If both are identical, it doesn't matter — they're the same file. For photos, keep the higher-resolution version if they differ in size.