Huaye Mac ManagerHuaye Mac Manager
Guides Download free
Home › Guides

How to find and remove duplicate files on a Mac

Updated 2026-09-30 · Huaye Mac Manager

Duplicates build up quietly: the same installer downloaded twice, a folder of photos copied to an external drive and back, a project duplicated “just in case”. They waste space, but they’re also the one kind of clutter where you have to decide what to keep — sometimes two copies are there on purpose.

Here are three ways to find them, from quick to thorough, and how to remove them without losing anything.

Method 1: Finder (quick, name-based)

  1. Open your Downloads folder (duplicates collect there first) and switch to list view (⌘2).
  2. Click the Name column to sort. Copies usually sit next to the original with names like report (1).pdf, report-2.pdf or report copy.pdf.
  3. Right-click the column header, turn on Size, and compare sizes — identical names and sizes are very likely the same file.

This catches the obvious cases but misses copies with different names and can’t tell you whether two files are truly identical.

Method 2: Terminal (exact, content-based)

This command hashes every file over 1 MB in Documents, Desktop and Downloads and prints the second and later copies of each identical file:

find ~/Documents ~/Desktop ~/Downloads -type f -size +1M -print0 \
  | xargs -0 shasum -a 256 | sort | awk 'seen[$1]++'

Files with the same hash have exactly the same content, whatever they’re called. It can take a while on large folders, and it only lists files — you still decide what to delete.

Photos: use the built-in Duplicates album

Don’t hunt for duplicate photos in Finder — the Photos library is a package and editing it by hand can damage it. In the Photos app, open Utilities → Duplicates in the sidebar and merge duplicates there.

How to decide which copy to keep

  • Keep the copy in the place you actually use — the project folder, not Downloads.
  • Keep the oldest copy if you can’t tell; it’s usually the original.
  • Leave deliberate copies alone. A folder copied into two projects, or a backup on purpose, isn’t clutter.
  • Move to the Trash, don’t delete permanently, and empty the Trash only after a few days.

Method 3: Huaye Mac Manager’s File Cleanup

Huaye Mac Manager has a File Cleanup view with two scans: large files (50 MB to 1 GB and up) and duplicate files. Duplicates are found by content, not name — files must match in size, then in a quick partial hash, then in a full SHA-256 hash — and hard links to the same file aren’t counted twice.

  • Nothing is pre-selected. You choose every file yourself; the oldest copy in each group is labelled Oldest to help you decide.
  • At least one copy per group always stays, even if you select them all.
  • Everything goes to the Trash, so any mistake can be undone.
  • It skips your Library folder, app bundles and packages (like the Photos library), iCloud files that aren’t downloaded, cloud-drive folders and dependency folders such as node_modules.

4 MB, native, Apple Silicon and Intel, macOS 13 or later. Scanning is free after the 14-day trial; a one-time license from US$6.99 unlocks cleaning.

FAQ

Is it safe to delete duplicate files on a Mac?

Yes, as long as the files really are identical (compare content, not just names) and you keep one copy. Moving them to the Trash first gives you a way back.

Does macOS have a built-in duplicate finder?

Only for photos: the Photos app’s Duplicates album. For other files, use Finder, Terminal or a dedicated tool.

Why do duplicate names end in “(1)”?

Browsers add a number when you download a file with the same name twice. The number doesn’t guarantee the content is identical — check the size or hash.

Huaye Mac Manager Mac cleaner, app uninstaller and duplicate finder · 4 MB · free 14-day trial
Download free

More guides

  • How to completely uninstall apps on a Mac
  • How to clear “System Data” on a Mac safely
  • Is it safe to delete caches on a Mac?
Made by Huaye Studio · Terms · Privacy · CleanMyMac alternative