Convert YAML to VCF

Turn YAML files into vCard. One vCard 3.0 per record: name or full_name becomes the name, phone or mobile the phone, email the email, company the organization and address the address; other fields stay as their own properties.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

YAML records become vCard contacts.Each record turns into one vCard 3.0 in a single VCF file.

  1. What you get

    One VCard 3.0 for every record in the YAML file. The keys name or full_name become the name, phone or mobile the phone, email the email, company the organization and address the address.

    Any other field stays as its own property on the card. A record without a name takes its email or phone as the name.

  2. How the YAML is read

    A file with several documents becomes one list of contacts. Aliases are expanded, so a record that reuses another through an alias comes out in full.

    Comments are dropped. Values such as yes, on, 0755 and dates stay text, so they are written as they appear in the file.

    A merge key (<<) is not merged. It is kept as an ordinary key, so it comes through as its own property.

  3. When it stops

    If the YAML cannot be parsed, the conversion stops with input_corrupted. Fix the syntax in the source file, then convert it again.

    To go the other way, use VCF to YAML.

YAML and VCF.What each format is.

The formats

From · YAML

YAML

YAML configuration and data files.

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

vCard

vCard contacts.

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

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

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

Questions.What people ask about YAML to VCF.

01OF 04

The name comes from name or full_name. If a record has neither, its email or phone is used as the name.

company becomes the organization and address becomes the address. Fields without a matching vCard property stay as their own properties.

No. Comments are dropped.

No. Values such as yes, on, 0755 and dates stay text.

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