Gmail Address Normalization: Collapsing Aliases to Canonical Inboxes
How developers and SaaS platforms normalize Gmail addresses—removing dots, stripping +tags, and folding googlemail.com—without corrupting non-Gmail accounts.
As explained in our Gmail Dot & Plus Addressing Guide, a single Gmail user can write their address in thousands of valid ways ([email protected], [email protected], [email protected]). For developers cleaning mailing lists or preventing duplicate account signups, email normalization reduces aliases back to one canonical string—when and only when doing so is safe.
The Four-Step Canonicalization Rule for Gmail
Apply these transformations only when the domain (lowercased) equals gmail.com or googlemail.com:
- Lowercase both local-part and domain.
- Fold `googlemail.com` to `gmail.com`: Both domains map 1-to-1 to the exact same Google account namespace.
- Strip `+` and everything after it in the local-part:
john.smith+newsletterbecomesjohn.smith. - Remove all `.` characters from the local-part:
john.smithbecomesjohnsmith.
Result: [email protected] normalizes cleanly to [email protected].
export function normalizeEmail(raw) {
const [localRaw, domainRaw] = raw.trim().toLowerCase().split('@');
if (!localRaw || !domainRaw) return raw.trim().toLowerCase();if (domainRaw === 'gmail.com' || domainRaw === 'googlemail.com') {
const withoutTag = localRaw.split('+')[0].replace(/\./g, '');
return ${withoutTag}@gmail.com;
}
return ${localRaw}@${domainRaw};
}
```
Why You Must Never Strip Dots on Non-Gmail Domains!
Dots being ignored is a Gmail-specific convention, not an internet standard:
- On Microsoft Outlook/Hotmail, Yahoo, Proton Mail, Fastmail, iCloud, and corporate Google Workspace domains,
[email protected]and[email protected]can belong to two completely different human beings! - Even when normalizing Gmail for duplicate detection, always store and send mail to the exact spelling the user typed so their personal
+taginbox filters continue working as intended.
Need to check whether a signup domain belongs to a temporary email service rather than a consumer mailbox? Query our Disposable Email Domain Checker.
Related Guides
Custom Email Usernames & Wildcard MX Domains Explained
Learn the rules for valid email local-parts, why administrative prefixes are reserved, and how wildcard DNS MX records (*.example.com) route dynamic subdomains.
Plus and Dot Addressing Beyond Gmail: Outlook, iCloud, Proton & Fastmail
Gmail isn't the only provider with sub-addressing—compare exact +tag, dot, and alias rules across Outlook, iCloud Mail, Proton Mail, Fastmail, and Yahoo.
Email Generator Not Getting Your Verification Code? 9 Practical Fixes
Waiting on a confirmation email or OTP that hasn't arrived yet? Work through these nine fast checks—from typo inspection to switching active MX domains.
Try Email Generator Free
Generate a temporary email address instantly and receive incoming verification emails through an easy-to-use online inbox. No sign-up required.