# Duplicate photos and similar photos are different problems

> A hash finds exact copies and nothing else. Perceptual comparison finds the burst shots, re-saves and resized exports that actually fill a photo library, with a false-positive rate you have to manage.

Canonical: https://bytesweep.app/blog/duplicate-photos-vs-similar.html
Last updated: 2026-10-16

## Exact duplicates are the easy half of a photo library

Point a hash-based duplicate finder at a photo collection and it will tell you, disappointingly, that you have almost no duplicates. Then scroll through by hand and you’ll find nine shots of the same doorway, a web export sitting next to its original, and every picture you sent someone beside the copy they sent back. None of those share a byte with each other. That’s the real waste, and finding it takes a different technique with a different failure mode.

- By [Shajeen Ahamed](https://bytesweep.app/about.html#author)
- Published 5 October 2026
- Last updated 16 October 2026
- 4 min read
- Part of [Duplicate file finder](https://bytesweep.app/duplicate-file-finder.html)
- [How we write](https://bytesweep.app/about.html#how-we-write)

### What a hash can and can’t say

A cryptographic hash reads the file and produces a fingerprint. Two files with the same fingerprint are identical; there are no false positives. The catch is the same property seen from the other side: change one byte of EXIF metadata and two pictures that look exactly alike are, correctly, not duplicates.

So hashing is the right tool for one kind of photo duplication and useless for the rest. [Finding exact duplicates with the tools macOS already has](https://bytesweep.app/blog/find-duplicate-files-mac.html) covers that kind, including why grouping by size before hashing matters.

### How a perceptual hash sees a picture

A perceptual hash ignores the file and looks at the image. The common version shrinks the picture to a small greyscale grid, runs a discrete cosine transform over it, keeps the low-frequency corner, and records whether each of those 64 values is above or below their median. The result is a 64-bit fingerprint of the picture’s broad structure. Two images count as similar when their fingerprints differ in only a few bit positions. That count is the Hamming distance.

*The two files share no bytes, but their fingerprints differ in only a few bits, so a perceptual comparison groups them.*

Because colour is thrown away in the first step, two copies of a frame with different colour grades will usually match. Some tools add a colour histogram to separate them; most don’t.

### The threshold decides everything

Where you draw the line on Hamming distance decides what you catch and what you wrongly group. As a rough guide for a 64-bit hash:

| Distance | What it catches | What it wrongly groups |
| --- | --- | --- |
| 0–2 | Re-saves, format conversions, metadata edits | Almost nothing |
| 3–6 | Resized exports, mild crops, light edits | Occasional near-identical scenes |
| 7–10 | Burst shots, different exposures of one frame | Sequences from a tripod, documents, screenshots |
| 11+ | Loosely related images | A great deal. Any two dark photos look alike |

Screenshots and scanned documents are the notorious false positives. Two pages of the same white document, or two screenshots of the same app, are nearly the same image as far as the fingerprint is concerned. I’d exclude them from similarity searches entirely and deal with them by date (screenshots and screen recordings covers what they cost).

That’s also why a similar-photo group has to be reviewed, and an exact-duplicate group doesn’t. Exact duplicates can be resolved by a rule, because there’s no judgement in it: keep the shortest path, bin the rest. Similar photos have to be looked at as thumbnails, side by side, with sizes and dates visible. A tool that deletes them for you will eventually delete the one frame in the burst where everyone had their eyes open.

### Where photo duplicates come from

Most of what a real collection contains falls into one of these.

Format pairs: a HEIC original and the JPEG made automatically when you shared or exported it. Identical to the eye, unrelated as bytes, and very common in any collection fed by an iPhone. [Why HEIC and JPEG pairs multiply](https://bytesweep.app/blog/heic-jpeg-duplicates.html) deals with them.

Renditions: thumbnails, previews and edited versions an application generates next to the original. These usually live inside a managed library, and must not be touched from outside it. Deleting a rendition from a Photos or Lightroom library leaves the database describing files that aren’t there. [What is inside a Photos library](https://bytesweep.app/blog/photos-library-size.html) explains the structure.

Human copies: the same folder of holiday photos in `~/Pictures`, in `~/Desktop/to sort`, and on an old external drive. This is usually where the gigabytes are, and it’s exact duplication, so plain hashing finds it.

Work outside managed libraries first. Loose copies on the Desktop, in Downloads and on old external drives are where the recoverable space is, and none of them carry the risk of reaching into a library’s database.

### Picking the keeper

Once you’ve agreed two files are the same picture, the choice is mostly mechanical:

1. Prefer the larger file at the same dimensions. It’s the less compressed one.
2. Prefer the one with intact EXIF. An export stripped of capture date and location is worse even if it looks identical.
3. Prefer the original format over the conversion. A JPEG made from a HEIC original has been through a second lossy encode.
4. Prefer the copy inside your library over the loose one, so the library stays the source of truth.

The second rule is the one people get wrong. A 4 MB JPEG that has lost its metadata is not a better keeper than a 3 MB HEIC that still knows when and where it was taken.

### Questions

#### Will it group photos of the same subject taken minutes apart?

At a loose threshold, yes. For a burst that’s what you want; for a series you shot deliberately it’s wrong. That’s why good tools let you set the threshold instead of fixing it.

#### Can I trust automatic selection inside a similar group?

For choosing which copy to keep in a group you’ve already looked at, yes. For deciding that the group should be resolved at all, no.

### Let Bytesweep clear this for you

Skip the commands. Bytesweep finds this for you, rates every item safe, review first or keep, and clears what you choose. Most of what it removes can be put back for seven days. See what it finds on your own disk, free for 3 days, then pay once with no subscription.

[Try it free for 3 days](https://bytesweep.app/download.html) [Buy · $29.99](https://bytesweep.app/pricing.html)

### Keep reading

- [**Finding duplicate files on a Mac without installing anything** Duplicates are found by size, then by hash, then by eye — in that order, because each stage is cheaper than the next. The shell commands that do it, what they miss, and the rules that stop you deleting the wrong copy.](https://bytesweep.app/blog/find-duplicate-files-mac.html)
- [**HEIC and JPEG pairs are quietly doubling your photo library** macOS and iOS convert HEIC to JPEG whenever you share, export or edit in an app that cannot read HEIC, and keep both. Where the copies come from, how to find them, and which one to keep.](https://bytesweep.app/blog/heic-jpeg-duplicates.html)
- [**Inside a Photos library: originals, renditions and the database** A Photos library is a database with a file store attached, and most of its size is not your photographs. What each folder holds, why the library is larger than the sum of your pictures, and what you must never delete.](https://bytesweep.app/blog/photos-library-size.html)
