Convert CSV to VCF on Mac
How CSV-to-vCard conversion works on a Mac, what it changes in your contact data, where it can go wrong, and when keeping the spreadsheet is the better choice.
If you have contacts in a spreadsheet and want them in the Mac Contacts app, an iPhone, or another address book, you will usually need to turn a CSV file into a VCF (vCard) file. This review explains what that conversion does to your data, where it tends to break, and how to decide whether it suits your purpose. No specific converter app was tested for this article, and no product claims are made about any particular tool.
Is converting CSV to vCard the right move?
Converting is a good fit when the goal is importing contacts into an address book. vCard is the format address books exchange, so each person becomes a real contact record with separate name, phone and email fields that the app can search, sync and dial.
The decisive tradeoff is that the conversion depends on column mapping. A converter has to decide which CSV column becomes the family name, which becomes the given name, and which phone column is mobile or work. If that mapping is wrong, the import still succeeds, but the data lands in the wrong fields. Check a sample of the output before importing a large file.
Keep the CSV, or plain delimited text generally, when you still need to sort, filter, deduplicate or bulk-edit the list, run a mail merge, or share the data with someone who will open it in a spreadsheet. A VCF file is awkward to edit by hand and is not meant for table-style review. Usually the best approach is to treat the CSV as the master copy and generate the VCF only for import.
What the conversion actually changes
This is a structural conversion. It does not reverse, mirror or restyle text. A CSV file is a table: one row per contact, with values separated by commas or another delimiter, and a header row naming the columns. A VCF file is also plain text, but each contact becomes a block of property lines that starts with BEGIN:VCARD and ends with END:VCARD. Names, numbers and addresses are stored as the same characters they were in the CSV. What changes is the structure around them.
- Columns become named properties, such as N (structured name), FN (display name), TEL and EMAIL.
- Structured fields are reassembled. N holds family name, given name, additional names, prefix and suffix, separated by semicolons.
- Certain characters are escaped. In vCard text values, commas, semicolons, backslashes and line breaks are written with a backslash so they are not mistaken for separators.
- Type labels may be added, such as TYPE=CELL on a phone number, if the converter knows which column means what.
- Long lines may be folded. The vCard specification wraps long lines by inserting a line break followed by a space, and readers rejoin them.
Here is a small illustrative input. The second contact's family name contains a comma, so it is quoted in the CSV.
First Name,Last Name,Phone
Ana,"Ruiz, Jr.",+1 555 0100
Zoë,Lindqvist,+1 555 0101
A correct vCard 3.0 conversion of the first row looks like this. The comma in the family name is escaped, while the CSV quotes are gone because they were part of the CSV syntax, not the data.
BEGIN:VCARD
VERSION:3.0
N:Ruiz\, Jr.;Ana;;;
FN:Ana Ruiz\, Jr.
TEL;TYPE=CELL:+1 555 0100
END:VCARD
The name Zoë should pass through unchanged, whether the ë is stored as one precomposed character or as an e followed by a combining diaeresis. Nothing in this conversion reorders characters, so combining marks and multi-code-point emoji stay intact. One edge case matters: when a converter folds long lines, the specification says it should not split a multi-byte UTF-8 character across the break. A poorly written converter that folds at a fixed byte count can corrupt accented names or emoji at that boundary. If your data includes non-Latin scripts or emoji, inspect a few long entries in the output.
Names in right-to-left scripts such as Arabic or Hebrew are stored in logical order in both formats. How they look on screen depends on the bidirectional display of the app showing them. The conversion itself does not change their order.
Common failure points before you even convert
- Encoding: the CSV should be UTF-8. Files saved in an older regional encoding can turn accented letters into garbled characters after conversion. A byte-order mark at the start of the file is harmless if the converter expects it, but it can corrupt the first column name if the converter does not.
- Delimiter: spreadsheet apps in some locales export with semicolons instead of commas. A converter expecting commas will read each row as a single column.
- Leading zeros and plus signs: opening a contact list in a spreadsheet can turn phone numbers into numbers, dropping a leading zero or plus sign. Format those columns as text before exporting.
- Embedded line breaks: a multi-line address inside one quoted CSV cell is valid CSV, but some simple converters split it into broken rows.
- Styled 'font' characters: if names were typed with Unicode lookalike letters, such as mathematical bold or script characters copied from a fancy-text generator, they carry into the contacts unchanged. Those characters are not regular letters, so search, sorting and screen readers may not treat them as the intended name. Replace them with plain letters in the CSV first.
Ways to do it on a Mac
There are three broad routes. Each has a different trust and control profile.
- Built-in import: the Contacts app imports vCard files from its File menu. Some versions have also offered direct import of delimited text files with a field-mapping step. Whether yours does, and how well it maps columns, should be checked in your own version, because no version-specific behavior was verified for this article.
- Third-party converter apps or websites: these can save time, especially with column mapping. No specific tool was evaluated here. Contact lists are personal data, so read a tool's actual privacy terms rather than relying on its design or marketing. Prefer tools that run locally if you can't confirm how an online service handles uploads.
- A short script: this gives full control over mapping and escaping and keeps the data on your machine. The cost is a little setup.
Below is a minimal Python 3 example for a CSV with First Name, Last Name, Phone and Email columns. On recent macOS versions, Python 3 may require installing Apple's command line developer tools first. The script escapes text values and writes one vCard 3.0 record per row. It does not fold long lines. Many importers accept unfolded lines, but that is not guaranteed for every destination. Adjust the column names to match your header row.
import csv, sys
def esc(v):
return (v.replace("\\", "\\\\").replace(";", "\\;")
.replace(",", "\\,").replace("\r\n", "\\n").replace("\n", "\\n"))
with open(sys.argv[1], newline="", encoding="utf-8-sig") as src, \
open(sys.argv[2], "w", newline="", encoding="utf-8") as out:
for row in csv.DictReader(src):
first, last = row.get("First Name", ""), row.get("Last Name", "")
out.write("BEGIN:VCARD\r\nVERSION:3.0\r\n")
out.write(f"N:{esc(last)};{esc(first)};;;\r\n")
out.write(f"FN:{esc((first + ' ' + last).strip())}\r\n")
if row.get("Phone"):
out.write(f"TEL;TYPE=CELL:{esc(row['Phone'])}\r\n")
if row.get("Email"):
out.write(f"EMAIL;TYPE=INTERNET:{esc(row['Email'])}\r\n")
out.write("END:VCARD\r\n")
Run it from Terminal with the input and output file names as arguments, for example: python3 convert.py contacts.csv contacts.vcf. Then open the VCF in a text editor and compare a few records against the original rows before importing.
Will the contacts stay usable after import and sharing?
If the conversion used plain characters and correct mapping, the result is ordinary contact data. Names can be searched, sorted, copied and edited in the address book like any manually entered contact, and assistive technology reads them as normal text fields inside the app. That is the main difference from decorative text transformations: nothing here is visual styling, so copy and paste returns the same characters you started with.
Compatibility limits are more about vCard versions and destinations than about the text itself:
- Version: vCard 3.0 is widely accepted. Version 4.0 is newer, and version 2.1 is older and uses a different approach to character sets. Some destinations handle one version better than others. Which versions a given app or service accepts should be checked in its own documentation.
- Multiple contacts per file: a single VCF can hold many cards. Some destinations may import only the first card or expect one card per file. This was not verified for any specific app.
- Duplicates: importing the same file twice usually creates duplicate contacts rather than updating existing ones. Back up your address book before a bulk import so you can roll back.
- Unmapped columns: notes, custom fields, groups and photos may not survive unless the converter maps them deliberately. Columns with no clear vCard property are often dropped without warning.
Keep a plain CSV alongside the VCF whenever someone else needs to review, correct or reuse the list, or when you may need to import into a different system later. The CSV is easier to inspect and fix, and you can regenerate the VCF from it at any time.
What this review could not confirm
No specific converter, app version or import destination was tested, so this article makes no claims about how a particular product maps fields, handles encodings, folds lines or treats your data. The vCard structure, escaping rules and CSV pitfalls described above follow the published formats. Behavior in your own Contacts app or target service should be confirmed with a small test file of three or four representative contacts, including one with an accented name and one with a comma in a field, before you convert the full list.