Every ad platform, data partner, and identity provider asks for the same thing when you upload a customer list: hashed emails. A hashed email lets you match your customers to a platform’s users without handing over a readable address.
This guide explains what a hashed email address is, shows real hashed email examples, compares hashing vs encryption and MD5 vs SHA-256, and walks through how to hash an email list in Excel, Google Sheets, Python, and SQL. It also covers how Untitled uses HEMs for identity resolution.
What Is a Hashed Email Address?
A hashed email address, or HEM, is an email address that has been run through a cryptographic hash function. The function turns the address into a string of letters and numbers with a fixed length. SHA-256 produces 64 characters. MD5 produces 32.
Three properties make a hashed email useful for marketing:
- Deterministic. The same input always returns the same hash. jane.doe@example.com hashes to the same SHA-256 value in Google, Meta, Untitled, or your own spreadsheet.
- One-way. You cannot run the function backward to recover the address.
- Fixed length. Every SHA-256 hash is 64 characters, whether the email is 10 characters long or 60.
Because hashing is deterministic, two companies can each hash their own lists and compare the results. A match means both companies hold the same email address. Neither company had to send the other a readable address to find out.
The term HEM is common in ad tech. You will see it in data partner specs, clean room documentation, and identity graph descriptions. It means the same thing as “hashed email.”
Hashed Email Example: What Does a Hashed Email Look Like?
A hashed email looks like a random string of hexadecimal characters (0 to 9 and a to f). Here is one address run through the three algorithms you will see most often.
Hashed email example
| Algorithm | Length | Hash of jane.doe@example.com |
|---|---|---|
| MD5 | 32 characters | 0cba00ca3da1b283a57287bcceb17e35 |
| SHA-1 | 40 characters | a3caddb38202511eab803116294dc020f7c4f8a2 |
| SHA-256 | 64 characters | 86e0b9e56c17cc4d12387e1949b85053fbe73bc3ce5a1188713a9d300cc6133d |
The hash gives no hint of the original address. It also changes completely if one character changes. That is why normalization matters.
Why normalization matters
| Input (before hashing) | SHA-256 hash | Matches? |
|---|---|---|
jane.doe@example.com | 86e0b9e5...0cc6133d | Yes Normalized form |
Jane.Doe@example.com | ebbacfe6...0e953c150e | No Capital letters |
Jane.Doe@Example.com | 2041a549...ffe7caaf1 | No Capitals and spaces |
All three rows are the same person. Only the first will match a platform that expects lowercase, trimmed input. A list with inconsistent formatting can lose a large share of its matches for this reason alone.
How Email Hashing Works
Email hashing follows the same four steps no matter which platform you send the list to.
- Normalize the address. Remove leading and trailing spaces and convert every character to lowercase. Some platforms add rules. Google asks you to remove periods before the @ in gmail.com and googlemail.com addresses.
- Hash it. Run the normalized string through the algorithm the platform requires. For Google and Meta, that is SHA-256 with no salt.
- Send the hash. Upload the list of hashes, or send them through an API or a tag.
- Match. The receiving platform hashes the emails it already holds in the same way and looks for identical strings. A match links your record to its record.
The matching step is the whole point. A hash on its own tells you nothing. A hash compared against another company’s hashes tells you which people you have in common.
Two details trip up most teams. First, a salted hash (a hash with a secret value added to the input) will never match a platform that expects a plain hash. Second, hashing a blank cell produces a valid-looking hash that matches no one, so remove empty rows before you hash.
Hashing vs Encryption
Hashing and encryption both scramble data, but they solve different problems. Encryption is built to be reversed by someone with the key. Hashing is built never to be reversed at all.
Hashing vs encryption
| Hashing | Encryption | |
|---|---|---|
| Direction | One-way | Two-way |
| Key | None | Requires a key to decrypt |
| Output length | Fixed (64 characters for SHA-256) | Grows with the input |
| Same input, same output | Always | Not necessarily; modern encryption adds randomness |
| Can you get the original back? | No | Yes, with the key |
| Typical use | Matching records, verifying files, storing passwords | Protecting data in transit or at rest |
| Marketing use | Customer Match, Custom Audiences, identity resolution | Securing files sent between partners |
This is why “encrypted email” and “hashed email” are not interchangeable. If a vendor says it can decrypt your hashed list, it is either using the wrong word or describing a lookup against emails it already holds. Matching works only because hashing is deterministic, and encryption with randomness would break it.
MD5 vs SHA-256 (and SHA-1)
Use SHA-256 unless a partner specifically asks for something else. It is the algorithm Google and Meta require, and it has no known practical weaknesses.
MD5 vs SHA-1 vs SHA-256
| MD5 | SHA-1 | SHA-256 | |
|---|---|---|---|
| Output | 128 bits, 32 hex characters | 160 bits, 40 hex characters | 256 bits, 64 hex characters |
| Status | Broken; practical collisions since 2004 | Broken; public collision shown in 2017 | No practical collisions known |
| Ad platform support | Some data partners and legacy email tools | Some data partners | Google, Meta, and most modern platforms |
| When to use | Only when a partner's spec requires it | Only when a partner's spec requires it | Default for every new list |
A “collision” means two different inputs produce the same hash. For email matching, collisions are a minor concern. The bigger point is compatibility. An MD5 hash and a SHA-256 hash of the same email will never match each other, so both sides of a match must use the same algorithm.
One caution applies to all three. A stronger algorithm does not make a hashed email harder to match. Anyone holding jane.doe@example.com can compute its SHA-256 hash in a millisecond. Algorithm choice protects against collisions, not against lookup.
How Hashed Emails Are Used in Marketing
Hashed emails are the common key that lets marketers move known customers between systems. These are the most common uses.
Google Customer Match
Customer Match lets you upload a customer list to Google Ads and target or exclude those people across Search, YouTube, Gmail, Display, and Performance Max. Google accepts plain-text files and hashes them on upload, or you can hash the list yourself with SHA-256.
If you hash it yourself, follow Google’s normalization rules:
- Remove leading and trailing spaces.
- Convert to lowercase.
- Include the domain (for example, @gmail.com).
- Remove periods before the @ in gmail.com and googlemail.com addresses.
The same rules apply to Google’s enhanced conversions, which send hashed emails from your conversion tags to improve measurement.
Meta Custom Audiences
Meta matches customer lists against SHA-256 hashes. When you upload a file in Ads Manager, Meta hashes identifiers in your browser before the file is sent. If you send lists through the Marketing API or a partner, you lowercase, trim, and hash each email yourself.
LinkedIn, TikTok, and other ad platforms
Most other platforms with list-based audiences follow the same pattern: normalized emails, hashed with SHA-256.
Data partnerships and clean rooms
Two companies can each hash their customer lists and compare them to measure overlap, build co-marketing audiences, or run measurement, without exchanging plain-text addresses.
Identity resolution
Identity graphs use HEMs as a stable key. A hashed email can tie together a website session, a mobile device, an email open, and an offline purchase that all belong to one person. This is how website visitor identification turns an anonymous visit into a known contact.
Suppression
Hashed customer lists let you exclude existing buyers from acquisition campaigns, so prospecting budget does not go to people who already purchased.
Benefits of Email Hashing
- No plain-text addresses in transit. A hashed list can be shared and matched without exposing readable emails to the receiving system or to anyone who intercepts the file.
- Works across devices and browsers. An email is tied to a person, not a cookie. People sign in with the same email on a phone, a laptop, and a smart TV, so a HEM follows them where cookies cannot.
- Durable as cookies decline. Safari and Firefox already block third-party cookies by default. Hashed emails come from first-party relationships, so they keep working.
- A universal format. SHA-256 hashes from your CRM, your ESP, and your ad accounts are directly comparable. No vendor-specific translation is needed.
- Smaller breach impact. A leaked file of hashes is harder to misuse than a leaked file of plain addresses, although it is not harmless.
Limitations of Hashed Emails
Hashed emails are useful, but they are not a privacy shield. Being clear about the limits keeps your claims accurate.
- A HEM is not anonymous. Anyone who already has an email address can hash it and check for a match. The FTC said this directly in 2024: hashing does not make data anonymous.
- Formatting breaks matches. One uppercase letter, a trailing space, or the wrong algorithm produces a different hash.
- People change emails. A hash is only as current as the address behind it. Old or abandoned addresses stop matching.
- Work emails match less often. Ad platforms match against the personal emails people use to log in. B2B lists heavy with work addresses tend to match at lower rates.
- One identifier is not a full identity. A single email does not tell you about a person’s other emails, devices, or household. An identity graph fills that gap by linking the HEM to other signals.
How Untitled Uses Hashed Emails
Untitled uses hashed email addresses as the foundational identity anchor in its identity graph of 300M+ U.S. person-level records. Every other signal, from IP addresses to mobile device IDs, is validated against a HEM before it is trusted.
Here is how the Untitled ID Tag turns a website visit into a verified person in three phases.
1. Verification: linking a visit to a HEM
When the ID Tag fires, it observes the visitor’s IP address, device and browser characteristics, cookie identifiers, and timestamps. Untitled checks these against known HEM associations: the IP’s footprint history, device-to-HEM relationships, and timestamp alignment across signals. A link to a HEM forms only when the signals line up deterministically.
2. Efficacy: enriching and validating the record
Once a visit is tied to a HEM, Untitled maps it to demographic data, firmographic data, cross-device associations, and behavioral attributes. Distributed sources keep the record honest: cookie sync partnerships, email engagement IP footprints, MAID-to-HEM associations from mobile data, and log-level timestamps. Records that drift or go stale have their confidence scores lowered.
3. Accuracy: confirming through activation
Confidence rises when records are activated in marketing channels, when a conversion happens, or when first-party data confirms the identity. With sufficient traffic and activation, production matching accuracy typically falls between 90% and 95%.
From HEM to audience
The ID Tag identifies about 50% of website traffic at the person level. Those identified visitors, plus lists synced from Klaviyo, HubSpot, Salesforce, Mailchimp, or a CSV, become segments in the Untitled target audience platform. From there, audiences push to Meta, Google Ads, TikTok, Pinterest, LinkedIn, the Untitled DSP for streaming TV, and direct mail.
Untitled match rates by destination
| Destination | Match rate |
|---|---|
| Streaming TV (Untitled DSP) | 90% |
| Meta | 75% |
| Google Ads | 75% |
| 60% | |
| TikTok | 50% |
| 50% |
Untitled works within a consent-based, first- and second-party data framework built exclusively on U.S. records. No PII is sold to third parties to make a match. The customer is the data controller, and Untitled is the processor.
How to Hash an Email List
You often do not need to hash a list yourself. Google Ads and Meta Ads Manager both hash plain-text uploads with SHA-256. Hash it yourself when you send data through an API, a data partner, or a system that only accepts hashes.
Whatever tool you use, clean the list first: remove blank rows and duplicates, then trim and lowercase every address.
How to hash emails in Excel
Excel has no built-in SHA-256 function. Normalize in Excel, then either upload the clean list to the ad platform (which hashes it for you) or add a short VBA function.
Step 1. Normalize with a formula in a new column:
=LOWER(TRIM(A2))
Step 2 (optional, Windows). Press Alt + F11, choose Insert > Module, and paste this function. It uses the .NET Framework built into Windows (version 3.5 must be enabled).
Function SHA256(ByVal s As String) As String
Dim enc As Object, prov As Object
Dim bytes() As Byte, hash() As Byte
Dim i As Long, out As String
Set enc = CreateObject("System.Text.UTF8Encoding")
Set prov = CreateObject("System.Security.Cryptography.SHA256Managed")
bytes = enc.GetBytes_4(LCase(Trim(s)))
hash = prov.ComputeHash_2((bytes))
For i = LBound(hash) To UBound(hash)
out = out & LCase(Right("0" & Hex(hash(i)), 2))
Next i
SHA256 = out
End Function
Then use =SHA256(A2) in any cell. Save the file as .xlsm to keep the macro.
How to hash emails in Google Sheets
Open Extensions > Apps Script, paste this function, and save.
function SHA256(input) {
var normalized = String(input).trim().toLowerCase();
var bytes = Utilities.computeDigest(
Utilities.DigestAlgorithm.SHA_256, normalized, Utilities.Charset.UTF_8);
return bytes.map(function (b) {
return ('0' + (b & 0xFF).toString(16)).slice(-2);
}).join('');
}
Then use =SHA256(A2) in the sheet.
How to hash emails in Python
import hashlib
def hash_email(email: str) -> str:
normalized = email.strip().lower()
return hashlib.sha256(normalized.encode("utf-8")).hexdigest()
print(hash_email(" Jane.Doe@Example.com "))
# 86e0b9e56c17cc4d12387e1949b85053fbe73bc3ce5a1188713a9d300cc6133d
How to hash emails in SQL
-- BigQuery
SELECT TO_HEX(SHA256(LOWER(TRIM(email)))) AS hem_sha256 FROM customers;
-- Snowflake
SELECT SHA2(LOWER(TRIM(email)), 256) AS hem_sha256 FROM customers;
To check your work, hash jane.doe@example.com with your method. The result should be 86e0b9e56c17cc4d12387e1949b85053fbe73bc3ce5a1188713a9d300cc6133d
Hashed Email FAQs
A hashed email, or HEM, is an email address converted into a fixed-length string by a one-way hash function such as SHA-256 or MD5. The same normalized email always produces the same hash, so companies can match customer records without exchanging readable addresses.
Treat it as personal data. Under GDPR, a hashed email is pseudonymised data, which is still personal data because it can be linked back to a person with additional information. Under CCPA, email addresses and unique personal identifiers are personal information, and California regulators have said hashed data may qualify depending on context. The FTC stated in 2024 that hashing does not make data anonymous. This is general information, not legal advice.
No. Hashing is one-way and uses no key, so there is nothing to decrypt. A hashed email can be matched, though. Anyone who already has an email address can hash it and compare the result. That is how ad platforms match lists, and it is why hashed emails are not anonymous.
A hashed email is a string of hexadecimal characters. The SHA-256 hash of jane.doe@example.com is 86e0b9e56c17cc4d12387e1949b85053fbe73bc3ce5a1188713a9d300cc6133d. SHA-256 hashes are 64 characters, SHA-1 hashes are 40, and MD5 hashes are 32.
Remove blank rows and duplicates. Trim spaces and lowercase every address. Then run each address through SHA-256 in a spreadsheet function, a script, or a SQL query. Google Ads and Meta Ads Manager will also hash a plain-text list for you on upload.
Excel has no built-in hash function. Normalize each address with =LOWER(TRIM(A2)), then upload the clean list to an ad platform that hashes on upload, or add a short VBA function that calls SHA-256. Google Sheets can hash emails with a few lines of Apps Script.
Use SHA-256. It is required by Google and Meta and has no known practical weaknesses. MD5 and SHA-1 are both considered broken for security use. Use them only when a partner's spec requires them, because hashes from different algorithms never match each other.
Encryption is two-way. Data encrypted with a key can be decrypted with a key. Hashing is one-way, uses no key, and always produces the same output for the same input. Matching depends on that consistency, which is why ad platforms use hashing.
No. Google accepts plain-text customer lists and hashes them with SHA-256 during upload. If you hash the list yourself, Google requires SHA-256 on lowercase, trimmed addresses, with periods removed before the @ in gmail.com and googlemail.com addresses.
Untitled uses hashed emails as the anchor of its identity graph. The Untitled ID Tag links website visits to a HEM by checking IP, device, cookie, and timestamp signals, then enriches and validates the record. Those identities become audiences for Meta, Google Ads, streaming TV, and direct mail.
About Untitled
Untitled resolves anonymous website traffic to verified people and turns them into audiences for paid, owned, and offline channels.
See which of your visitors you can identify. Book a 30-minute demo to see it on your site.




