May 1, 2026

Free methods to find duplicate files on a Mac

Asya Karapetyan
Written by
A macOS specialist with 10+ years of experience, focused on Mac cleanup and optimization.

Asya Karapetyan

Alex Holovchenko
Approved by
Reviewed by a QA engineer at Nektony and Apple Certified Support Professional with hands-on experience testing Mac software.

Alex Holovchenko

Share

Data duplication can cost you more than just space. It slows things down, turns folders into digital clutter, and makes simple searches feel frustrating. Plus, your Mac isn’t a fan of a full drive. A good baseline is to leave at least 10% of your disk space unused.

Then you guess what to clean up to free up storage. Duplicates are the easiest win here. They are just copies, downloads, backups, or similar files you don’t need anymore. But the thing is: macOS doesn’t give you one clear button to fix it all. That’s why I tried my best to make it clear what your options are, how they work, and how to use them.

Below are five free ways to find and remove duplicates on your Mac, from quick tools to more hands-on methods, so you can deal with duplicates without overthinking it.

Category Method Time Complexity What it finds
Tool Duplicate File Finder Minutes Easy All file types
Terminal MD5 script Minutes to hours Advanced Exact duplicates by content
Manual Smart Folder in Finder Hours Mid-level Files by filters (name, size, type), not by content
Photos (built-in) Minutes to hours Easy Duplicate photos & videos in Photos Library
Music app Minutes to hours Easy Duplicate songs in Music Library

What duplicate files are there on your Mac?

Most duplicates don’t show up as obvious copy 1 files. They blend in. Same name, same icon, sometimes even different folders, and that’s where things get messy.

The thing is, duplicates come from everyday actions. You download the same file twice, export edits, back things up, sync across apps, and suddenly there are multiple versions of the same thing sitting around. Not a big deal at first, but it adds up in an unexpected way. Here’s what you’re usually up against:

  • Exact duplicates: Same file, same size, same content.
  • Similar photos: Edited, cropped, resized photos, or photo bursts from iPhone saved in your Photos Library.
  • Duplicate photos: Photos copied from imports or AirDrop transfers.
  • Downloaded duplicates: PDFs, installers, images you grabbed more than once.
  • Duplicate music/videos: Same track or movie saved in different formats or from different sources.
  • Imported files: Imported multiple times or synced from iPhone.
  • Duplicate folders: Full copies of projects or directories.
  • Documents: Copies you made just in case, files saved to Desktop and Downloads, and old versions of the same spreadsheet.
  • iCloud and backup duplicates: Files synced, then downloaded again locally, or backed up twice across Time Machine and iCloud, which leads to extra copies.
  • Mail attachments: saved automatically when you open them.
  • Screenshots and screen recordings: Easy to forget about. Especially when you take several versions to get it right.
  • App leftovers and copied data: Apps may create duplicate service files/caches.

Way 1: Duplicate File Finder to find duplicates easy and quickly

Duplicate File Finder is the most complete free option, which covers the full workflow, from scan to cleanup. It’s the only method here that handles all file types across all locations in a single pass, including external drives, iCloud, and Photos Libraries.

Where to get it: search Duplicate File Finder Remover on the Mac App Store, or visit Nektony’s website. Duplicate scan and deletion are free. Pro features like Smart Select, Merge Folders, Select by Folders, and Similar Folders cleanup are optional upgrades.

After you get it, finding and deleting duplicates takes minimal effort.

Watch a demo on how to use Duplicate File Finder

  1. Click + or drag folders into the scan area and click Find Duplicates. Find duplicates tab in Duplicate File Finder Review results by category in the left sidebar:
    • All duplicates: every exact copy of any file type
    • Duplicate folders: folders with 100% identical contents
    • Similar photos: visually similar images (not necessarily identical)
    • Similar audio: audio files with similar content
    • Similar folders: folders with a mix of duplicate and unique files
    All duplicates tab showing results in Duplicate File Finder
  2. Select files to be deleted.

    Alternative

    In the Pro version, you can use Smart Select, which auto-picks files based on rules, pre-set or customizable (set your rules by keeping the file in a specific folder, selecting by filters like date, nesting level, or name, etc., and the app will automatically check the copies you’d want to remove while leaving one original per group). Settings tab showing Smart Select rules in Duplicate File Finder

  3. Click Review to Remove → confirm your selection by clicking Remove.

    Note:

    Duplicate File Finder is free and enough to clear your Mac of duplicates in minutes. It’s recommended by users in reliable sources, such as Reddit, MacWorld, and iLounge.

Way 2: Terminal (MD5 script) to find duplicates on Mac

