Images and Photos

How to Find Duplicate and Near-Duplicate Photos Without Uploading Them

Why photo libraries fill with copies, how cryptographic and perceptual hashes find them, how to choose the copy to keep and how to clean up safely.

Saizul Amin
Saizul Amin28 Oct 2026 · 3 min read
How to Find Duplicate and Near-Duplicate Photos Without Uploading Them

How to Find Duplicate and Near-Duplicate Photos Without Uploading Them

Photo collections grow duplicates quietly. Phones back up the same picture twice, messaging apps save compressed copies, edited versions sit next to originals, and burst mode produces dozens of almost identical frames. Duplicates waste storage and make finding the best photo harder. The Duplicate and Similar Photo Finder finds them in your browser without uploading anything.

Exact copies: cryptographic hashes

An exact duplicate has the same bytes as the original, even if the file name differs. The tool calculates a SHA-256 hash for each file, a 64-character fingerprint that changes completely if even one byte differs. Two files with the same SHA-256 are identical. This is fast and has no false matches.

Near-duplicates: perceptual hashes

A resized copy, a re-saved JPEG or a screenshot of a photo has different bytes but looks the same. Perceptual hashes capture appearance instead of bytes.

The DCT hash shrinks the photo to 32 x 32 grey pixels, computes a discrete cosine transform (the same maths used by JPEG), keeps the lowest 64 frequencies that describe the overall structure and records whether each is above the median. The difference hash shrinks the photo to 9 x 8 grey pixels and records whether each pixel is brighter than its neighbour. Similar photos produce hashes that differ in only a few of their 64 bits; the number of differing bits is the Hamming distance.

The tool groups photos whose hashes are within the similarity threshold you choose, using both hashes to avoid false matches.

Choosing a threshold

  • 0 to 3: near-identical copies, such as the same photo saved twice.
  • 4 to 10: resized, recompressed or lightly edited versions.
  • 11 and above: burst shots and very similar compositions; check these groups carefully.

Start low and increase gradually.

Which copy to keep

In each group the tool suggests the copy with the most pixels, then the sharpest, then the largest file. That usually picks the original over compressed copies. For burst shots, look at the photos yourself: the sharpest frame may not have the best expression.

Cleaning up safely

Browsers are not allowed to delete files from your computer, which protects you from malicious websites. The tool therefore gives you two outputs:

  • A CSV report listing every group and which files are suggested for deletion, so you can remove them in your file manager.
  • A ZIP of the photos to keep, which you can use as a cleaned copy of the folder.

Before deleting anything, back up the folder. Check a few groups by eye.

Tips

Work one folder or event at a time. Include all copies in the same scan; duplicates in different folders are found only if both are loaded together. Videos, RAW and HEIC files are skipped if your browser cannot display them.

A worked example

A phone backup folder of 640 photos is scanned at similarity 8. The tool finds 31 groups: 12 exact copies saved by a messaging app, 9 pairs of an original and a resized copy, and 10 burst sequences. The suggested removals free 214 MB. After checking the burst groups by hand and keeping two frames from one of them, the final cleanup saves 205 MB.

Quick answers

Does it compare videos? No, only images your browser can display.

Is a high similarity value risky? It groups more photos, so review those groups before deleting anything.

Limits

Heavily cropped, rotated or filtered copies may not be grouped. Very large batches take longer because every pair is compared. Photos are processed locally and never uploaded.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages