Convert VCF to CSV

What converting a VCF file to CSV really changes, what can be lost, and how to check that contacts or variant records stay accurate and usable.

Turning a VCF file into CSV sounds like a simple format swap. It is actually a restructuring step. Whether the result is useful depends on which kind of VCF you have, what the CSV is for, and how much of the original structure the converter keeps. This review covers what the conversion does, where it tends to lose information, and when the original file should stay your working copy.

Evidence note: no test results, tool documentation or measurements for any specific converter were supplied for this article. The guidance below draws on the published structure of the formats involved and on general behaviour of delimited text. Any claim about a particular converter, contacts app or spreadsheet program has to be checked against that product's own documentation or a test on your own data.

First, which VCF do you have?

The extension VCF is shared by two unrelated formats, and searches for "vcf 2 csv" mix them up.

  • vCard (contact files): exported from phones, email clients and address books. Each contact sits between BEGIN:VCARD and END:VCARD, with lines such as FN, N, TEL, EMAIL and ADR.
  • Variant Call Format (genomics): produced by sequencing analysis pipelines. It starts with metadata lines beginning with ##, then a header line beginning with #CHROM, followed by tab-separated rows of variant records.

Open the file in a plain text editor and look at the first lines. Lines like BEGIN:VCARD mean contacts. Lines like ##fileformat=VCF mean genomic variants. The rest of this article mainly covers vCard, which is the more common reason for this search. A shorter section on Variant Call Format comes near the end.

Is converting VCF to CSV suitable for your purpose?

Converting to CSV is a good fit when you want to see, sort, deduplicate or bulk-edit contacts in a spreadsheet, or load them into a system that only accepts a column-based import. You get one row per contact and one column per field, which is much easier to scan and filter than a vCard file.

The main tradeoff is structure. A vCard can hold any number of phone numbers, emails and addresses per person, each with its own type labels, plus photos, notes and custom fields. A CSV has a fixed set of columns. Something has to give: extra values get dropped, merged into a single cell, or spread across numbered columns that the next program may not recognise.

Keep the original vCard as your working or archival copy when:

  • You are moving contacts between phones or address-book apps that both accept vCard. Converting to CSV and back adds a lossy round trip for no benefit.
  • Contacts have photos, multiple addresses or detailed type labels that you need to keep.
  • You want a backup. vCard is the more complete record.
  • You are unsure which columns the destination expects. A CSV with the wrong headers may import as empty or misplaced fields.

Recommendation: use CSV as a working or import copy that you create from the vCard, not as a replacement for it. Convert, check the result against a few known contacts, and keep the original file.

What the conversion actually changes

This is not a cosmetic change, such as a different font or display style. The stored text itself is rewritten. The converter parses each vCard property, decides which column it belongs in, and writes the values out as comma-separated fields. Quoting and escaping follow CSV conventions, such as those described in RFC 4180.

An illustrative example (made-up data) shows the mechanism:

BEGIN:VCARD
VERSION:3.0
FN:Ana Ruiz
N:Ruiz;Ana;;;
ORG:Ruiz & Co\, LLC
TEL;TYPE=CELL:+1 555 0100
TEL;TYPE=WORK:+1 555 0199
END:VCARD

A converter that maps these fields to named columns might produce:

Full Name,Last Name,First Name,Organization,Mobile Phone,Work Phone
Ana Ruiz,Ruiz,Ana,"Ruiz & Co, LLC",+1 555 0100,+1 555 0199

Several things happened in that example:

  • The semicolon-separated N value was split into separate name columns.
  • The vCard escape before the comma in the organisation name was removed. The value was then wrapped in double quotes, so CSV readers treat that comma as text, not as a column break.
  • The TYPE labels did not survive as data. They only decided which column each number went into.
  • The column headers are the converter's choice. Another tool might call them Phone 1 and Phone 2, or put both numbers in one cell.

Some vCard features need special handling, and converters differ in how they treat them:

