Goblin User Guide Search⌘K Download
Disk & Cleanup

Duplicates and similar photos

Find files with identical contents and photos that look alike, keep the copy you want, and move the rest to the Trash after a review.

Duplicates finds files whose contents are exactly the same, whatever their names, and photos that look alike, such as bursts or edited copies. You choose which copy to keep; the others go to the Trash after a review. One copy of every group always stays.

Duplicates never scans by itself, because it reads the contents of your files. Set it up and press Scan.

Find duplicate files#

  1. Click Disk in the main window's tab bar, then Duplicates in the sidebar (under Storage).
  2. Choose where to look. The folder starts as your home folder; click Choose Folder… to pick another, or Home to go back.
  3. Set Minimum size. Smaller files are ignored.
  4. Press Scan. Reading file contents can take a while on a big folder; Cancel Scan stops it.
  5. When it's done, the Identical files list shows the groups, biggest saving first.

Next, choose which copy to keep.

Find similar photos#

  1. Open DiskDuplicates.
  2. Make sure Find similar photos is ticked (it is by default).
  3. Set Photos look to Almost the same, Very similar or Roughly similar.
  4. Press Scan, then click Similar photos above the list.

Photos in your Photos library aren't included; manage those in Photos.

What to scan#

SettingWhat it doesDefault
FolderWhere to look. Home goes back to your home folder; Choose Folder… picks another.Your home folder
Minimum sizeAny size, 100 KB+, 1 MB+, 10 MB+ or 100 MB+. Smaller files are ignored.1 MB+
Include project foldersAlso look inside code projects (folders with .git, package.json and the like).Off
Find similar photosAlso look for photos that look alike, not only identical files.On
Photos lookHow alike photos must be: Almost the same, Very similar or Roughly similar.Very similar

These settings reset when Goblin restarts. If you change them after a scan, a note reminds you to scan again; the results shown are still from the previous scan.

Scanning#

A scan only reads. You can cancel at any time, and the previous results stay.

Progress goes through reading folders, comparing file sizes, reading the start and end of files, checking file contents, checking for shared space, and then, if photos are on, looking at and comparing photos. Identical files appear before the photo pass finishes.

How identical files are found#

  1. Goblin walks the folder once, leaving out hidden files, your Library folder, apps, photo libraries, document bundles and other packages, cloud files that aren't downloaded, symbolic links, project folders (unless included) and anything on your ignore lists. It won't scan /, /System, /Library or ~/Library as a whole.
  2. Only files at least the minimum size, and the same size as another file, are read further.
  3. Goblin fingerprints the first and last 64 KB of each (small files whole), then compares the full contents of the files that still match, using SHA-256.
  4. A file that changes while it's being read is dropped.

Copies that already share their data on disk, as APFS clones or hard links, are marked Shares space or Hard link. Removing them frees nothing, so they aren't counted as savings.

How similar photos are found#

Goblin looks at JPEG, HEIC, PNG and TIFF photos of 30 KB or more, up to the newest 5,000 in the folder. If there are more, it says so; pick a smaller folder to look at the rest. It compares how each photo looks using macOS's own image analysis on a small thumbnail, only between photos of about the same shape. Almost the same groups only near-exact matches, Roughly similar groups loosely alike ones.

In each group, the Best photo is the one with the highest resolution, then the newest, then the largest file.

Photos in your Photos library aren't included; manage those in Photos.

The results#

Four tiles sum up the scan: Duplicate sets, Can be freed (keeping one copy of each, not counting shared space), Similar photos and Selected.

Switch between Identical files and Similar photos above the list, and search with Find a file or path.

Identical files#

The Duplicates section showing groups of identical files, each with how much removing the copies frees, and the Select menu open
Identical files, grouped, with the Select menu.

Groups are sorted by how much space removing the extra copies frees. Each shows the name, how many copies and their size, and what it frees. Copies are listed newest first, with their folder and date.

Choose which copy to keep#

Nothing is ticked after a scan. To pick, either tick the copies you want to remove yourself, or open the Select menu above the list and choose a rule:

  • Keep the newest copy or Keep the oldest copy in every group.
  • Keep the copy in a folder…: choose a folder; copies in it are kept, and copies elsewhere are selected. Groups with no copy in that folder keep the newest.
  • Select none.

You can't tick every copy: the last one is marked Kept. To keep one specific copy, right-click it and choose Keep Only This Copy; Goblin ticks the others. The list shows 40 groups at a time (Show N More Sets).

Ignore a file#

Right-click a copy and choose Ignore This File. It goes on the Duplicates ignore list and drops out of the results. The same menu has Quick Look and Show in Finder. To undo it, see Ignore lists.

Similar photos#

A group of similar photos shown as thumbnails, one marked Best, with Keep the Best above them
Similar photos, with the best one suggested.

Each group shows its photos as thumbnails with their size in pixels, file size and date, and suggests the best one. Double-click a photo for Quick Look. One photo in each group always stays.

Keep the best photo#

  • For one group, press Keep the Best above its thumbnails. Goblin ticks every other photo in the group.
  • For every group, open Select and choose Keep the best of each.
  • To keep a different photo, right-click it and choose Keep Only This Photo.
  • To leave a photo out of future scans, right-click it and choose Ignore This Photo.

Remove the extra copies#

  1. Tick the copies to remove (see Choose which copy to keep). The footer shows how many files are selected and their size, and for identical files how much space removing them frees.
  2. Press Review Removal. Goblin checks the files first ("Checking files…").
  3. In the review sheet, look through the list and press Move to Trash.
  4. When it worked, the removed files leave the results.

Before the review opens, Goblin checks each group again: at least one unselected copy must still exist, unchanged. If not, it leaves that group alone and tells you. Each selected file must also be unchanged since the scan. The review sheet, Move duplicate files to Trash or Move similar photos to Trash, then works like every other removal; see Reviewing a removal. Files are also held to Storage Explorer's selection rules.

Removed files drop out of the results, and a group with one file left disappears.