How to Find and Delete Duplicate Files on Mac
macOS never removes copies for you, so they pile up for years. Here is how to track down duplicate files and delete them safely, from free built-in tricks to apps that do the whole scan for you.
By Ram Velmurugan · Founder & Lead Developer, 1dot.ai
- The short answer
- Why duplicates pile up in the first place
- Duplicate vs similar: what you are actually deleting
- Start with photos (the one native tool)
- Method 1: Catch obvious copies in Finder
- Method 2: Find hidden duplicates in Terminal
- Method 3: The free fdupes tool
- Method 4: Dedicated duplicate finder apps
- Method 5: Let an AI organizer handle it
- Which method should you use?
- How to delete duplicates safely
- How to stop duplicates coming back
- FAQ
Duplicate files are the quietest way to lose disk space. Nobody sets out to keep three copies of the same video, but it happens. You download an attachment twice, copy a project folder before editing it, import the same photos from your phone again, and restore an old backup. Every one of those leaves an identical file sitting somewhere on your drive, and macOS never cleans any of it up.
The frustrating part is that Apple gives you almost nothing to fix it. There is no "Find Duplicates" button in Finder. The only native duplicate tool anywhere in macOS lives inside the Photos app. For everything else, documents, downloads, music, videos, you are on your own unless you know a few tricks or reach for an app.
This guide walks through all of them, from free built-in methods to paid tools, and shows you how to delete what you find without accidentally removing something you needed. Start wherever your mess is biggest.
The Short Answer
macOS has no built-in duplicate file finder except for photos. To find duplicate files on Mac, use the Photos app Duplicates album for your photo library, search Finder by name for obvious copies, and run a Terminal hash command or the free fdupes tool to catch identical files with different names. For a faster, safer scan across your whole drive, use a dedicated app like Nektony Duplicate File Finder or Gemini 2, or an AI organizer such as Files Magic AI that reviews duplicates alongside the rest of your cleanup. Always keep one copy and back up before deleting.
Why Duplicates Pile Up in the First Place
Knowing where duplicates come from tells you where to look for them. A handful of everyday habits are almost always the source:
- Double downloads. You save the same email attachment or file twice, and you end up with
report.pdfandreport (1).pdf. - Copy-before-editing. You duplicate a folder to be safe before changing something, then never delete the backup copy.
- Repeated photo imports. Importing from a phone or camera more than once brings in the same shots again.
- Backups and restores. Pulling files back from a Time Machine or cloud backup often lands a second copy next to the original.
- Overlapping cloud sync. Running iCloud Drive plus another service like Dropbox or Google Drive can mirror the same files into two places.
- AirDrop and Messages. Files people send you land in Downloads even when you already have them.
Because macOS never removes any of this automatically, the copies just accumulate. Most of the damage hides in four places: Downloads, Documents, the Desktop, and your Photos library. That is where to aim.
Duplicate vs Similar: What You Are Actually Deleting
Before you delete anything, it helps to understand what "duplicate" really means, because tools handle it in two very different ways.
A true duplicate is byte-for-byte identical. Even if the two files have different names, their content is exactly the same, so a checksum (a short fingerprint calculated from the file's contents) matches. Deleting one of a matched pair is completely safe, because the survivor is identical.
A similar file is close but not the same: two edits of one photo, a document saved as both Word and PDF, or the same song at two bitrates. Some apps flag these as "similar" and they can be worth clearing, but they need real review, because the files are genuinely different and you might want to keep both.
Start With Photos (the One Native Tool)
For most people, the photo library is the single biggest source of duplicates, and this is the one place Apple actually helps. Since macOS Ventura, the Photos app finds duplicates for you.
- Open the Photos app.
- In the sidebar, scroll to Utilities and click Duplicates.
- Photos shows each set of duplicate or near-identical images and videos side by side.
- Click Merge on a set, or select several and merge them at once.
Merging is smart. Photos keeps the highest quality version and combines any keywords, edits, and album membership into the copy it keeps, then moves the rest to Recently Deleted. It is genuinely safe, and on a cluttered library it can reclaim several gigabytes in a few minutes.
Method 1: Catch Obvious Copies in Finder
Finder cannot compare file contents, so it will never find a renamed duplicate. What it is good at is catching the obvious ones, the files macOS itself named with "copy" or a number. This is the fastest free win.
Search by name
Open a Finder window, press Command F, and set the search to Name. Type copy, then repeat with (1), (2), and duplicate. Change the scope from "This Mac" to a specific folder like Downloads or Documents so you are not wading through system files. Sort the results by name so matched pairs sit next to each other, then delete the extra copy.
Sort by size to spot big repeats
Switch to List view (Command 2) and sort by Size. Large files that appear twice, a video, a disk image, a design export, are usually easy to eyeball as duplicates and give you the most space back per deletion.
IMG_2205.png and vacation.png, Finder is blind to the match. For those you need content-based detection.Method 2: Find Hidden Duplicates in Terminal
This is the free way to catch identical files regardless of their names. Terminal can calculate a checksum for every file in a folder and show you which fingerprints appear more than once. It is more work than an app, but it costs nothing and it is exact.
Open Terminal and run this on a folder you want to check, for example Downloads:
find ~/Downloads -type f -exec md5 -r {} + | sort | uniq -w 32 -dDHere is what it does: find lists every file, md5 -r prints a hash followed by the path, sort lines the hashes up, and uniq -w 32 -dD shows only the groups whose first 32 characters (the hash) repeat. The output groups identical files together so you can see each duplicate set and its locations.
Read the list, decide which copy to keep, and remove the others by hand. Move them to the Trash from Finder rather than deleting with rm unless you are completely sure, so a mistake is recoverable.
rm deletes permanently, with no Trash and no undo. Never point these commands at system folders, the Library, or application bundles. Stick to your own folders like Downloads, Documents, and Desktop, and back up before you act.Method 3: The Free fdupes Tool
If the raw Terminal command feels fiddly, fdupes does the same content-based comparison with a friendlier workflow. It is free and open source, and it can walk you through each duplicate set and ask which copies to keep.
Install it with Homebrew, then scan a folder:
brew install fdupes
fdupes -r ~/DownloadsThe -r flag scans subfolders too. Add -d to have it prompt you interactively for which file in each set to keep, and it deletes the rest. Because it compares contents, it catches renamed duplicates that Finder misses, and it is safe as long as you review each prompt rather than blindly keeping the first option every time.
Method 4: Dedicated Duplicate Finder Apps
If you would rather not touch Terminal, a dedicated app scans your whole drive, groups duplicates visually, and lets you clear them in a couple of clicks. Here is how the main options compare in 2026.
| App | What it does well | Watch out for | Price |
|---|---|---|---|
| Nektony Duplicate File Finder | Generous free tier, can merge two folders into one, clear results view | Some features gated behind the paid Pro version | Free, Pro around $49.99 lifetime |
| Gemini 2 (MacPaw) | Polished interface, learns your choices, finds similar as well as exact | Auto-selects files for deletion, so review before you confirm | Around $19.95/yr or via Setapp |
| dupeGuru | Completely free and open source, exact and fuzzy matching | No longer maintained; will not run on current macOS versions | Free |
| CleanMyMac | Duplicate finder bundled with broader system cleanup | You are paying for a full maintenance suite, not just duplicates | Subscription |
| Files Magic AI | Reviews duplicates on device alongside organizing and renaming, one pass | Duplicate review is part of a beta System Cleaner, not a standalone scanner | $49.99 lifetime |
A quick honest note on the free options. dupeGuru comes up constantly in older articles, and it genuinely was excellent, but it has not been updated in years and will not open on modern macOS because of security requirements. If you want free and current, the Terminal method, fdupes, or Nektony's free tier are the reliable routes today.
If you specifically want the duplicate-and-similar photo angle with a polished interface, the Files Magic AI vs Gemini 2 comparison breaks down where a dedicated scanner wins and where an all-in-one organizer makes more sense.
Method 5: Let an AI Organizer Handle It
A dedicated duplicate finder does one job. The catch is that duplicates are rarely your only problem. The same messy Downloads folder usually needs organizing and renaming too, and running three separate tools for one cleanup gets old fast.
This is where Files Magic AI fits differently. Its System Cleaner surfaces duplicate files, unused apps, and cache-heavy leftovers for you to review, while the same tool reads your files, groups them into a sensible structure, and renames the vague ones. You handle duplicates as one part of getting the whole folder in order, not as a separate errand.
What that looks like in practice:
- Duplicates are reviewed, not auto-deleted. The System Cleaner shows you the copies it finds and nothing is removed until you approve it, which avoids the classic mistake of trusting an automatic selection.
- It runs on device. The offline Magic Rename and cleanup work happen locally, so your file contents stay on your Mac instead of being uploaded to a server.
- One pass, not three. While it clears duplicates, it also files loose downloads and turns names like
scan_0043.pdfinto something you can actually search for.
Clear duplicates while you organize
Files Magic AI reviews duplicate files, unused apps, and clutter, then organizes and renames the rest, all on device with a review step before anything is deleted. 15-day free trial, no credit card required.
Start 15-day free trialSee how it worksWhich Method Should You Use?
| Method | Finds renamed duplicates? | Effort | Best for | Cost |
|---|---|---|---|---|
| Photos Duplicates album | ✓ Photos only | Very low | Your photo library | Free |
| Finder name search | ✗ No | Low | Obvious "copy" files | Free |
| Terminal hash command | ✓ Yes | Medium to high | Free, exact, no install of apps | Free |
| fdupes | ✓ Yes | Medium | Free content matching with prompts | Free |
| Dedicated app (Nektony, Gemini 2) | ✓ Yes | Low | Whole-drive scans, visual review | Free to ~$50 |
| Files Magic AI | ✓ Yes, with review | Low | Duplicates plus organizing and renaming | $49.99 lifetime |
For most people the smart move is a combination: clear photo duplicates in the Photos app first because that is free and safe, then pick one method for everything else based on how hands-on you want to be. Terminal or fdupes if you like doing it yourself for free, a dedicated app if you want a quick visual scan, or an AI organizer if duplicates are part of a bigger cleanup.
How to Delete Duplicates Safely
Duplicate cleanup goes wrong in predictable ways. These five rules keep you out of trouble no matter which method you use.
Back up before you start
Non-negotiableMake sure Time Machine or another backup is current. If you delete the wrong thing, a recent backup turns a disaster into a five-minute restore.
Always keep one copy
Every setThe goal is to remove extra copies, not all copies. Double-check that each duplicate set still has one survivor before you empty the Trash.
Stay out of system and app folders
ImportantApps legitimately ship identical files inside their bundles, and the Library holds support files that look like duplicates but are not junk. Only clean your own folders: Downloads, Documents, Desktop, Movies, and Music.
Never trust auto-select blindly
Review firstSome apps pre-tick which copies to delete. Convenient, but glance down the list before you confirm. A tool that keeps the wrong version of a file you edited can cost you real work.
Delete to Trash, then wait
Safety netSend duplicates to the Trash rather than deleting permanently, use your Mac for a day, and empty it only once you are sure nothing broke. This one habit catches almost every mistake before it becomes permanent.
How to Stop Duplicates Coming Back
A clean drive drifts back into duplicates within months unless you change a couple of habits. None of these take effort once they are set up:
- File downloads instead of hoarding them. A tidy Downloads folder is where most duplicates start. Our guide on organizing your Downloads folder covers how to keep it from becoming a dumping ground.
- Do not run two cloud services over the same files. Pick one home for a given set of files. Mirroring the same folder through iCloud and Dropbox is a reliable duplicate factory.
- Import photos once. Delete images off your phone or card only after you have confirmed they are in your library, so you never re-import the same batch.
- Rename as you save. A folder full of
Document (3).pdfmakes it impossible to tell a duplicate from a real second file. Clear names prevent accidental copies. See our bulk rename guide for fast ways to fix messy names. - Run an occasional cleanup. A quick duplicate scan every few months, or an organizer that flags copies as it works, keeps the problem from ever building back up.
Frequently Asked Questions
fdupes tool with Homebrew, which compares file contents and prompts you for what to keep. All three cost nothing but ask for a little more care than a paid app.fdupes both accept any folder path, so you can point them at an external drive. Most dedicated apps, including Nektony Duplicate File Finder and Gemini 2, also let you add external volumes to a scan. Just be extra careful with backups, since a "duplicate" on an external drive may be your only backup copy of a file.Published July 11, 2026 · More guides · Files Magic AI