vCard feature | What a CSV conversion may do | What to check
Multiple TEL, EMAIL or ADR entries | Keep the first only, merge into one cell, or add numbered columns | Count the values for a contact that has several
TYPE labels (home, work, cell) | Map them to column names or drop them | Make sure numbers landed in the right columns
Structured ADR (street, city, region, postal code, country) | Split into parts or join into one text cell | Look at a full address after conversion
Long lines folded across several lines | Should be unfolded into one value | Look for notes or addresses cut short
Quoted-printable or charset parameters (common in vCard 2.1) | Decode them, or leave the encoded text as is | Look for strings like =C3=A9 instead of accented letters
PHOTO or other embedded binary data | Usually dropped, or written as a very long text cell | Decide whether you need photos at all
Custom X- properties | Often ignored | Check any app-specific fields you rely on

Will the CSV stay readable and usable after you open, copy or share it?

CSV is plain text, so it opens in nearly any editor or spreadsheet. Most problems show up when a spreadsheet program reads it, or when another app imports it.

  • Character encoding: names with accents or non-Latin scripts can show up as garbled characters if the CSV is saved in one encoding and opened as another. UTF-8 is the safest default. Some spreadsheet programs only detect UTF-8 reliably when the file starts with a byte-order mark. Check how your program behaves rather than assuming.
  • Phone numbers and postal codes: spreadsheets may treat these as numbers. That can strip leading zeros or a leading plus sign, or switch long values to scientific notation. Importing those columns as text avoids this.
  • Formula injection: a cell that starts with =, +, - or @ may be read as a formula when the file is opened in a spreadsheet. Phone numbers that start with + are an everyday example of values that can be misread. When you share CSV files from sources you don't trust, keep this in mind.
  • Line breaks inside values: notes and addresses can contain line breaks. Correct CSV quoting keeps those values in one cell, but simpler tools may split the row.
  • Re-importing: each contacts service or CRM expects its own column headers. A CSV that looks fine in a spreadsheet can still import incorrectly. The import template for your target system was not part of the supplied evidence. Check the target's own import documentation, or test with two or three contacts first.

Because CSV is plain text, it does not cause the reading-order or screen-reader problems that styled or mirrored text can. Whether a table of contacts is easy to navigate with assistive technology depends on the program used to open it, not on the CSV itself. No test of a specific screen reader was available for this review. Plain CSV is also easy to search and edit, which is a main reason people convert in the first place.

Privacy when choosing a converter

Contact files hold personal data about other people. With an online converter, the file goes to someone else's server. A tool's design or its claims of being secure are not evidence of how it stores or deletes uploads. No privacy or retention documentation for any converter was supplied here. If you can't check a service's documented policy, convert on your own device instead, for example with a contacts app's export function, a spreadsheet program, or a local script.

If your file is a Variant Call Format file

A genomic VCF is already tab-delimited, so turning it into CSV is mostly about the delimiter and about flattening nested fields. The fixed columns (CHROM, POS, ID, REF, ALT, QUAL, FILTER) map to CSV directly. The INFO column holds many key=value pairs separated by semicolons. The per-sample columns hold colon-separated values described by the FORMAT column. A useful CSV usually means choosing which INFO keys and sample fields to pull out as separate columns.

  • The ## metadata header describes what each INFO and FORMAT key means. A plain CSV loses this unless you keep it somewhere else.
  • Records with several alternate alleles hold comma-separated values inside ALT and some INFO fields. In a CSV, those commas must be quoted or the rows split.
  • Large VCF files, especially compressed and indexed ones, can be too big for spreadsheet programs. Dedicated variant-processing tools are better suited than general-purpose converters.
  • For analysis pipelines, keep the original VCF as the source of record. Treat the CSV as an export for reporting or review.

A quick check before you rely on the CSV

  • Compare the number of contacts or records in the source and in the output.
  • Pick a few records with complex data (several phone numbers, accented names, long notes) and compare every field.
  • Open the CSV in the program you will actually use and check phone numbers, postal codes and special characters.
  • If you plan to re-import, test a small sample in the target system first.
  • Keep the original VCF unchanged.