Convert VCF to XML

Turn VCF files into XML. Objects become elements inside one root element and every value becomes text, with characters a tag name cannot hold turned into underscores.

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 one XML file.Your vCard data comes out as XML elements inside a single root element.

  1. What you get

    One XML file. Objects become elements inside one root element, and every value becomes text.

    Characters that a tag name cannot hold are turned into underscores in the element names. Escapes in the values are resolved.

  2. How lists and attributes work

    Keys starting with @ become attributes. When the value of such a key is a list or an object, it is written as JSON text. A key named #text becomes the element's own text.

    A list repeats its element, once for each item. An empty list therefore disappears from the output, and a list of lists is flattened into one run of repeated elements.

  3. When it stops

    The conversion stops with input_corrupted when the file could not be parsed.

VCF and XML.What each format is.

The formats

From · VCF

vCard

vCard contacts.

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

XML

XML documents and data.

Extensions
.xml
MIME type
application/xml
Kind
Text and data

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

terminal
$ cv convert report.vcf report.xml
$ cv convert report.vcf report.xml

Questions.What people ask about VCF to XML.

01OF 04

No. Every value becomes text in the XML.

It disappears. A list repeats its element once per item, so an empty list leaves no element.

No. This conversion has no options.

The VCF file could not be parsed, so no XML is made. For other routes from vCard, see every VCF conversion.

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