vCard QR code: put your contact details in a scan
Make a vCard QR code that saves your name, phone and email in one scan. See the fields it stores, how each one grows the code, and when a link is better.
Every field you add to a vCard QR code makes the pattern denser, and a denser pattern needs more print space. That is the whole trade. A card with a name and a mobile number is version 6 (41 by 41 modules) in our generator; add an organisation, an email and a website and it is version 9 (53 by 53). You can make one in the Contact tab of the generator, and the measurements below will help you decide how much to put in.
A vCard QR code holds a contact card as plain text. When a phone scans it, the camera offers to save the person as a new contact, with nothing typed by hand. People use them on visiting cards, name badges, shop windows and email signatures. The wider picture of other kinds is in how to make a QR code.
What is inside the code
Here is the exact text our generator writes for a card with a name, an organisation, a mobile number, an email and a website:
BEGIN:VCARD
VERSION:3.0
N:Rao;Asha;;;
FN:Asha Rao
ORG:Example Traders
TEL;TYPE=CELL:+919876543210
EMAIL:asha@example.com
URL:https://example.com
END:VCARD
That is 154 bytes, which this site’s generator draws as version 9, 53 by 53 modules, at error correction M. The text follows vCard 3.0, defined in RFC 2426. The RFC requires three things in every card: VERSION (which must read 3.0), N (the structured name, family name first, then given name, then three more slots we leave empty) and FN (the name as it should display). Everything else is optional.
TYPE=CELL tells the contacts app which kind of number it is. ORG fills the company field. We do not write a job title, address or photo, because each would add bytes and most visiting-card codes do better without them.
The newer vCard 4.0 is defined in RFC 6350, which obsoletes RFC 2426 and requires VERSION:4.0 right after the opening line. Our generator writes 3.0. For the fields above we have no reason to expect a 4.0 card to behave differently, but we have not compared the two on real phones.
How each field grows the code
We built the same person up one field at a time and measured each step at level M, as the generator draws it:
| Card contents | Bytes | Version | Modules |
|---|---|---|---|
| Name and mobile | 87 | 6 | 41 by 41 |
| + Organisation | 107 | 7 | 45 by 45 |
| 130 | 8 | 49 by 49 | |
| + Website | 154 | 9 | 53 by 53 |
| Same fields with longer values (a longer company name, email and a deep website address) | 232 | 11 | 61 by 61 |
Denso Wave, the QR code’s inventor, notes that each version adds four modules to each side, from 21 by 21 for version 1 up to 177 by 177 for version 40. So going from the first row to the fourth takes you from 41 to 53 modules across. On a printed card that is the same space divided into more, smaller squares.
The error correction setting multiplies this. The five-field card at level L is version 7 (45 by 45), at M version 9, and at H version 12 (65 by 65). If you add a logo, the generator forces H, so a logo on a card like this means a 65 by 65 code. For a visiting card, we would skip the logo and keep M. QR code error correction explains the levels.
The longer-value row is the one to remember. The extra 78 bytes came from a longer company name, email address and website, not from new fields. One long URL does more damage than two short fields.
Four ways to keep it small
- Pick the fields that get used. A name, one mobile number and one email cover it. Drop the landline, the second email and the fax number.
- Shorten the website.
https://example.combeats a path with three folders, and you can send people there after they save you. - Use the short company name. “Example Traders” is fine; the registered name belongs on the invoice.
- Leave out the address. A street address is long, and Maps does a better job of it. A location code can sit beside the vCard if you need one.
The ZXing wiki’s Barcode Contents page describes a more compact alternative called MECARD, popularised by NTT DoCoMo. We wrote name, mobile, email and website as MECARD and measured 84 bytes, version 5 (37 by 37), against 134 bytes, version 8 (49 by 49), for the same four fields as a vCard. Our generator does not produce MECARD, and the page describes vCard as the standard format, if a verbose one. We would stay with vCard unless you control the phones that will scan it.
Characters that break a card
In a vCard, a comma and a semicolon have jobs: the semicolon separates the parts of a name and the comma separates list items. RFC 2426 says a semicolon inside a part must be escaped with a backslash, a comma inside a list item likewise, and a line break inside a value must be written as \n. A company called Rao, Iyer & Sons is written like this:
ORG:Rao\, Iyer & Sons
Our generator adds those backslashes for names and organisations, so type the real name. It does not escape the email or website fields, which rarely contain these characters. A card with that organisation, plus a name and mobile, was 109 bytes, version 7 (45 by 45) at level M.
Write phone numbers with the country code, +91 for India, and the generator keeps the plus and the digits. A number saved without a country code works until the first time someone calls from abroad.
What phones do with it
Scan with a phone camera and the phone offers to save the contact. That is the point, but the details are the part that varies. One QR vendor’s support page reports that Google Lens on Android sometimes does not transfer all the details, giving the website as its example, and suggests an iPhone or a dedicated scanner app on Android instead. We have not tested every phone, so scan your finished code on the models your customers carry and check each field after saving.
You can also check what is inside any card before you save it: the scanner on this site decodes on your device and shows the contact fields it found, and does not upload the picture.
Print the website and phone number in words beside the code. A person who cannot scan (or whose phone drops the website field) still has a way to reach you.
When a link is the better choice
A vCard is frozen on the day you print. Change your number or your email, and every printed card is out of date. If you reprint cards often, or hand out hundreds at a trade fair, link to a page you can edit instead:
https://example.com/asha
That is 24 bytes, version 2, 25 by 25 modules, against 53 by 53 for the vCard. The code is less than half as wide, which makes it easy to scan from a small card or across a table. The cost is that the person has to open the page and tap a save button there, if you build one.
A link also lets you see how many people used it, which a static vCard never can. If you add a tracking tag to the link you can count visits in a free analytics tool, and how to track QR code scans shows how. QR Gen, our paid sister product, adds dynamic codes that let you change the destination later and see scan counts by day without tags, which suits cards you plan to print in bulk. For a small batch, a plain link is enough.
Cards for business use have their own layout questions, such as where the code sits and how big it is on an 89 by 51 mm card; those are in QR codes on business cards.
What to put on a visiting card
For most people, this set is the best balance of size and use:
- Full name
- One mobile number with the country code
- One email address
- Your company’s short name
- A short website address
That is the card we measured at version 9, 53 by 53 modules. If you need a bigger set, switch to the link. Before you print, scan the proof with an iPhone and an Android phone and read every saved field on the contact screen.
Ready to try it? Free, no sign-up, made in your browser.
Make this code now