Format a CSV Contact File

How to structure a CSV file for contacts: headers, quoting, encoding and line breaks, what CSV does and does not store, and how to check it survives import and sharing.

A CSV contact file is a plain-text table. Each line is one contact, each field is separated by a comma, and the first line usually names the columns. Formatting one correctly is less about appearance and more about structure. The file has to keep each name, phone number and note in the right column when another program reads it. This review covers what the format changes, where it tends to break, and when a different format is the better choice.

Is CSV the right format for your contacts?

For moving many contacts between a spreadsheet, a contact manager, a mailing tool or a CRM, CSV is usually a sound choice. Almost every such tool can read and write it, the file is small, and you can inspect it in any text editor. The main benefit is portability of the data itself.

The tradeoff is that CSV carries no meaning beyond position. Nothing in the file says that column three is a mobile number rather than a work number, or which of two email columns is primary. The receiving program decides by matching header names. If your headers don't match what the destination expects, the import may misplace fields or drop them silently. CSV also has no standard way to hold multiple values in one field, such as several phone numbers, or to hold a contact photo.

Other formats are a better fit in some situations. If you are sending a few contacts to a person who will read rather than import them, a simple typed list is easier to read than comma-separated rows. If the destination offers a contact-card format such as vCard and you need multiple numbers, addresses or photos per person, that format usually represents contacts more faithfully than a flat table.

What formatting a CSV actually changes

Formatting a contact CSV changes the stored characters: which delimiter separates fields, how fields are quoted, which text encoding is used, and how lines end. It does not change how the contacts look. CSV stores no fonts, bold text, column widths or colors. Styling you apply in a spreadsheet before saving as CSV is discarded. Only the cell values are written.

The core rules most programs follow are described in RFC 4180, a widely referenced description of the format. Real-world programs vary, so treat these rules as the safest common ground rather than a guarantee:

  • Use one header row, with one column name per field.
  • Separate fields with a comma and end each record with a line break.
  • Wrap a field in double quotes if it contains a comma, a double quote or a line break.
  • Inside a quoted field, write a literal double quote as two double quotes.
  • Keep the same number of fields on every row, leaving a field empty rather than omitting it.
  • Save the file in UTF-8 so names with accents or non-Latin scripts survive.

The example below shows a company name that contains a comma, a note with quotation marks, and a contact with no company. Email and phone columns are left out to keep the example short, but they follow the same rules.

First Name,Last Name,Company,Notes
Ana,Ruiz,"Ruiz, Hale & Co.","Prefers ""evening"" calls"
Li,Chen,,Met at conference

When this file is read correctly, the second row has exactly four fields. The company is Ruiz, Hale & Co., and the note reads Prefers "evening" calls. Without the quotes, the comma in the company name would split it into two fields and push the note into a column that doesn't exist.

CSV versus TSV for contact data

TSV (tab-separated values) uses a tab character instead of a comma. Commas are common in company names, addresses and notes, but tabs rarely appear in contact data. A TSV file therefore often needs less quoting. The same data as TSV, with tabs between fields:

First Name	Last Name	Company	Notes
Ana	Ruiz	Ruiz, Hale & Co.	Prefers "evening" calls
Li	Chen		Met at conference
Aspect | CSV | TSV
Separator | Comma | Tab
Quoting needed for commas in values | Yes | Usually no
Import support in contact tools | Common | Less consistent; check the destination
Risk when edited in a plain text editor | Low | Tabs can be converted to spaces by some editors

Converting between the two is a structural change, not a cosmetic one. A converter has to parse quoted fields before swapping delimiters. A simple find-and-replace of commas with tabs will break any field that contains a comma. If you use a conversion tool, check that the output still has the same number of fields on every row.

Will the file stay usable after copying, opening or sharing?

Most problems appear when the file passes through a spreadsheet or an import screen, not in the file itself. The issues below are common enough to check for. Exact behavior depends on the program and version, and no specific destination was tested for this article.

  • Leading zeros and plus signs: some spreadsheet programs treat phone numbers or postal codes as numbers when opening a CSV. They may strip leading zeros, drop a leading plus sign or display long numbers in scientific notation. Saving again writes the altered value back to the file.
  • Encoding: a UTF-8 file can show garbled accented or non-Latin characters if the destination assumes a different encoding. Some programs expect a byte order mark at the start of UTF-8 files and others reject it. The destination's import instructions are the only reliable guide.
  • Regional separators: in locales where the comma is the decimal mark, some programs save or expect semicolons instead of commas. A file that looks correct on one computer may open as a single column on another.
  • Line breaks inside fields: multi-line addresses or notes are valid when quoted, but some importers handle them poorly. Flattening them to a single line is safer if you're unsure.
  • Header names: many contact tools map columns by header text. Download the destination's own sample or template file and copy its headers exactly, rather than guessing.

Pasting CSV text into a chat, email body or document usually keeps the characters but not the table. The recipient sees raw rows with commas. Some chat and email tools also wrap long lines or convert quote marks to curly quotes, which can break quoting if the text is later saved back to a file. Sending the file as an attachment avoids these changes.

Accessibility depends on how the file is opened. In a spreadsheet, assistive technology generally presents the data as a table with headers, which is workable. Opened as raw text, a screen reader may read every comma and quote mark, which is tedious for long files. If someone needs to read the contacts rather than import them, give them a plain list or a properly formatted table instead. This article has no tested results for specific screen readers.

A practical checking routine

  • Start from the destination's template or documented column list.
  • Format phone and postal code columns as text in the spreadsheet before entering or pasting data.
  • Save as CSV with UTF-8 encoding, keeping a copy of the original spreadsheet.
  • Open the saved file in a plain text editor and confirm quoting, field counts and special characters.
  • Import a small test file of two or three contacts first, then check every field in the destination before importing the full list.

Gaps in this review

No specific contact application, required header list, file size limit or test result was available for this article. Behavior described for spreadsheet programs and importers is general and varies by product, version and locale. Before relying on it, confirm against the destination's own documentation or a small test import. Nothing here should be read as a statement about how any tool stores or retains uploaded contact data. Check that separately in the provider's own policies.