How to Find and Delete Duplicate Files on Mac Easily and Quickly

avatar
Sarah Miller
Updated on July 01, 2024 Preview 925 Preview 0
share it facebook share it Twitter

If your Mac is a few years old and you use it a lot, then chances are high that there are many duplicate files on your Mac. Duplicates take up space and make it harder to manage files. Don’t worry. This article will show you how to find and delete duplicate files on Mac in different ways.

4 ways to find duplicate files on Mac for free

Method Find duplicate files by Pros Cons Instructions
Use Finder Manually compare size and content Flexible Time-consuming Click
Use Terminal Automatically compare hash Fast Not easy to use Click
Use duplicate file finder software Automatically compare content Easy and fast None Click
Use Show Duplicate Items Automatically compare name and metadata Easy and fast Only find duplicates in Music on Mac Click

 

 

Method 1. How to find and delete duplicate files on Mac using Finder

Finder is the file manager app included with macOS. Mac users use it to find and organize files and folders.

This method is about asking Finder to display all files of a certain type and then manually spotting the duplicates in them.

1. In Finder on Mac, open the folder in which you want to find duplicate files.

2. Control-click (or right-click) Finder’s icon in the Dock and choose Find.

choose Find

3. In the new window that opens, set Finder to search the specified folder instead of This Mac.

4. In the pop-up menu on the left, choose Kind.

5. In the pop-up menu on the right, choose a file type (such as Image).

choosing Image helps find duplicate photo files on Mac

6. Now Finder displays all files of the chosen type from the specified folder, including the ones in the subfolder.

7. Arrange the files by size or name. Identify duplicate files by comparing their sizes and contents.

the context menu is opened

8. To eliminate a duplicate file, control-click it and then choose Move to Trash.

delete duplicate files on a Mac by moving them to Trash

9. Continue deleting other unwanted duplicates in the folder.

You can find duplicate images files, music files, video files and so on. If you want to find duplicate files with a certain extension (such as duplicate JPG files), choose Other in step 5 and then enter the extension in the field that appears.

Note: This method doesn’t allow you to find duplicates in the Photos app on Mac. You need to use Method 3 for that purpose.

Method 2. How to remove duplicate files on Mac using Terminal

The Terminal app is the terminal emulator included with macOS, which provides a command-line interface. Skip this method if you are not familiar or comfortable with command-line tools.

Terminal can help you find duplicate files by hash on your Mac, and then you can eliminate duplicates one by one by hand.

The hash or hash value of a file is a value unique to the file. If a group of files have the same hash and size, then they are duplicate files (even though they may have different names).

Terminal will calculate the hash value of each file in the specified folder using the specified hash algorithm (such as MD5 or SHA1), compare the hash values, and then list the duplicates.

1. On your Mac, open Terminal.

2. To detect duplicate files in a Mac folder, for example, the Desktop folder, enter “cd Desktop” and press Return.

“cd Desktop” is entered

3. Enter the following commands:

grep -hif <(find . \! -type d -exec md5 -r {} \; | sort | tee /tmp/f.tmp | cut -f 1,2 -d ' ' | uniq -d) /tmp/f.tmp > duplicates.txt

commands are entered

4. Press Return.

5. When it is finished, go to Finder and open the folder in question. You should see the file duplicates.txt.

6. Open the file, and you should see a list of the duplicate files that have been detected. The hash of a file is displayed on the left, and the path of a file is displayed on the right.

a list of detected duplicate files

7. Locate the duplicate files in Finder. Control-click a redundant duplicate file and choose Move to Trash.

8. Continue removing other file duplicates.

Method 3. How to automatically find and delete duplicate files on Mac all at once

The first two methods can take a lot of time. To avoid an inefficient and time-consuming manual process, you can use duplicate file finder and remover software Cisdem Duplicate Finder.

With the software, you can get rid of duplicate files easily, quickly and reliably.

