Skip to content

Glossary · Technology

Perceptual hash

A perceptual hash is a short fingerprint computed from the visual content of an image so that similar-looking images produce similar hashes, unlike a cryptographic hash, which changes completely with a single altered pixel. Platforms use perceptual hashes to recognise known images, including intimate images that victims have asked them to block, without storing or viewing the images themselves.

Updated November 6, 2026 · 2 min read

How does it work?

The image is shrunk to a small grid, converted to greyscale, transformed into a few dozen numbers that describe its coarse structure (block averages, or the low frequencies of a discrete cosine transform), and those numbers are reduced to a string of bits. Two images are compared by counting the bits that differ (the Hamming distance). A re-saved JPEG or a resized copy differs by a few bits; an unrelated image differs by about half. Microsoft's PhotoDNA, Facebook's PDQ and the open pHash family are the common implementations.

How is it different from other hashes and from embeddings?

Three ways to fingerprint an image
MethodMatchesSurvivesUsed for
Cryptographic hash (SHA-256)The identical file onlyNothing; one pixel changes everythingIntegrity, deduplication of exact files
Perceptual hashThe same picture, lightly changedResizing, compression, small crops, colour shiftsKnown-image blocking, reverse image search for copies
Face embeddingThe same face in different picturesDifferent photos, angles, ages, within limitsReverse face search, identity verification

Where is it used?

  • StopNCII.org and NCMEC's Take It Down compute the hash on the victim's device and share only the hash; participating platforms block uploads that match. The image never leaves the phone.
  • Child sexual abuse material detection: PhotoDNA hashes of known material are matched at upload by most large platforms.
  • Copyright and brand protection: finding reposts of a known image at scale.
  • Reverse image engines such as TinEye combine hashing with other features to find copies and edits.

What are the limits?

Heavy crops, mirroring, rotation, overlays and screenshots of screenshots can push a copy past the matching threshold, and some systems add geometric variants to compensate. Hashes recognise only images already submitted; they cannot find new images of a person, which is the NCII gap that a face search partly covers and hashing does not. A hash cannot be reversed into the image, which is why sharing it is considered safe, though research has shown that collisions can be engineered for some algorithms.

Questions

Does submitting a hash to StopNCII share my image?

No. The hash is computed on your device and only the hash, a string of numbers, is sent. It cannot be turned back into the image.

Will a perceptual hash catch a deepfake made from my photo?

Usually not. A deepfake is a new image with different visual content, so its hash does not match the original. Face-based matching is needed for that.

Sources

  1. 1.StopNCII.org, How it works (checked November 6, 2026)
  2. 2.Meta, Open-sourcing photo- and video-matching technology (PDQ and TMK+PDQF) (checked August 1, 2019)

Entry reviewed November 6, 2026. Found an error? Tell us.

Cite this entry

FaceSearch Wiki editors. "Perceptual hash". FaceSearch Wiki, updated November 6, 2026. https://facesearch.wiki/glossary/perceptual-hash/