Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Clean Duplicates from Mac

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Duplicate files on a Mac can quietly eat up gigabytes of storage, slow down backups, and make it harder to find what you need. This guide walks you through finding and removing duplicate photos, documents, downloads, and other files using built-in macOS tools and manual methods—no paid software required. You’ll learn how to spot duplicates safely, avoid deleting the wrong file, and keep your Mac tidy going forward.

What You'll Need

  • Your Mac with macOS Ventura or later (steps may vary slightly on older versions)
  • Time to review files before deleting—rushing leads to mistakes
  • An external drive or cloud backup (recommended, especially for irreplaceable files)

Step-by-Step

  1. Back up your Mac first. Before deleting anything, make a backup with Time Machine or copy important folders to an external drive. Duplicate cleanup is safe when you’re careful, but accidents happen. A backup lets you restore a file if you realize later you needed it.
  2. Use Finder’s Smart Folder to find duplicates by name. Open Finder, press Command+F, then click the “+” button to add criteria. Set the first dropdown to “Name” and choose “matches” or “contains.” Type a common term like “copy” or “final.” This won’t catch everything, but it’s a quick start. For a broader search, skip the name and just sort a folder by name—files with identical names will appear next to each other.
  3. Sort by size to spot large duplicates. In Finder, navigate to your Downloads, Documents, or Desktop folder. Click the “Size” column header to sort by size. Look for files with the same size and similar names. Large video files, disk images, and exported PDFs are common culprits.
  4. Check Photos.app for duplicate images. Open the Photos app, go to the “Library” tab, and look for the “Duplicates” album under “Utilities” (macOS Ventura and later). Photos automatically groups exact duplicate photos and videos. Review each group, select the ones you want to remove, and click “Delete.” This is the safest way to clean photos because Photos checks that the files are truly identical.
  5. Use the “Merge All” button in Photos. If you’re confident the duplicates are identical, click “Merge All” in the Duplicates album. This keeps the best-quality version (usually the one with the most metadata) and moves the others to Recently Deleted. You can still recover them for 30 days.
  6. Manually compare files with “Get Info.” For files that aren’t in Photos, select two files that look similar, press Command+I on each, and compare their sizes and modification dates. If they’re the same size and date, they’re likely duplicates. Use Quick Look (press Space) to preview the contents before deleting.
  7. Use Terminal for exact duplicate detection (advanced). If you have many files and want to find exact duplicates by content, open Terminal and run: find . -type f -exec md5 {} + (replace . with the folder path). This prints a checksum for every file. Then sort the output to see which files have the same checksum—those are identical. You can then delete one of each pair. Be careful: this command only lists files, it doesn’t delete anything, so it’s safe to run.
  8. Empty the Trash. After deleting duplicates, right-click the Trash icon in the Dock and choose “Empty Trash.” This permanently frees the space. If you’re not sure about a file, leave it in Trash for a few days before emptying.
  9. Check storage after cleanup. Go to Apple menu > System Settings > General > Storage. You should see more free space. If not, you may have more duplicates that weren’t caught, or the files are still in Trash.

Common Mistakes

  • Deleting files with the same name but different content. Two files can share a name but be completely different (e.g., “report.pdf” from different projects). Always check the size and preview the content.
  • Deleting the original version. In Photos, the “Merge All” feature keeps the best version, but if you manually delete, you might delete the one with the most edits or metadata. When in doubt, keep the file with the later modification date.
  • Ignoring the Trash. Deleting files doesn’t free space until you empty the Trash. Many people think they’ve cleaned up but still see low storage.
  • Using third-party apps without checking permissions. Some duplicate finder apps ask for full disk access and may delete files automatically. Always review what the app wants to delete before confirming.
  • Forgetting about iCloud. If you use iCloud Drive, deleting a duplicate on your Mac will also delete it from the cloud and other devices. Make sure you don’t need it elsewhere.

Tips

  • Adopt a naming convention. Add dates or version numbers to file names (e.g., “report_2025-04-01_v2.pdf”) to avoid accidental duplicates.
  • Use “Merge” in Finder for folders. If you have two folders with similar names, hold Option and drag one onto the other. macOS will ask to merge, combining files and keeping both if names conflict.
  • Clean regularly. Set a monthly reminder to scan your Downloads folder and Desktop. Small cleanups are faster than a yearly deep clean.
  • Keep your Photos library optimized. In Photos settings, enable “Optimize Mac Storage” to keep full-resolution photos in iCloud and smaller versions on your Mac. This reduces the chance of duplicates filling your drive.
  • Use Smart Folders for recurring checks. Create a Smart Folder that shows all files with “copy” or “final” in the name, so you can quickly review them whenever you want.

Troubleshooting

I can’t find the Duplicates album in Photos. The Duplicates album appears only in macOS Ventura or later. If you’re on an older version, update your Mac. If you’re on a newer version and still don’t see it, make sure you have at least two exact duplicate photos in your library—the album only shows when duplicates exist.

The Terminal command shows too many files. The md5 command lists every file, which can be overwhelming. Narrow the search by navigating to a specific folder first (e.g., cd ~/Downloads) and then run the command with . to only scan that folder. You can also pipe the output to a file: find . -type f -exec md5 {} + > checksums.txt and then open that file in a text editor to sort.

I deleted a file by mistake. If you just emptied the Trash, you may still recover it from a Time Machine backup. If you have Time Machine set up, enter Time Machine, navigate to the folder, and restore the file. If you don’t have a backup, try a data recovery app—but the sooner you stop using the Mac, the better the chances.

Storage still shows as full after deleting. Check if you have other large files like old iOS backups or caches. Go to System Settings > General > Storage and look for recommendations. Also, restart your Mac—sometimes the system doesn’t update the storage display immediately.

Photos “Merge All” is greyed out. This happens when there are no exact duplicates selected. The feature only works on identical files. If you have similar but not identical photos, you’ll need to delete them manually.

Frequently Asked Questions

Q: Does macOS have a built-in duplicate finder?
A: Not a universal one, but Photos has a Duplicates album for images and videos. For other files, you can use Finder’s sort by name or size, or the Terminal checksum method described above.

Q: Are duplicate files always identical?
A: No. Two files can have the same name and size but different content. Always compare the actual content (preview or checksum) before deleting.

Q: Will deleting duplicates from Photos affect my iCloud library?
A: Yes, if you have iCloud Photos enabled, deleting a duplicate on your Mac will also delete it from iCloud and all your devices. That’s usually what you want, but be sure before you confirm.

Q: Can I recover a file after emptying the Trash?
A: If you have Time Machine or another backup, yes. Without a backup, you may use third-party recovery software, but success is not guaranteed. Always back up before cleaning.

Q: Is it safe to delete files with “copy” in the name?
A: Not always. Some files are named “copy” for a reason—they might be the only version you have. Check the modification date and content before deleting.

Q: How often should I clean duplicates?
A: Every few months is enough for most people. If you download a lot of files or work with media, do it monthly to keep storage under control.