Cisdem Duplicate Finder main features:

  • Find all types of duplicate files, such as duplicate photos and videos
  • Find duplicate files by content, regardless of name
  • Also find similar images
  • Scan Mac and external storage devices for duplicate files
  • Scan Photos, iPhoto, iTunes and Music for duplicates
  • Find duplicate files in a folder/drive or across multiple locations
  • Let you exclude folders and files from scan
  • Let you preview the found duplicate files in detail or side by side
  • Automatically select duplicate files for you to remove in bulk with a click
  • Make it easy to customize the selection
  • Offer 3 ways to remove duplicate files: Move to Trash, Move to Folder and Remove Permanently
  • Easy to use
  • Customizable, letting you control what to find and how to delete
  • Compatible with macOS 10.11 or later

1. Download and install Cisdem Duplicate Finder. Open it.

Free Download

2. Click the plus icon the plus icon. Add one or more folders.

add Mac folders to scan for duplicate files

3. Click Scan.

4. When the scan is complete, it will display all the duplicate files the scan has found. You can preview, sort and examine them.

duplicate files found on Mac are displayed with preview

5. This duplicate file finder already automatically selects duplicate files for mass deletion. If you want, apply a desired selection rule.

all duplicate files are selected for mass deletion

6. To delete all the selected duplicate files in the specified location(s) on your Mac, click Delete.

7. Confirm the deletion.

confirm the deletion

Tip: How to find duplicate files in Mac’s Photos app

You can follow the steps above to search for duplicates in Mac’s folders. To rid Apple Photos app of duplicate files, you need this tip.

In step 2, add your Photos library to scan. By default, the library is in the Pictures folder. Follow the rest of the steps. After you confirm the deletion, the selected unwanted duplicates will go to Recently Deleted in Photos app. Here are the detailed instructions to remove duplicate photos from Photos app on Mac.

Photos library is added

Method 4. How to show and delete duplicate files via Show Duplicate Items

The Music app on Mac provides two options to quickly identify duplicates music files in the app.

Show Duplicate Items: This option identifies duplicates by comparing song name and artist. For example, it will see different versions (one from the studio album and one from the live album) of the same song as duplicates.

Show Exact Duplicate Items: This option identifies duplicates by comparing song name, artist and album.

1. Open the Music app on your Mac.

2. In the left sidebar, click Songs.

3. From the menu bar at the top of your screen, choose File > Library > Show Duplicate Items.

the Show Duplicate Items option is chosen

4. To find exact duplicates, press and hold the Option key and then repeat the previous step.

5. Select one or multiple unwanted duplicate songs, press the Delete key.

6. Confirm the deletion.

Now the duplicate music files will be removed from both the Music app and the Music Media folder.

Frequently asked questions

Why do I have so many duplicate files on my Mac?

There can be various reasons. Knowing the reason may help stop duplicate files.

Here’s a common scenario. After you imported your pictures to Photos for Mac from a folder, you didn’t delete the pictures in the folder, resulting in double files. Another scenario is that you copy files instead of moving files when you want to move files from one location to another.

How do I identify duplicate files on Mac?

When you do it manually, you can identify by viewing filename, size and details. Software usually identifies by comparing file content or hash.

What is the best duplicate file finder for Mac?

Cisdem Duplicate Finder is the best due to its high performance and ease of use. It uses advanced algorithms to compare files and detect the duplicates and makes it easy to get rid of them.

Conclusion

There are a few methods to find and delete duplicate files on Mac desktop and laptop computers. Choose an easy and reliable method. Getting rid of duplicate files helps free up storage space and better organize files. It may further help speed up your Mac and improve your productivity.

avatar
Sarah Miller

With a passion for tech and writing, Sarah joined Cisdem, where she focuses on creating articles about using utility tools to enhance file management and simplify contact management.

Comments (0) Leave a Reply

Name *

Comment *

Hot Articles

How to Find and Delete HEIC and JPG Duplicates on Mac, PC and iPhone How to Clean Up Mac including New iMac Dedicated CleanMyMac X Review: Is It Really the Best Mac Cleaner?
Home > How to Find and Delete Duplicate Files on Mac Easily and Quickly