Learn · Visitors and identity · Updated 2026-08-14

What is IP hashing?

IP hashing runs a visitor's IP address through a one way function, usually with a random salt, to produce a fixed string that can recognize repeat visits without storing the raw IP address. A hashed IP is still generally treated as personal data under GDPR, not anonymous data.

How IP hashing works, step by step

A visitor's IP address arrives with every request. Instead of storing that address in a database, an IP hashing system runs it through a one way cryptographic function, such as SHA-256, which converts it into a fixed length string of letters and numbers. The original IP address is not recoverable from the hash by reversing the math directly. The system then stores the hash and uses it the same way it would have used the raw IP: to recognize when the same visitor returns, without keeping the address itself on file.

Most serious implementations add a salt, a secret value mixed in before hashing, so the output is not just a hash of the IP but a hash of the IP plus a value only the operator knows. Salting is not decoration. It is the difference between a system that resists casual lookup and one that does not resist it at all, and the distinction matters more than most explainers of hashing let on.

Why hashing an IP address alone is not private

Here is the part most explainers skip. There are only about 4.3 billion possible IPv4 addresses. That is a small enough number that anyone with a modest amount of compute time can hash every one of them in advance and build a lookup table, called a rainbow table, that maps every possible hash straight back to its original IP address. An unsalted hash of an IP address is not anonymization. It is a lookup with extra steps, because the entire input space is small enough to brute force in hours, not centuries.

This is why regulators and privacy engineers treat a bare hash differently from a salted one. A random, kept secret salt breaks the precomputed rainbow table, because an attacker would need to know the salt before precomputing anything useful. It does not make the identifier meaningless, since the whole point is that it still recognizes the same visitor on a return visit, but it does make the raw IP address unrecoverable without the salt.

Salting approaches and what each one actually buys you

ApproachHow it worksRe-identification riskTypical use
No saltIP address hashed directlyHigh. Reversible via a precomputed IPv4 rainbow tableShould generally be avoided for anything touching personal data
Static saltSame secret salt added to every IP before hashingLow if the salt stays secret, but a single leak exposes every past and future hashCommon baseline for visitor recognition systems
Rotating or per period saltSalt changes on a schedule, so hashes from different periods cannot be linked to each otherLowest, and it limits tracking duration even if a salt leaksUsed when long term persistence needs to be deliberately limited

Is a hashed IP address personal data under GDPR

Generally, yes. European data protection guidance treats hashing as pseudonymization, not anonymization. Pseudonymized data is still personal data under GDPR because the organization holding the salt, or capable of brute forcing an unsalted hash, can still link the identifier back to an individual, even if a third party looking at the hash alone cannot. Genuine anonymization, the kind that takes data outside GDPR's scope entirely, is a much higher bar than running a value through SHA-256 once. If a compliance case depends on "we hash it, so it is not personal data", that case is on shaky ground and worth revisiting with someone who reads GDPR guidance for a living.

What salting and hashing do buy, honestly, is a real reduction in exposure if a database leaks, and a real barrier against casual internal misuse, since nobody browsing the table sees a plain IP address. Those are legitimate security benefits. They are just not the same claim as "this data is anonymous."

IP hashing versus the alternatives

MethodWhat's storedPrecisionGDPR posture
Plaintext IP storageThe raw IP addressSame as hashed, precision comes from the IP itself, not the storage formatClearly personal data, no ambiguity
Salted IP hashA one way hash of IP plus secret saltHousehold or network level, roughly, and only a fraction of visitors resolve at allPseudonymized personal data, still in scope
Device fingerprintingA composite signature built from browser, screen, fonts, and other device signalsOften finer than IP alone, and harder for a visitor to reset than an IP addressPersonal data, treated with particular scrutiny by regulators because it resists opt out

Where Raydar uses IP hashing

Raydar's visitor identification is IP hash based. It is not device fingerprinting and it does not pull from a data broker. Matches come back with an explicit high confidence or low confidence label rather than a flat yes or no, which reflects the reality that IP based signals vary in reliability depending on the network the visitor is on. This sits alongside standard click tracking and first party cookie data on every link, so a click's UTM source and referrer stay available even for the visitors who never resolve to an identity. For the mechanics of why a published match number needs a denominator to mean anything, see what a match rate actually measures, and for how this compares to fully cookieless approaches, see cookieless visitor identification.

What to check if a vendor says "we hash your data"

  • Ask whether the hash is salted, and whether the salt rotates.
  • Ask where the salt is stored and who can access it.
  • Do not accept "it's hashed" as a substitute for a real answer on data retention or deletion.
  • Remember that a hash generally still counts as personal data under GDPR, so consent and lawful basis questions do not disappear just because the field is a hash instead of an IP.

Common questions

Can a hashed IP address be reversed back to the original IP?
An unsalted hash can be reversed in practice, because the entire IPv4 address space is small enough to precompute. A properly salted hash, with the salt kept secret, resists that attack, but a leaked salt removes the protection.

Is salted IP hashing the same as anonymization?
No, it is pseudonymization. The organization holding the salt can still link the hash back to a person or household, which is why regulators keep salted hashes inside the definition of personal data.

Does IP hashing identify a specific person?
On its own, an IP hash typically resolves to a household or company network rather than a named individual, and precision depends heavily on the traffic. Combining it with other signals to reach a named person is a different, more invasive practice than hashing alone.

Why do companies use IP hashing instead of storing the raw IP?
It reduces what is exposed if a database leaks and removes plaintext IP addresses from casual internal view, which are real security benefits even though the resulting data is still generally personal data under privacy law.

Related: What is a match rate? · What is a visitor ID? · What is de-anonymization? · First-party vs third-party data