CSV and imports

How to Clean a CSV File Before Importing It Into a CRM

By the DecodingPro teamUpdated 4 min read

Quick answer

Before any import, fix seven things: one header row with the exact field names your tool expects, UTF-8 encoding, trimmed lowercase emails, phone numbers in one international format, dates in one unambiguous format such as 2026-10-09, no duplicates on the key field (usually email) and no blank or merged cells in required columns. Then import 10 rows as a test before the full file.

A bad import is slow to undo. A CRM or email tool will happily create 4,000 duplicate contacts, scramble every accented name or reject half the rows with an error you only see at the end. Ten minutes of cleaning first avoids all of it. Work on a copy and keep the original file untouched.

The checklist at a glance

CheckWhy imports fail without it
One header row, names match your toolColumns are skipped or mapped wrongly
UTF-8 encodingAccents become garbled characters
Emails trimmed, lowercase, validRejected rows, bounces
One phone formatRejected or unusable numbers
One date formatDates swap day and month, or fail
No duplicates on the key fieldDuplicate contacts
No blank or merged cells in required columnsRows rejected

Step 1: one header row, clean field names

Delete title rows, notes and totals above and below the table. Keep a single header row. Rename headers to match the field names in your tool (for example Email, First Name, Phone), since most tools match columns by name. Remove empty columns and blank rows.

Step 2: save as UTF-8

In Excel choose File, Save As, and pick CSV UTF-8 (Comma delimited). The plain "CSV (Comma delimited)" option uses an older encoding that damages accents and non-Latin letters. See fixing garbled characters and broken CSV imports if the file already looks wrong.

Step 3: emails

Remove stray spaces and lowercase everything:

=LOWER(TRIM(A2))

A quick syntax check for each address (it checks shape, not whether the mailbox exists):

=AND(ISNUMBER(FIND("@",A2)),ISNUMBER(FIND(".",A2,FIND("@",A2))),ISERROR(FIND(" ",A2)))

Fix provider typos such as gmial.com first: see fixing email typos in Excel, or paste the column into the free email checker, which works in your browser.

Step 4: names and phones

If your tool wants separate first and last name columns, split them: splitting full names in Excel. Bring phone numbers into one format, preferably international with the country code: fixing phone numbers in Excel. Keep ZIP codes and IDs as text so their leading zeros survive: keeping leading zeros.

Step 5: dates

Different tools read 03/04/2026 differently (3 April or 4 March). Convert real dates to year-month-day, which has only one reading:

=TEXT(A2,"yyyy-mm-dd")

If a date is stored as text, convert it first: fixing dates in Excel and CSV.

Step 6: duplicates

Decide which column identifies a person, usually email. Flag repeats:

=COUNTIF($A$2:$A$5000,A2)>1

Review them before deleting: two rows with the same email may hold different phone numbers worth keeping. See removing duplicates without losing data and finding and highlighting duplicates.

Step 7: test with 10 rows

Copy 10 rows, including your three messiest ones, into a new CSV and import only that. Open the imported records and check names, accents, phone numbers, dates and the mapping of every column. Only then import the rest.

Tip: keep a column called Source or Imported on with today's date. If something goes wrong you can find and remove exactly the batch you added.

Warning: check your tool's own rules for required fields, the date format it expects and how it treats duplicates. They differ between products and change over time, so read its current import help page.

A whole file at once

DecodingPro trims text, fixes mistyped email domains, standardises phone numbers and dates, flags duplicates and lists every change, so you can review the result before importing it.

Try it on your own file

You start with 100 free credits. Every change is logged, and anything unclear is flagged, never guessed.

Fix a spreadsheet

Questions people ask

Should I delete duplicate rows or leave them to the CRM?

Clean them first. Many tools only match on one field such as email, so rows with a different spelling of the same address still become two contacts.

Why do accented names turn into strange characters after import?

The file was saved in an older encoding. Save it again as CSV UTF-8 and import that version.

Is it safe to import my whole list straight away?

Not the first time. Import 10 rows as a test, check them, then import the rest.

Keep reading

01Excel data cleaningHow to Clean Messy Excel Data: A Step-by-Step GuideThe fixed order that stops one fix from undoing another, with the formulas for every step.10 min read02Text and numbersHow to Keep Leading Zeros in Excel and CSV (ZIP Codes, IDs)Why Excel turns 02134 into 2134, how to get the zeros back, and how to stop it happening when you open a CSV.5 min read04DatesHow to Fix Dates in Excel and CSV Files (Mixed Formats)Text dates, day-month swaps, two-digit years and the one rule that makes dates safe to share.8 min read05Phone numbersHow to Fix Phone Numbers in Excel: Format and Country CodesLeading zeros, 9.19E+11, country codes and the international format that every system accepts.6 min read06DuplicatesHow to Remove Duplicates in Excel Without Losing DataExact, near and partial duplicates: decide what counts, mark before you delete, keep the best record.6 min read07DuplicatesHow to Find and Highlight Duplicates in ExcelFind repeats safely first: highlight them, count them, keep the first one, and spot the near-duplicates Excel does not see.3 min read08NamesHow to Standardize Names in Excel: Proper Case and ExceptionsWhat PROPER gets wrong, how to protect names that are already right, and how to flip "Smith, John" into "John Smith".4 min read09Email addressesHow to Fix Email Typos in Excel: gmial.com, .con and Missing @The typos that make campaigns bounce, and the formulas and checks that fix them without guessing.4 min read10Email addressesHow to Clean an Email List Before You Send a CampaignA five-step routine that removes the avoidable bounces from a list without deleting anyone you should keep.3 min read11NamesHow to Split Full Names into First and Last Name in ExcelFlash Fill, Text to Columns and formulas for splitting names, and the names that trip each one up.4 min read12Text cleanupHow to Remove Extra Spaces in Excel (TRIM, CLEAN and Non-Breaking Spaces)Why TRIM sometimes does nothing, and the one formula that removes every kind of stray space.3 min read13Text cleanupHow to Remove Special Characters and Line Breaks in ExcelThe characters you cannot see, the smart quotes you can, and the exact formula or shortcut that removes each one.4 min read14NumbersHow to Convert Text to Numbers in Excel (Numbers Stored as Text)Why sums show zero, why numbers sit on the left, and four ways to turn text back into real numbers.3 min read15Excel data cleaningHow to Clean Data with Power Query in Excel (Step by Step)Record your cleaning steps once and replay them on every new file, without formulas and without touching the original data.4 min read16Comparing dataHow to Compare Two Lists in Excel and Find What Is MissingFind the names, IDs or emails that are in one list and not the other, with formulas that scale.3 min read17CSV and importsFix Garbled Characters and Broken CSV Imports (UTF-8)UTF-8, delimiters, leading zeros, quotes and a checklist that makes a file safe to import.7 min read18Data entryData Entry Accuracy: How to Check, Measure and Improve ItWhat the research says about error rates, why proofreading fails and the checks that actually work.9 min read