A digital contact card QR code works when the payload is a valid vCard and fails when it is a loose collection of fields. The difference is a handful of structural lines and a rule about escaping. This guide builds a working vCard 3.0 payload, explains why 3.0 is the safer choice for print, and shows how to verify that a scan really saves a contact rather than displaying raw text.
The Structure of a vCard 3.0 Payload
vCard 3.0 is specified in RFC 2426. Every payload begins with BEGIN:VCARD, declares VERSION:3.0, contains one property per line, and ends with END:VCARD. Missing any of those three structural lines is the most common cause of a raw-text scan.
BEGIN:VCARD
VERSION:3.0
FN:Arvind Sharma
ORG:QRPress
TITLE:Designer
TEL;TYPE=WORK,VOICE:+912226543210
EMAIL;TYPE=WORK:hello@example.com
URL:https://qrpress.in
END:VCARD
FN is the formatted name and should be present. TEL accepts type parameters such as WORK, CELL and PREF. You can include more than one TEL line. Keep the number in global form with a country code, because a local number saved in a contact is useless when the owner travels.
Why 3.0, Not 4.0
vCard 4.0 (RFC 6350) is newer and adds fields, but support is uneven across older phones and desktop contact clients. Some readers mangle the extra fields; others ignore the card entirely.
A printed code is expensive to change. It might sit on a business card, a conference badge or a sign for two years. Choose the version that imports on the widest range of devices, which is still 3.0 for a static printed code.
If you need a field that only exists in 4.0, put it on a link to a hosted profile instead of forcing the version. The QR code stays compatible and the extra detail stays updateable.
Escaping and Encoding
Three characters matter inside a value: the comma, the semicolon and the backslash. A semicolon separates components, so a literal semicolon in a value must be written as \;. A comma separates type parameters, so a literal comma becomes \,. A backslash becomes \\.
The ADR property has seven components separated by semicolons: PO box, extended address, street, locality, region, postcode and country. Empty components still need their semicolons. ADR;TYPE=WORK:;;221B Baker Street;London;;NW1 6XE;United Kingdom is valid; dropping the empty fields shifts the city into the wrong slot.
Use UTF-8 for non-ASCII names. The QR standard's byte mode handles it, and modern readers display it correctly. Line breaks in the payload should be CRLF, though most generators and readers tolerate a plain newline. Use a generator that builds the payload for you rather than typing the escapes by hand.
One more practical point: long payloads enlarge the grid. Include the fields a contact needs, not every field available. A shorter card prints smaller and scans farther.
What the Phone Does on Scan
Modern iPhone and Android camera apps recognise a vCard and show an Add to Contacts prompt with the fields filled in. Some third-party scanners only display the raw text, which is an app limitation rather than a broken code. Test with the native camera on both platforms.
The scan does not save the contact automatically; the user taps Add. That is deliberate and avoids filling a contacts list with accidental scans.
A static vCard cannot be edited after printing. If the phone number or title changes, regenerate the code and reprint the card. A dynamic code can point at a hosted profile you can update, but it needs a connection and a service that stays online. The static vs dynamic comparison covers the trade-off.
Verify the Import, Not Just the Scan
- Scan the proof with an iPhone and confirm the contact preview shows the correct name and number.
- Scan with an Android phone and confirm the same.
- Tap Add and open the saved contact to check the fields, especially ADR and multiple phone numbers.
- Scan at a slight angle and from 20 cm, the way a card is actually held.
- If the scanner shows raw text, decode the payload and check BEGIN:VCARD, VERSION:3.0 and END:VCARD.
Do not put information in the card that you would not hand to a stranger. A vCard is plain data in the QR pattern; anyone who scans it gets the whole card.
