Works on this device
Vcard Validator
Paste vCard text or open a .vcf contact file. The validator checks it against vCard 3.0 (RFC 2426) and vCard 4.0 (RFC 6350) and lists each problem with its line number, its level and the rule it breaks. The file is read in this browser and is not sent anywhere.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Check.
Your result
How it was worked out
How to use this validator
- Choose Check pasted vCard text and paste one or more vCards, or open a .vcf file into the box. To check the bytes of a file exactly (UTF-8, a byte order mark, CR LF line ends), choose Check a .vcf file byte for byte.
- Choose Check.
- Read the result and the table of problems. Each row gives the line, the vCard (counted from 1), the level and the rule. The table "vCards in the text" lists each vCard with its lines, version and formatted name.
What is checked
- Lines: a line that starts with a space or a tab continues the line before it (folding); lines longer than 75 octets should be folded.
- Content lines:
group.NAME;PARAM=value:value. Names are letters, digits and -. A parameter is name=value; a value in double quotes may hold ; : and ,. A parameter without = (such asTEL;WORK:) is the vCard 2.1 form and an error. - Objects: BEGIN:VCARD and END:VCARD around each vCard, not nested, with only blank lines between them.
- VERSION: exactly one, 3.0 or 4.0. In 4.0 it must come right after BEGIN:VCARD. Version 2.1 is named and not checked further.
- Required: FN in both versions, and N in vCard 3.0.
- vCard 4.0 counts: at most one KIND, N, BDAY, ANNIVERSARY, GENDER, PRODID, REV and UID; MEMBER only when KIND is group.
- Values: N has 5 parts in 4.0 (at most 5 in 3.0), ADR 7 parts (at most 7 in 3.0), GENDER starts with M, F, O, N, U or nothing, PREF is 1 to 100, and a backslash in text stands only before \ , ; n or N.
- Names: properties and parameters that the RFC of the version does not define give a warning, unless they start with X-. Properties that vCard 4.0 removed (such as LABEL and MAILER) are named.
Errors and warnings
An error breaks a rule that the RFC states with MUST, or its grammar. A warning is a SHOULD (such as the length of a line), a name the RFC does not define, or a form that many programs read but the RFC does not use (such as CHARSET, ENCODING=BASE64 or a date with dashes in vCard 4.0).
Pasted text: the box turns every line end into LF, so line ends are checked only in the file part.
Worked example
The example has two vCards. The first is version 4.0 with FN, N, TEL, EMAIL and ADR and has no problems. The second is version 3.0: it has no N, which vCard 3.0 requires (an error on line 9, where it starts), and line 12 TEL;WORK;VOICE: has two parameters without = (two errors). The result is "Errors found" with 3 errors and no warnings.
Limits you should know
- vCard 2.1 and the jCard and xCard forms are not checked. Grouped vCards inside AGENT values are not read.
- The validator checks the form of the text. It does not check whether a phone number, address or email address is real, and it does not check every value type (such as every date and time form).
- Up to 500,000 characters of text or a file of 5 MB, and the first 1,000 problems.