DataTools AI DataTools AI

How to clean email addresses in Google Sheets

Mailing tools and CRMs reject or duplicate contacts when emails have stray spaces, capital letters or typos. These formulas fix most of it.

Step 1: trim and lowercase

=LOWER(TRIM(A2)) turns " [email protected] " into [email protected]. Email addresses are effectively case-insensitive, so lowercasing makes duplicates visible.

Step 2: remove hidden characters

Copied lists often carry non-breaking spaces or line breaks: =LOWER(REGEXREPLACE(A2,"[\s\x{00A0}]","")).

Step 3: flag invalid addresses

=IF(REGEXMATCH(B2,"^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$"),"OK","CHECK")

Common typos worth a find-and-replace: gmial.com, gmail.con, hotmial.com, .com.mx. with a trailing dot.

Step 4: remove duplicates

Use =UNIQUE(B2:B) on the cleaned column, or Data → Data cleanup → Remove duplicates once the column is normalized. See also how to remove duplicates.

Doing this every week? CleanSheet does all of these steps in one click: removes duplicates (even "Juan Perez" vs "juan pérez"), formats phones to E.164, lowercases emails and standardizes dates. Free up to 500 rows. See CleanSheet · Get the $9 template