← Blog

What is Perceptual Hashing? How Platforms Detect Duplicate Images (Explained Simply)

March 26, 2026 · Respoof Team

If you have ever posted the same image to multiple Reddit subreddits and noticed some posts silently disappear, you have encountered perceptual hashing. Understanding how it works is the first step to beating it.

Regular hash vs perceptual hash

A regular file hash (like MD5 or SHA-256) creates a unique fingerprint from the exact bytes of a file. Change one pixel and the hash changes completely. This is easy to bypass — just resave the image and the hash changes.

A perceptual hash is different. It creates a fingerprint based on what the image LOOKS LIKE, not its exact bytes. Two images that look identical to a human will have nearly identical perceptual hashes, even if the files are different sizes, formats, or quality levels.

The three types platforms use

pHash (Perceptual Hash): The most common type. It converts the image using a mathematical transformation (DCT — Discrete Cosine Transform) into a compact 64-bit representation. Two visually similar images produce nearly identical pHashes.

aHash (Average Hash): Simpler and faster. Scales the image to 8x8 pixels, converts to grayscale, and compares each pixel to the average brightness. Less accurate than pHash but quicker to compute.

dHash (Difference Hash): Compares the brightness of adjacent pixels to detect gradients. More resistant to brightness changes than aHash.

How platforms compare hashes

When you upload an image, the platform computes all three hash types and compares them against every previously uploaded image using Hamming distance — the number of bits that differ between two hashes.

A Hamming distance of 0 means identical hashes. Under 10 (out of 64 bits) means the images are visually near-identical. Most platforms flag images with a distance below a threshold (typically 5-12).

What does NOT change the hash

These common tricks do NOT work: renaming the file, changing the format (JPG to PNG), adjusting quality/compression, adding metadata, or changing the file size. The perceptual hash ignores all of these because it is based on visual content, not file data.

What DOES change the hash

To push the Hamming distance above the detection threshold, you need to modify actual pixel data: injecting invisible noise, shifting color values, modifying DCT coefficients, micro-cropping, or adjusting color temperature. These changes must be large enough to change the hash but small enough to be invisible to the human eye.

This is exactly what content spoofing tools automate — making each version of an image hash-unique while keeping it visually identical.

Try these tools free

42+ tools for OnlyFans agencies. No credit card required.

Start Free — 5 Spoofs Included →