This method uses a shell script that scans a folder recursively, calculates an MD5 hash for every file, groups files with identical hashes (which means identical content, byte for byte), and saves the results to a text file:

~/Documents/DuplicatesIn_{FolderName}_Folder.txt

Copy

MD5 hashing means the script compares actual file content, not names or dates, so it catches duplicates that Smart Folder would miss entirely. But here’s the catch: reviewing and deleting still happen manually. One wrong command in Terminal can remove files you didn’t intend to touch, and there’s no Removal History to fall back on.

Warning

  • Terminal needs Full Disk Access. Add it in System SettingsPrivacy & SecurityFull Disk Access. Without it, Desktop, Documents, and Downloads won’t be scanned.
  • This method is not beginner-friendly. Review results before deleting anything. There’s no undo if you delete the wrong file directly from Terminal.
  • Hashing thousands of files takes time. For very large folders, expect to wait.

Steps

  1. Download the duplicate-finder script and unzip the archive.
  2. Open Terminal: go to ApplicationsUtilities, or use Spotlight and type Terminal.
  3. Choose which shell command you’ll type:
    • sh

      Copy

      If you’re scanning your home folder, Downloads, Desktop, or Documents, this command runs the script with your current user permissions, which is enough.
    • sudo sh

      Copy

      If you need to scan system folders or locations outside your home directory, this command runs the script with full system access (admin level) and requires your administrator password. sudo is safe here, but always double-check what you’re running before using it.
  4. Type
    sh

    Copy

    or
    sudo sh

    Copy

    followed by a space. Do NOT press Return yet.
  5. Drag the script file from Finder into the Terminal window
    window.
  6. Press Return → enter admin password if required.

    Terminal requesting password

  7. The script will ask you to enter the folder path to be scanned. You shall either:
    • Type the full folder path yourself, or
    • Drag the folder from Finder directly into the Terminal window (dragging is the safer option since it handles spaces in folder names and paths automatically)
  8. Press Return to start scanning duplicate files.
  9. When the scan finishes, Terminal will show the path to the results file:
    ~/Documents/DuplicatesIn_{FolderName}_Folder.txt

    Copy

    Terminal showing path of the results file

  10. In Finder, navigate to and open the file.

    Finder showing the results file

  11. Review the list of paths to files grouped by MD5 hash. Each group is a set of exact duplicates.

    Results file showing duplicate files

  12. Delete the unneeded copies manually. To navigate to any listed file path quickly, use Finder’s Go to Folder → press Cmd+Shift+G, paste the path, and press Return. Review each file before deleting it.

    Go to folder window showing path to duplicate

Way 3: Smart Folder in Finder to locate duplicate files

Smart Folder is a built-in Finder feature that filters files by criteria: name, kind, size, date, and views them all in there, regardless of their location on your disk. It doesn’t detect duplicate content. It groups files so spotting potential duplicates becomes easier visually.

The thing is, this method works best when duplicates have the same or similar names. It won’t flag files with identical content but different names. You’ll be comparing all the files yourself, so be ready for that.

Note:

  • Smart Folder can’t compare file contents, which means you can’t see two files with different names but identical data as related.
  • For a large folder collection, this can take hours. There’s no reliable time estimate; it depends on how many files you’re working through and how carefully you compare them.

Steps

  1. Open Finder.
  2. In the menu bar, go to FileNew Smart Folder. Finder menu bar dropdown showing Smart Folder
  3. Click the + button in the top-right corner to add search filters. You can filter by Kind, Date Modified, Name, or File Size and combine multiple filters to narrow down results. Search filters in Smart Folder
  4. In the menu bar, go to ViewSort BySize. This puts the largest files at the top and groups files of the same size, which makes duplicates easier to spot. Sort by dropdown list in Finder
  5. Open each suspect file manually and compare the contents.
  6. To delete a file, right-click → Move to Trash, or press Cmd+Delete.

Tip

To unlock more search parameters, you can use helpful combos in the filter dropdown:

  • Kind → Image + Extension → .jpg, .png, .tiff to focus on photos only
  • Kind → Document + File Size → greater than X MB to catch large duplicates
  • Name → contains […] + Date Modified → within last 30 days for recent files

Way 4: Photos app and built-in Duplicates feature

Duplicates pile up in Photos for a common reason: when you import photos from a Mac folder, Photos copies them into its own library while the originals stay in the source folder. One import, two copies. Do that a few times and it adds up fast.

Luckily, the Photos app has a dedicated Duplicates section, which is in the sidebar, and the app runs analysis in the background automatically. This is a convenient option for photo duplicates specifically. No third-party app needed, and the workflow is simple.

