TL;DR
To remove duplicate files from your Mac, follow one of these methods:
- Use MacKeeper’s Duplicates Finder to find and delete duplicate files in just a few clicks.
- Use search filters in Smart Folders to locate duplicates and save search results for future reference.
- Identify and remove duplicate photos stored in the Photos app.
- Clean up the hidden Mail Downloads folder to remove duplicated email attachments.
- Use a Terminal command to find duplicates on your Mac.
Using your Mac regularly often leads to a pile-up of duplicate files. You can easily end up with multiple copies of photos, documents, or songs, and before you know it, they’re taking up too much space. I was on a duplicate file cleaning spree just the other day and I thought I should share some quick and easy ways to remove duplicate files from your Mac. So, let’s get started.
Before We Begin
If you’re looking for a fast and reliable solution to get rid of duplicates on your Mac, download MacKeeper. Its Duplicates Finder can help you quickly and easily identify and delete duplicate files on your Mac in a few clicks.
How to Remove Duplicate Files From Your Mac
Why You Can Trust MacBook Journal We always conduct first-hand research and verify every method or solution we present, ensuring you receive reliable and effective advice. Learn more about our process.
Wondering how to remove duplicate files on Mac? I’ve got four easiest and most practical methods to find and remove duplicate files from your Mac. Check them out below.
1. Delete Duplicate Files on Mac In One Click With MacKeeper
I’ve always found Mac’s built-in methods for finding duplicate files to be pretty accurate but incredibly tedious. I just don’t have the patience to search through folder after folder manually. That’s why I turned to MacKeeper. Its Duplicates Finder feature is quick, easy, and super effective. It helped me free up a ton of space on my Mac in literally one click.
Here’s how to remove duplicate files from your Mac using MacKeeper:
- Download and install MacKeeper on your Mac.
- Open MacKeeper on your Mac and click Duplicates Finder in the left sidebar.
- Click Start Scan.
- Select a folder in the left menu to review duplicate files before deletion.
- Alternatively, click Check All and tap the Remove Selected button to remove all duplicate files at once.
- Tap the Remove button on the pop-up to confirm the deletion.
- This will remove the selected files, and you’ll get a Removal Completed message. Click Finish to end the process.
What Else Can MacKeeper Do?
Besides removing duplicate files on Mac, MacKeeper offers many other valuable optimization tools to clear the cache, uninstall unwanted apps, and optimize your Mac’s storage. Learn more about its features in my detailed Mackeeper review.
2. Find and Remove Duplicate Files With Smart Folders
While this method is free, it can be time-consuming and may not be as accurate as third-party apps.
If you prefer a built-in solution for managing duplicate files on your Mac, Smart Folders are a great tool. They make it easy to find duplicates by letting you filter files by type, name, or last opened date. Just set your criteria, and Smart Folders will sort for you. Plus, you can save these settings, and the folder will automatically update with any new matching files.
Here’s how to use Smart Folders on your Mac to find and remove duplicate files:
- Open Finder on your Mac, click the File menu, and select New Smart Folder.
- Click the + icon in the upper-right corner of the New Smart Folder window.
- Set the search parameters for finding duplicate files. For instance, select Kind as the first condition, Image as the second, and PNG as the third if you want to access duplicate image files on your Mac.
- Click the + sign again, select Name, choose is, and type in copy.
- Click Save to save the search results as a Smart Folder.
- Specify a name and location for your Smart Folder and tap the Save button.
- Review the search results and delete the duplicate files.
Using Smart Folders is quicker than searching your entire hard drive for duplicates, but it still needs patience. Manually reviewing each file, even after narrowing them down, takes time. So, I suggest you focus on particular folders, file types, or file sizes. Here’s how:
How to Find Duplicate Files in Specific Folders
To locate duplicate files within certain folders, here’s how to create a Smart Folder for a targeted search:
- Open Finder and navigate to the folder you wish to search.
- Choose File > New Smart Folder from the menu.
- At the top of the window, in the Search bar, select the folder name.
- Click the + icon in the top-right corner.
- Specify your search parameters and hit Save.
- Give your Smart Folder a name and decide on its save location.
- Arrange your files by name, size, or creation date to easily spot duplicates.
- For removal, drag the duplicates to your Bin.
How to Find Duplicates of Specific File Types
To locate duplicates of certain file types, use Smart Folders with customized search criteria. Follow these steps:
- Go to File > New Smart Folder.
- Click the + in the top-right corner.
- In the first drop-down menu, choose Kind.
- Select Image from the second drop-down menu and choose a specific file extension in the third drop-down menu.
- Click Save.
- Name your Smart Folder and select a save location.
- Once saved, select the duplicate files, right-click, and choose Move to Bin.
How to Find Duplicates by File Sizes
To search for duplicates based on file size, particularly useful for removing larger duplicates, follow these steps:
- Open a Finder window and click the + in the top right corner.
- In the first drop-down, select File Size. If it’s not visible, choose Other…, search for File Size, and add it to the menu.
- Specify your file size criteria.
- Click Save, name your folder, and choose its save location.
- After creating your Smart Folder, select the duplicates, right-click, and select Move to Bin.
3. Delete Duplicate Photos Using the Photos App
The Photos app on your Mac stores your photos by default. But I’ve noticed that if I import photos from other folders on my Mac into the Photos app, it creates duplicate copies. This happens because the system doesn’t move the original photos but instead makes copies in the Photos library.
So, it’s best to delete duplicate photos on your Mac by following these steps:
- Open the Photos app by searching for Photos in Spotlight search (Command ⌘ + Space).
- In the Photos app, navigate to the Duplicates tab in the sidebar to see all your pictures.
- Select the duplicate photos you wish to delete. You can pick photos from a single row or multiple rows to delete them all at once.
- Then, click Merge Photos.
- By doing so, your Mac will retain the original image and remove the duplicates.
4. Remove Duplicates in Apple Mail Downloads
I discovered something interesting while using Apple Mail on my Mac. There’s this hidden folder called Mail Downloads tucked away in the Library > Containers directory. It automatically saves every document and files attached to emails in the Mail app. But every time I click an attachment to save it to my Mac, I end up creating a duplicate.
So, if you don’t want to clutter up your system with mail downloads duplicates, remove duplicate files from your Mac Mail Downloads folder. Here’s how:
- Open Finder, click Go in the menu bar, and select Go to Folder.
- Type the following path in the empty field and press Enter:
~/Library/Containers/com.apple.MailCacheDelete/
- Open the Data folder in MailCacheDelete directory.
- In the Data folder, open Library and go to Mail Downloads.
- Here, you’ll see the duplicate mail downloads. Right-click the files and folders you want to remove and select Move to Bin.
5. Find Duplicate Files With Terminal
Before using Terminal, it’s important to do so only if you’re comfortable and familiar with it. Terminal is a powerful tool and can cause significant issues if used incorrectly. I’ve tested the steps below without issues, but it’s crucial to be cautious and double-check all commands you input.
To search for duplicate files using Terminal, follow these steps:
- Open Terminal by going to Finder > Applications > Utilities > Terminal.
- Navigate to the desired folder using the
cd
command. For instance, for Downloads, typecd ~/Downloads
and press Enter. - Enter the following command to find duplicates and press Enter:
find ./ -type f -exec md5 {} \; | awk -F '=' '{print $2 "\t" $1}' | sort | tee duplicates.txt
This creates a text file listing duplicates in the specified folder. However, it might miss some duplicates. You’ll need to review and differentiate the duplicates from the originals manually. Plus, files with slightly different names may not be flagged as duplicates.
Why Are There So Many Duplicate Files on My Mac?
Now, you might be wondering how these duplicates ended up on your Mac in the first place. Well, there are several reasons. Maybe you accidentally copied a file to another location or downloaded the same file twice.
Here are the most common reasons for duplicates appearing on your Mac:
- 🚫 Accidental Duplication: You might have accidentally copied or duplicated files while organizing or backing up your data on Mac.
- 📁 File Synchronization: If you use cloud storage or synchronization services like Dropbox, Google Drive, or iCloud, you may have unintentionally created duplicates of your files.
- 🐛 Software Bugs: Software bugs can sometimes create duplicates, especially if you use programs that manipulate files or media.
- 📝 File Format Conversions: When you convert files from one format to another, such as converting a PDF file to a Word document, it’s possible to create duplicate copies of the original file.
- 💾 Manual Backups: If you manually back up your data to external hard drives or other storage devices, creating duplicates is possible.
How to Prevent Duplicate Files on Your Mac
While it’s important to know how to remove duplicate files, it’s equally crucial to understand how to prevent them from occurring in the first place. Let me share some strategies I’ve developed to keep my Mac’s files organized, significantly reducing duplicates.
- 📂Organize Your Files Regularly: I’ve found that a consistent system for naming and organizing files works wonders. I use clear, descriptive file names and sort them into labeled folders.
- 🧹 Regular Cleanups: Set a schedule for regular file organization. I set aside time every month to declutter my Mac. You can do it weekly, monthly, or quarterly, depending on your usage.
- ☁️ Sync Smarts: If you use cloud services like iCloud, Dropbox, or Google Drive, ensure your sync settings are correctly configured to avoid creating duplicates across devices.
- 📥 Carefully Download and Save Files: Before downloading a file, check to see if you already have it. Plus, if you create a different document version, rename it clearly to differentiate it from the original.
- 📑 Avoid Multiple Copies: I keep a single copy of each file, rather than scattering them across different folders.
- ➡️ Transfer with Care: Whenever I transfer files from external devices, I do a quick check to ensure I’m not importing duplicates. It’s a small step that goes a long way.
- 🗂️ Use File Management Tools: Consider using file management tools to help you organize and find files more efficiently.
Delete All Duplicate Files on Your Mac
Now that you know how to delete duplicate files on Mac, you may want to optimize its performance further and free up space on your Mac. Here are a few tips to get you started:
- Find and delete duplicate photos from your Mac to save valuable storage space.
- Keep your system running smoothly by clearing junk files regularly on your Mac.
- Free up RAM on your Mac to prevent it from overheating.