DevTools Logo

Duplicate Image Finder

Duplicate Image Finder

Drop a folder to find exact copies and perceptual near-duplicates entirely in your browser — no uploads, no deletion.

Runs in your browser

Folder input and settings

0 image(s) · 0 skipped

Files 0

Exact groups 0

Reclaimable 0 B

SHA-256 finds byte-identical copies; dHash compares 64 gradient bits. Large folders are processed sequentially with progress — images never leave this tab.

Review clusters

0 cluster(s)

No images scanned

This tool never deletes files. It exports a cleanup list you can review before any script acts on it. Load the demo folder or choose images from your device.

Examples

Renamed copy

Input
Same bytes, different filename
Output
Exact cluster with distance 0

Hashing ignores names entirely.

Burst sequence

Input
dHash distance 2 at threshold 10
Output
Near-duplicate cluster

Slightly shifted or re-encoded frames stay within the threshold.

Transitive chain

Input
A–B 8 bits, B–C 8 bits
Output
One cluster labelled with the observed range

Union-find can place A and C more than 10 bits apart; review is required.

About this tool

The Duplicate Image Finder scans a folder entirely in your browser and groups both byte-identical copies and visually similar photos. Exact matching uses SHA-256 over the raw file bytes; near matching uses a 64-bit difference hash (dHash) computed from a 9×8 grayscale downsample of each image. A size-band pre-filter keeps comparisons tractable on large libraries, with a thorough-scan option that compares every pair.

Pairs within the Hamming threshold are joined with union-find into reviewable clusters. Each cluster shows its observed minimum and maximum pairwise distance, so you can see when chaining has joined members that are farther apart than the threshold. Review marks are keyed to a cluster and cleared when the threshold changes, preventing stale verdicts from leaking into an export.

Nothing is uploaded and nothing is deleted. The only output is a CSV cleanup list that your own tools can read, with correctly quoted paths. A built-in demo folder lets you try the review workflow without staging a photo library.

What this tool does not do

  • No files are deleted, moved or renamed; output is a CSV list only.
  • dHash is not rotation- or flip-invariant, and very small images give noisy distances.
  • A size-band scan can miss near-duplicates with very different byte counts unless thorough mode is enabled.

How to use this tool

  1. Choose files or a folder

    Use the file picker with folder-scan mode for a webkitdirectory selection, or load the demo folder to explore the workflow.

  2. Tune the threshold

    Move the Hamming slider (0–32 of 64 bits). Zero disables the near pass and shows exact groups only; thorough scan ignores size bands.

  3. Review clusters

    Open a cluster, mark one image as Keep and the rest as Duplicate, or apply a bulk rule such as largest file or newest date.

  4. Export the list

    Download the CSV cleanup list. The tool never removes files — review the list before acting on it elsewhere.

Use cases

Cull a shoot

Group burst frames and near-identical edits before choosing the keeper.

Consolidate backups

Find renamed byte-identical copies across synced folders without uploading private photos.

Clean asset folders

Export a precise path list for a script instead of deleting files from the browser.

Matching stages

StageMethod
ExactSHA-256 of raw bytes; byte-identical files group regardless of filename
PerceptualdHash: 64 horizontal-gradient bits from a 9×8 grayscale grid
ComparisonHamming distance of two hashes, threshold 0–32 bits
Pre-filterLog-scale byte-size bands; thorough mode disables the filter
ClusteringUnion-find with path compression; observed distance range shown
ExportCSV with path, group, verdict, distance and bytes; RFC-style quoting

Resized or re-encoded copies can fall outside a narrow size band — enable thorough scan when that matters more than speed.

Common mistakes

Mistake:Assuming a high threshold always means the same photo.

Fix:Review the distance range and the side-by-side images; chains can contain loose matches.

Mistake:Wondering why a heavily resized duplicate was missed.

Fix:The size-band filter skips it by default — enable thorough scan.

Mistake:Expecting rotated phone photos to match.

Fix:dHash is orientation-sensitive; rotate-aware matching is outside this version.

Mistake:Treating the CSV as an executable cleanup.

Fix:Review the verdicts first; this tool has no file-system write or delete permission.

Frequently asked questions

Are my photos uploaded?

No. SHA-256 hashing, perceptual hashing and clustering all run in your browser tab. There is no upload endpoint, and thumbnail object URLs are revoked when the file list changes.

What is the difference between exact and near duplicates?

Exact duplicates have identical bytes and therefore identical SHA-256 hashes. Near duplicates are visually similar but differ in bytes — a re-encode, crop or quality change — and are found with a 64-bit perceptual hash and a small Hamming distance.

What threshold should I use?

Start at 10 bits out of 64: it catches re-encoded and burst copies with few false positives. Move to 0 for exact groups only, or lower it if unrelated photos appear together. Raising it above 16 quickly produces loose matches.

Can this tool delete files?

No, and it deliberately cannot. You mark keepers in the review panel and download a CSV list that your own script or file manager can use. Nothing is written to disk by the browser tool.

How large a folder can it handle?

Hashing is sequential with a progress indicator; tens of thousands of filenames are fine, but decoding time grows with image count. Thorough mode compares every pair and is much slower than the default size-banded scan.

Why did a resized duplicate not appear?

The default pre-filter compares only files in similar byte-size bands to avoid quadratic work. Enable thorough scan to compare all pairs regardless of file size.

References & standards