Note:

  • Only works for files inside the Photos Library. You can’t scan photos outside it.
  • It’s available on macOS Ventura (13) and later only.
  • If the Duplicates aren’t visible in the Utilities, give the Photos app some time to finish scanning your library, especially after a macOS update or first-time setup.
  • If you use iCloud Shared Library, the Duplicates section is only visible in Both Libraries mode.
  • If your library has “Unable to upload” errors, background duplicate analysis may stall. Fix the upload errors first, then let Photos rescan.

Steps

  1. Run the Photos.
  2. In the left sidebar, click Duplicates from the Utilities list.
  3. Wait for the scan. For a small library, it takes seconds. For a large one, thousands of photos, it could take several minutes or more. Once it’s done, duplicates appear side by side in pairs or groups.

    Photos app showing Duplicates tab

  4. To delete duplicate photos, you have two options:
    • Merge N Items: Photos picks the best version automatically based on the highest resolution, largest file size, original (not an edited copy), most complete metadata (EXIF data, geolocation), and if everything else is equal, the one added earliest. Click this, and you’re done.
    • Manual review: makes sense if one copy has edits you want to keep, or if you’re comparing Live Photos where the motion clip in one version is better than the other.
  5. After merging or deleting, click Recently Deleted in the sidebar and empty it. Photos holds deleted items for 30 days before removing them permanently.

Way 5: Music app and duplicate songs

Since iTunes no longer exists on macOS Ventura and later, it’s Music all the way now.

And there’s a real chance it has duplicate tracks - same song added twice, synced from multiple sources, or re-imported after a migration. Fortunately, the Music app has a built-in duplicate finder that’s easy to miss.

Note:

The Music app has two duplicate views, and the difference matters:

  • File → Show Duplicate Items: finds tracks that share the same title and artist. This can surface different versions of the same song: lossless vs. AAC, live vs. studio, remaster vs. original. Not all of those are actual duplicates.
  • File → Show Exact Duplicate Items: finds tracks that match on title, artist, and album. A much tighter match — actual duplicates, not just different versions of the same song. Hidden by default, accessed by holding Option while clicking File.

Steps

  1. Open the Music app.
  2. In the menu bar, click File → Library → Show Duplicate Items. This lists every track where the title and artist match another track in your library. You may see false positives here, a live version and a studio version of the same song, for instance. That’s expected behavior. Music Library dropdown with Show Exact Duplicate Items

  3. For a more accurate result: hold the Option key and click File in the menu bar. The option now reads Show Exact Duplicate Items. That’s the one to use when you want real duplicates, not just similar-looking entries.

    Music Library dropdown with Show Duplicate Items

  4. Review the list carefully. Don’t select all and delete; go through the results and identify tracks that are redundant copies, not just the same song in different versions or qualities.

    Music app showing duplicate songs in My playlist

  5. Identify the one you don’t need, right-click it → Delete from Library.

Final method on how to find duplicate files on Mac

What you need Best method Where it finds
Clean up all file types at once Duplicate File Finder Any location on your Mac, including external drives, iCloud (local copies)
Remove duplicate photos Photos app (built-in) Inside Photos Library only
Remove duplicate music Music app (built-in) Inside Music Library only
Stay without third-party tools Smart Folder All indexed locations on your Mac
Terminal Any folder you point it to, including system folders with sudo

Frequently asked questions

Does Mac have a built-in duplicate file finder?

Not a single unified one. macOS has a Duplicates feature in the Photos app (Monterey+) and a Show Duplicate Items option in the Music app, but neither covers general files. For documents, downloads, and everything else, you'll need a third-party app, a manual method in Finder (Smart Folder), or Terminal.

Is Duplicate File Finder by Nektony free?

Yes, Nektony's Duplicate File Finder Remover is free for scanning and deleting exact duplicates. Pro features like Smart Select, Merge Folders, Select by Folders, and Similar Folders cleanup require an in-app upgrade.

Can I scan external drives and cloud storage in Duplicate File Finder?

Yes, Duplicate File Finder supports external drives, USB drives, iCloud Drive, and other cloud storage services connected to your Mac.

How often should I check my Mac for duplicates?

Once every 1-3 months works well. Also worth doing after bulk photo/video imports, switching devices, or creating backups.

Why do duplicates appear in Photos after import?

When you import photos from a Mac folder into the Photos app, it creates a copy inside its library while the original file stays in the source folder. So the same file ends up stored twice.

😊 Was this article helpful?

Scroll to Top