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?
| Method | Matches | Survives | Used for |
|---|---|---|---|
| Cryptographic hash (SHA-256) | The identical file only | Nothing; one pixel changes everything | Integrity, deduplication of exact files |
| Perceptual hash | The same picture, lightly changed | Resizing, compression, small crops, colour shifts | Known-image blocking, reverse image search for copies |
| Face embedding | The same face in different pictures | Different photos, angles, ages, within limits | Reverse 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.StopNCII.org, How it works (checked November 6, 2026)
- 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.
Related entries
- Term Reverse image search Reverse image search defined: searching the web with a picture as the query, what it finds (copies, crops, edits), the main engines, and why it is not a face search.
- Term Face embedding Face embedding defined: the numeric vector a network computes from a face, why same-person vectors sit close, how it is compared, and why it is biometric data.
- Term NCII (non-consensual intimate images) NCII defined: non-consensual intimate images, real or synthetic, the laws covering them in the US, UK, EU, India and Australia, and the removal routes.
- Organisation StopNCII.org The hash-based service for adults' intimate images: who runs it, how hashing works, which platforms participate, who is eligible and what it cannot do.
- Concept Image provenance and metadata What EXIF metadata, platform identifiers and C2PA content credentials reveal about a photo, who strips them, and how provenance helps or fails when tracing an image.
Cite this entry
FaceSearch Wiki editors. "Perceptual hash". FaceSearch Wiki, updated November 6, 2026. https://facesearch.wiki/glossary/perceptual-hash/