Normalize names, emails and tags before importing a CSV

Clean three contact fields in a CSV and test mapping, rejected rows and rollback with a small trial import.

Prepare a copy of the file

Work from a UTF-8 copy and check which delimiter the receiving program expects. Quote any field that contains the delimiter. Keep the contact ID as text so leading zeros survive.

id,name,email,tags
0042," Ana  D’Amico "," Ana@EXAMPLE.COM ","VIP|vip|News"
0043,Chloé Martin,Chloe @example.com,News

Three fields, three rules

Trim names and collapse repeated spaces. Preserve accents, apostrophes and existing capitalization. Trim email addresses, lowercase the domain and preserve the part before the at sign. Set aside addresses with internal spaces or a missing domain. Map tags to an agreed vocabulary and remove duplicates within each row.

ID Name Email Tags
0042 Ana D’Amico Ana@example.com vip|news

A reversible trial import

Map the columns in a test environment with sending and automation disabled. The sample above should import one row and send the other to the rejection log. Export the imported record and compare the ID, name, email and tags with the cleaned CSV. If you will update existing contacts, also test restoring one from a prior export. Delete the trial batch by its identifier or restore the starting state before the full import.

More articles