Convert VCF to YAML

Turn VCF files into YAML. An array with one object per contact, keyed by property name with its parameters, such as TEL;TYPE=CELL, so each kind of phone or address gets its own key and a repeated one becomes a list.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop VCF files on the dialor turn it to pick what to do

Contacts as a YAML list.Each contact becomes one entry, with its properties as keys.

  1. What you get

    One YAML file with an array. Each contact in the VCF is one object in that array, and each property is a key named after the vCard property.

    Parameters stay in the key. A cell phone is stored under a key such as TEL;TYPE=CELL, so each kind of phone or address gets its own key. If a contact has the same property more than once, the values become a list.

  2. How values are written

    Escapes in the vCard text are resolved, so you read the plain text and not the escaped form.

    Names, organizations and addresses keep their semicolon-separated parts. They are not split into separate fields.

  3. When it fails

    A file that cannot be parsed stops with input_corrupted. The conversion produces one file and has no options to set.

    To go the other way, use YAML to VCF.

VCF and YAML.What each format is.

The formats

From · VCF

vCard

vCard contacts.

Extensions
.vcf .vcard
MIME type
text/vcard
Kind
Text and data
To · YAML

YAML

YAML configuration and data files.

Extensions
.yaml .yml
MIME type
application/yaml
Kind
Text and data

In your code.The same VCF to YAML conversion through the API, for your app or your agent.

terminal
$ cv convert report.vcf report.yaml
$ cv convert report.vcf report.yaml

Questions.What people ask about VCF to YAML.

01OF 04

As one object in an array. The keys are the vCard property names, with their parameters when there are any.

Each kind of phone gets its own key, such as TEL;TYPE=CELL. A property that repeats under the same key becomes a list.

No. Names, organizations and addresses keep their semicolon-separated parts as they are in the vCard.

The file could not be parsed. The conversion stops with input_corrupted in that case.

More conversions.Other ways in and out of VCF and YAML.