July 2026 · Mac Storage Guide

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

Free and paid methods·Photos, documents, downloads·10 min read

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

Quick 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.pdf and report (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.

Bigger picture
Duplicates are usually one symptom of a drive that needs a broader cleanup. If your Mac keeps warning you about storage, our guide on how to free up disk space on Mac covers the other big culprits, from developer caches to leftover installers.

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.

Rule of thumb
Content hashing (exact matches) is safe to act on quickly. Similarity matching is useful but always deserves a careful look before you delete, especially for photos and documents you have edited.

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.

  1. Open the Photos app.
  2. In the sidebar, scroll to Utilities and click Duplicates.
  3. Photos shows each set of duplicate or near-identical images and videos side by side.
  4. 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.

One limit
The Duplicates album only covers images and videos that live inside your Photos library. Loose image files in Downloads, Desktop, or a project folder are invisible to it. Those need a file-level method from the sections below.

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.

The catch
This only works when duplicates share a recognizable name. The moment you have two identical files called 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 -dD

Here 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.

Be careful
A mistyped 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 ~/Downloads

The -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.

AppWhat it does wellWatch out forPrice
Nektony Duplicate File FinderGenerous free tier, can merge two folders into one, clear results viewSome features gated behind the paid Pro versionFree, Pro around $49.99 lifetime
Gemini 2 (MacPaw)Polished interface, learns your choices, finds similar as well as exactAuto-selects files for deletion, so review before you confirmAround $19.95/yr or via Setapp
dupeGuruCompletely free and open source, exact and fuzzy matchingNo longer maintained; will not run on current macOS versionsFree
CleanMyMacDuplicate finder bundled with broader system cleanupYou are paying for a full maintenance suite, not just duplicatesSubscription
Files Magic AIReviews duplicates on device alongside organizing and renaming, one passDuplicate 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.pdf into something you can actually search for.
When AI is the right call
If your duplicates are tangled up in a wider mess of unsorted, badly named files, an AI organizer saves the most time because it fixes all of it together. If you only want to hunt duplicates and nothing else, a focused scanner like Nektony or the free Terminal method is the leaner choice.

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 works

Which Method Should You Use?

MethodFinds renamed duplicates?EffortBest forCost
Photos Duplicates album Photos onlyVery lowYour photo libraryFree
Finder name search NoLowObvious "copy" filesFree
Terminal hash command YesMedium to highFree, exact, no install of appsFree
fdupes YesMediumFree content matching with promptsFree
Dedicated app (Nektony, Gemini 2) YesLowWhole-drive scans, visual reviewFree to ~$50
Files Magic AI Yes, with reviewLowDuplicates 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.

1

Back up before you start

Non-negotiable

Make 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.

2

Always keep one copy

Every set

The goal is to remove extra copies, not all copies. Double-check that each duplicate set still has one survivor before you empty the Trash.

3

Stay out of system and app folders

Important

Apps 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.

4

Never trust auto-select blindly

Review first

Some 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.

5

Delete to Trash, then wait

Safety net

Send 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).pdf makes 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

Does macOS have a built-in duplicate file finder?
Not for general files. macOS has no tool that scans your whole drive for duplicates. The one exception is the Photos app, which has a Duplicates album that finds and merges duplicate photos and videos. For documents, downloads, and everything else you need a Finder search, a Terminal command, or a third-party app.
How do I find duplicate files on Mac for free?
Three free routes. Search Finder by name to catch obvious copies like "invoice copy" and "report (1)". Run a Terminal command that hashes every file and lists matching fingerprints. Or install the free 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.
Is it safe to delete duplicate files on Mac?
Yes, as long as you delete true duplicates and keep one copy of each. The danger is removing system files, app support files, or the only copy of something you still need. Keep at least one version of everything, stay out of application and Library folders, and review the list before deleting rather than trusting an automatic selection.
What is the difference between a duplicate and a similar file?
A true duplicate is byte-for-byte identical, so its content fingerprint matches another file exactly even if the names differ. A similar file is close but not identical, like two edits of a photo or a document saved in two formats. Exact matching is safe to act on. Similarity matching finds near copies but needs careful review because the files really are different.
How do I find duplicate photos on my Mac?
Open the Photos app and look for the Duplicates album under Utilities in the sidebar. macOS groups exact and near-identical shots and lets you merge each set into one, keeping the best version and combining edits and keywords. This covers photos inside your Photos library only. Loose image files elsewhere on your drive need a file-level duplicate finder.
Why do I have so many duplicate files on my Mac?
Duplicates build up from everyday habits: downloading the same attachment twice, copying a folder before editing, importing photos more than once, restoring from a backup, or syncing the same files through two cloud services. macOS never removes them on its own, so copies quietly pile up across Downloads, Documents, Desktop, and your photo library for years.
Can I find duplicates across an external drive too?
Yes. The Terminal hash method and 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