How to Delete Duplicate Files on Mac
The Hidden Problem of Duplicate Files
Duplicate files are one of the sneakiest space wasters on any Mac. They happen when you copy files between folders, download the same attachment twice, import photos multiple times, or save different versions of documents. Over years of use, duplicates can consume 5 to 20 GB without you noticing.
The challenge is finding them. Duplicates are often in different folders with slightly different names. A photo called IMG_3042.jpg might exist in three places: your Desktop, your Downloads, and inside your Photos library. Knowing how to clean up mac by removing duplicates is a powerful storage recovery technique.
Finding Duplicates with Finder
Finder doesn't have a built-in duplicate finder, but you can use Smart Folders to help. Create a Smart Folder that searches for a specific file type, like JPEG images, and sort by name. Look for files with similar or identical names in different locations.
For downloads, sort your Downloads folder by name. You will often see files like document.pdf, document (1).pdf, and document (2).pdf. These are duplicates created when you downloaded the same file multiple times. Delete the extras, keeping only the most recent version. This is a simple way to how to clean up mac from duplicates.
Reclaim Mac finds and removes junk files automatically.
Finding Duplicates with Terminal
Terminal can help identify duplicate files using file checksums. Two files with the same checksum are identical regardless of their names. The md5 command gives you a unique fingerprint for any file. Compare fingerprints to confirm duplicates.
For a more automated approach, you can use the fdupes tool installed via Homebrew. Run it on your Documents or Downloads folder to find duplicates recursively. This how to clean up mac method catches duplicates even when file names differ.
Common Places Duplicates Hide
Photos are the most common duplicates. If you import photos from an iPhone using both Photos app and AirDrop, you end up with two copies. Music files duplicated between the Music library and standalone folders. Documents downloaded as email attachments and also saved from a web browser.
Check Downloads first since files downloaded multiple times are the most common source. Then Desktop, Documents, and your Photos library. On macOS Ventura and later, the Photos app has a built-in Duplicates album that automatically identifies duplicate images.
Safely Removing Duplicates
Before deleting duplicates, decide which copy to keep. Generally, keep the copy in the most organized location. If a photo exists in your Photos library and on your Desktop, keep the Photos library copy and delete the Desktop one.
Never delete files from your Photos library directly through Finder. Always use the Photos app. For other file types, move potential duplicates to a Review folder on your Desktop. Wait a week, and if you don't miss them, delete them permanently.
Preventing Future Duplicates
Organize files immediately when you download or create them. Use a consistent folder structure. When saving email attachments, check if you already have the file. For photos, pick one import method and stick with it. Good file management habits make the how to clean up mac process much easier over time.
Clean your Mac in 60 seconds
Lifetime license. Offline. No subscription.