How do I find and delete duplicate files on Mac?

Hello, I have a lot of files piled up on my Mac recently, and I feel that many of them are duplicates. I want to clean it up, find out the duplicate files and delete them, but I don't know if there is a good way. Is there any tool or simple method you can recommend? Thank you!

Mac Pro (2023)

Posted on Nov 4, 2024 7:23 PM

Reply
3 replies

Nov 4, 2024 11:36 PM in response to Mc_Allister

You can use the Smart Folder feature to find duplicate files on Mac. Smart Folders in the Finder app are dynamic folders that automatically organize and display files based on specific search criteria you set. Unlike regular folders, Smart Folders don’t actually store files; instead, they use search queries to display files from different locations across your Mac that meet the criteria.


When you create a Smart Folder, you set filters or rules—such as file type, date modified, size, or tags—and Finder will automatically populate the Smart Folder with all files that match those criteria. This lets you quickly access certain types of files without needing to manually locate and move them into one folder.


How to find duplicate files on Mac via Smart Folder:


  1. Open Finder, then go to File > New Smart Folder.
  2. In the Smart Folder window, click the + button at the top right.
  3. Set search criteria to filter by file type, size, or name to narrow down potential duplicates.
  4. Arrange files by Name or Size to spot duplicates more easily.
  5. Manually delete the duplicate files found in the search results.


This method is useful for finding duplicates without additional software but requires manual verification and deletion.

Nov 4, 2024 11:42 PM in response to Mc_Allister

I've been in a similar situation before, and using Finder's "Smart Folders" is really useful. After opening Finder, click File > New Smart Folder, then click the "+" sign in the upper right corner of the window, so you can set filter conditions, such as file type, creation date, name, etc. This will display all the files that may be duplicates.


Although this method is a bit manual, it is actually quite intuitive, especially when filtering by name or file size, it is easy to find which files look similar. This is how I find and delete duplicate files and photos and my Mac felt a lot lighter after deleting them!

Nov 4, 2024 11:30 PM in response to Mc_Allister

Open Terminal and use the following command to find duplicate files on mac:


find /path/to/folder -type f -exec md5 {} \; | sort | uniq -w32 -dD


This command checks files by their MD5 hash values, identifying files with identical content. Review the output to locate and delete duplicates.


Note: This is a more advanced method, ideal if you’re comfortable with command-line operations.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I find and delete duplicate files on Mac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.