How to find and remove duplicate files on Mac
A duplicate is a second copy of a file you already have. Removing one copy can free space. Removing both deletes the file. The hard part is choosing which copy to keep — and avoiding places where “delete” can break a library or an app.
How to decide which copy to keep
Same name and same size are not always the same file. Before anything goes to the Trash, pick a keeper using these checks:
- Location. Keep the copy in the folder you actually work from — the project folder, the album export you use, or the Downloads file you still open. An extra copy on the Desktop or in a “Old” folder is usually the one to remove.
- Date. When Quick Look shows the same content, prefer the newer Date Modified. If one file is older but that is the version you published or submitted, keep that one instead.
- Which app uses it. Open the file from the app that matters (Final Cut, Logic, Pages, a code editor). Keep the path that app opens. Do not remove a file only because a search window listed it twice.
- Backup vs working copy. If one copy lives on an external backup disk, leave the backup alone and remove the extra on the internal disk — or the reverse. Do not “clean” both in the same pass.
If the only two copies are the file and its backup, you do not have a spare. Removing either one removes your fallback.
Risks — leave these alone
- Photos library internals. Do not open the Photos library package in the Finder and delete files inside it. Use Photos → Utilities → Duplicates → Merge. Editing the package can break the library.
- iCloud Drive placeholders. A cloud-only file can look like a local duplicate. If the icon shows a cloud badge, download or open it before you decide. Trashing a placeholder can remove the only copy from iCloud as well.
- App bundles. Leave files inside anything ending in
.app. Those are part of the application, not a second document you can remove. - Other library packages. Leave Photos, iMovie, GarageBand, and similar library packages alone. Clean duplicates with the app’s own tools when they exist.
Photos and videos in the Photos library
Apple’s Photos User Guide says that if the library has duplicate photos or videos, they show up in a Duplicates collection under Utilities. Photos needs time to analyze a large library before that collection appears.
- Open Photos.
- In the sidebar, under Utilities, click Duplicates. If you do not see it, hold the pointer over Utilities and click the button that expands that section.
- If you use an iCloud Shared Photo Library, set the Library menu in the toolbar to Both Libraries when you want those copies included.
- Look at a group before you merge it. Select the items in that row.
- Click Merge, then confirm. Apple’s guide says one original stays where the duplicates were, and the copies you removed go to Recently Deleted.
- Recently Deleted keeps them for 30 days. Open it if a merge was wrong. After 30 days, or if you delete them from Recently Deleted yourself, they are gone.
If Duplicates is missing, Photos may still be indexing, or it may not have found any. Wait before you start deleting pictures by hand.
Other files, in the Finder
For documents, downloads, and folders outside Photos, compare the copies yourself.
- Choose File → Find.
- Search This Mac, or a single folder such as Downloads or Documents if you know where the copies are.
- Add a rule. Name contains the file name you remember, or Kind is the type you care about. To limit by size, choose Other… → File Size, then is greater than a number. 200 MB is a reasonable start for videos and disk images.
- Sort the results by Name, then by Size.
- Select two rows that look the same and read both paths at the bottom of the window. The same name in two folders is a candidate, not proof.
- Open both if they might have diverged. Two files named Budget.xlsx can differ by a week of edits. Keep the one you actually want. Move the other to the Trash.
- Files with “copy” or a trailing “ 2” in the name are worth this check. They are often a duplicate the Finder made during a copy. They are sometimes the file you meant to keep.
Quick Look (select the file and press Space) is enough for a video or a PDF. For a project folder, compare the dates and open the project in its app. Do not judge a folder only by its name.
After you choose
Move only the extra copy to the Trash. Empty the Trash when you are sure. Until you empty it, the space is not free, and you can put a file back.
Savings from duplicates are limited to the copies you actually remove. One copy has to stay, so you do not get back the size of every file in the group. If you remove one of two identical 4 GB videos, you get about 4 GB back after the Trash is emptied, not 8 GB. On APFS, identical copies may share storage, so moving one can free less than the full file size.
What this will not find
Finder search does not compare the contents of every file on the disk. Two files can be identical and have different names. Two files can share a name and differ inside. Photos does its own comparison inside the library, which is why that collection is the right tool for pictures that live there, and the wrong tool for a folder of exported JPEGs on the Desktop. For those exports, use the Finder steps. For single large originals rather than pairs, see how to find large files.
FAQ
Does the Finder have a duplicates button?
No. Photos has a Duplicates collection for its library. For other files, compare paths and contents yourself in Finder search.
Which copy of a duplicate should I keep?
Keep the copy in the folder you work from, or the one your app opens. Prefer the newer date when the files truly match. Leave backups and library packages alone.
What does “up to” mean for duplicate savings?
One copy stays. You only free the size of the copies you remove, after the Trash is emptied. On APFS, identical copies may share storage, so moving one can free less than the file size.
Can I delete files inside the Photos library package?
No. Use Photos → Duplicates → Merge. Editing the package in Finder can break the library.