Hashing
In short
Hashing turns data like email addresses into a fixed string using a one-way function (e.g. SHA-256), so the original can't be calculated back from it.
Also known as: SHA-256, hash function, hash value
Hashing is a method that turns any data into a fixed-length string, the hash, using a mathematical one-way function. The same input always produces the same hash, but you can't directly calculate the input back from the hash. In marketing, SHA-256 is the standard for sending customer data to ad platforms.
Example
With SHA-256, the email address max@example.com becomes a 64-character hexadecimal value. Change even a single character, like Max@example.com with a capital M, and you get a completely different hash.
hash = SHA-256(normalized value)
How hashing is used in tracking
Ad platforms like Meta, Google Ads, TikTok and LinkedIn hash their users' email addresses and phone numbers the same way. When you send a hashed email through the Conversion API, the platform can compare it with its own hashes and attribute the conversion to the right account – without the plain-text address ever being sent. Meta measures how well this matching works with Event Match Quality.
Normalizing before hashing
For matching to work, the data must be formatted consistently before hashing:
- Email: trim spaces, lowercase everything.
- Phone number: digits only, with country code, no leading zero (
15551234567). - Names: lowercase, remove spaces.
Hashing in lead generation
In lead generation, you have exactly the data that matters for good matching: email, phone number and name from the form. When you later send deals from your CRM back as offline conversions, they're matched through these hashed values too.
The LeadMetrics Conversion API hashes email, phone number and name with SHA-256 before sending them to Meta, Google Ads, TikTok or LinkedIn.
Common mistakes
- Not normalized: Capital letters or spaces lead to a different hash – and no match.
- Double hashed: If an already hashed value is hashed again, it's useless to the platform.
- Mistaking hashing for anonymization: Hashed customer data is still personal data and needs a legal basis.
Ready for better tracking?
Frequently asked questions
Guides on this topic
How to Improve Meta Event Match Quality: What Data to Send
How to improve Event Match Quality in Meta: which customer data counts, how to normalize and hash it, and how fbc, fbp and event_id help your score.
Read guideHow to Send Sales Pipeline Stages as Conversions to Meta and Google
Which pipeline stages to send to Meta and Google Ads as conversions, how to map them to events, assign values, meet upload deadlines and avoid duplicates.
Read guideArticles on this topic
- Conversion APIs for Lead Generation: Meta, Google, TikTok and LinkedIn ComparedAll major ad platforms now accept leads and deals server-side, but each one differently. Match keys, click IDs, lead events, time limits and deduplication for Meta, Google Ads, TikTok and LinkedIn at a glance, as of October 2026.
- Google Data Manager API and Enhanced Conversions for Leads: What Changed in 2026Since June 15, 2026, the Google Ads API no longer accepts new offline conversion import integrations. What the Data Manager API is, how enhanced conversions for leads work and what to do now.
- Client-Side vs. Server-Side Tracking: Differences, Pros and Cons for Lead GenerationClient-side vs server-side tracking: how both work, how they differ on ad blockers, cookies, privacy and data quality, and why lead gen setups combine the two.
Related terms
All termsConversion API · CAPI
A Conversion API (CAPI) is an interface that sends conversions directly from server to server to ad platforms like Meta or Google, without the browser.
Event Match Quality
Event Match Quality (EMQ) is a Meta score from 0 to 10 that rates how well your server events can be matched to a Meta account using customer data.
GDPR · General Data Protection Regulation
The GDPR (General Data Protection Regulation) is the EU law protecting personal data. Since May 2018 it applies to anyone processing data of people in the EU.
Offline Conversions · Reporting deals that happen off your website back to ad platforms
Offline conversions are conversions that don’t happen on your website – like a closed deal in your CRM – and are sent back to ad platforms like Meta.
App Tracking Transparency
App Tracking Transparency (ATT) is Apple's rule since iOS 14.5: apps must ask users before tracking them across other companies' apps and websites.
Consent Management
Consent management means collecting, storing and managing your website visitors' consent, for example for analytics and marketing cookies.