Duplicates build up in Downloads, in old project folders and in "final_v2_REAL" files. Removing them frees space, and the risk is deleting the one copy that mattered. This guide finds true duplicates and deletes them in a way you can undo.
How sure can you be that two files match?#
Names can mislead and sizes can coincide, so the contents settle the question.
Evidence ladder: weakest to strongest
- Weak
Same name
Files like report.pdf and report (1).pdf look like copies. They may differ.
- Some
Same name and size
Better, though two different files can share both.
- Strong
Same checksum
A checksum summarises a file's exact contents. Matching checksums mean identical files for all practical purposes.
- Certain
Byte-for-byte comparison
The cmp command compares two files directly.
Method 1: Finder, for a quick look#
- Open the folder in Finder and press ⌘ J to open View Options. Tick Size columns if you use list view.
- Switch to list view with ⌘ 2 and sort by Name to see "copy" and "(1)" files side by side.
- Sort by Size to spot files with identical sizes next to each other.
- Select a pair and press Space to Quick Look both before you decide.
Finder's File → Find with a Smart Folder can also list files by Kind and size, which helps in a large folder. This only suggests duplicates. Confirm with the next method.
Method 2: Terminal, for certainty#
This compares contents. It works on any folder, and it only reads files.
find ~/Downloads -type f -exec shasum -a 256 {} + | sort > ~/Desktop/hashes.txtWrites a checksum and path for every file in Downloads into a text file on your Desktop. Swap ~/Downloads for any folder. Paths with spaces are fine.
Then list only the files that share a checksum with another:
awk 'NR==FNR{n[$1]++;next} n[$1]>1' ~/Desktop/hashes.txt ~/Desktop/hashes.txtPrints every file whose checksum appears more than once. Lines that start with the same long code are identical.
Your output looks like this. These three files are identical:
87428fc5…25c7 ./1.txt
87428fc5…25c7 ./2.txt
87428fc5…25c7 ./sub dir/copy of 1.txt
Hash every file
One checksum per file.
Sort by checksum
Matching files line up.
Keep groups of two or more
Those are duplicate sets.
Choose what to keep
You decide, not the script.
Folder names with spaces or symbols trip people up in Terminal. Our Terminal path helper turns any path into a version that pastes safely.
Where not to look#
Some folders hold files that look like duplicates but are not.
- Photos, Music and Final Cut libraries. These are packages. Files inside are linked to a database. Deleting them by hand corrupts the library. Use the app instead.
- Application packages (
.app). Parts of apps repeat on purpose. - System and Library folders. Many files exist in several places by design.
- Cloud-synced folders, until sync finishes. Deleting there deletes everywhere.
For photos, open Photos → Albums → Utilities → Duplicates, which groups items that Photos considers duplicates and lets you merge them. For music, open the Music app and choose File → Library → Show Duplicate Items.
The safe deletion routine#
Delete duplicates without regret
0/6
One surprise about space#
On APFS, a copy made inside the same volume can share storage with the original until you edit it. Deleting such a copy may free less space than the file's size suggests. That is normal and says nothing about your method.
When an app makes sense#
If you have thousands of duplicates across photos, music and documents, a dedicated finder gives you a guided review. We cover the options in Best Duplicate File Finders for Mac, including a free tool, dupeGuru, and a paid one, Gemini 2. For a wider clean-up, see Best Mac Cleaning Software.
Frequently asked questions#
How do I find duplicate photos?#
Use Photos → Albums → Utilities → Duplicates. It understands the library, which Finder does not.
Is it safe to delete a file with a matching checksum?#
Yes, as long as you keep one copy and the files are not part of a library, app or sync folder. Matching checksums mean the contents are the same.
Will deleting duplicates make my Mac faster?#
It frees space, which helps if your disk is nearly full. It will not speed up a Mac with plenty of room. See why a MacBook runs slowly.
Do I need a paid duplicate finder?#
Not for a few folders. A paid tool saves time on big, mixed libraries.
Written by
Guides are researched, written, and maintained by the Atypical Mac User editorial team. Every procedure is checked against the current version of macOS before it is marked as published.
Last updated . First published .
Related guides
Best Duplicate File Finders for Mac
A comparison of Mac duplicate file finders, judged on matching accuracy, safety, and how clearly they show what they are about to delete.
2 min read
Why Is System Data Taking Up So Much Space on Mac?
System Data is the vaguest bucket in macOS storage. Here's what it actually contains, how to measure it yourself, and which parts are safe to shrink.
8 min read
How to Clear Cache on Mac Safely
Which caches are safe to clear on a Mac, how to do it app by app, and which to leave alone.
4 min read
Best Mac Cleaning Software
How Mac cleaning and disk-analysis apps differ, what they can and can't safely remove, and how we will test them before recommending any.
2 min read
Next recommended guide
Best Duplicate File Finders for Mac
A comparison of Mac duplicate file finders, judged on matching accuracy, safety, and how clearly they show what they are about to delete.