vCard QR Code Generator

Published Updated

Encode a name, one phone number, one email, a company and a job title as a vCard 3.0 QR code. The sample card is 156 bytes and needs a 49 x 49 module code at the default level; the phone is written as typed, always with type CELL.

Form fields and card lines

The page writes the card with CRLF line ends. For Jane Doe at Acme Inc., Google Chrome 156 produced these lines:

FieldLine writtenDetail
First and last nameN:Doe;Jane;;; and FN:Jane DoeN is family name first; an empty last name gives N:;Jane;;;
CompanyORG:Acme Inc.Omitted when blank
Job titleTITLE:Product ManagerOmitted when blank
PhoneTEL;TYPE=CELL:+1 555 123 4567Not reformatted
EmailEMAIL:jane@example.comNo type given

VERSION:3.0 comes straight after BEGIN:VCARD, and END:VCARD closes the card.

Version 3.0 and the current standard

The current vCard specification, RFC 6350, describes version 4.0 and obsoletes RFC 2426, which defined 3.0. This page still writes 3.0. The N property in both versions holds five parts: family names, given names, additional names, prefixes and suffixes, separated by semicolons. The page fills the first two.

What each error correction level costs

Using the full sample card of 156 bytes, the qrcode library chose these sizes:

LevelVersionModules per side
L745
M (default)849
Q1161
H1265

The page's menu labels the levels as recovering 7%, 15%, 25% and 30% of damage. Denso Wave's error correction page says level M, at 15%, is the one most often selected.

Making a contact code

  1. Step 1

    Fill in the contact

    A first or last name is the only required field. The other four fields add a line each when they are not empty.

  2. Step 2

    Raise error correction only if needed

    Each step up from L to H makes the code denser. Size, margin and colors can be changed without changing what the code says.

  3. Step 3

    Download PNG or SVG

    PNG saves the canvas close to the chosen size (100 to 1000 pixels on the slider), with every module a whole number of pixels. SVG stays sharp at any print size, and Copy SVG puts the markup on the clipboard.

Contact code questions

Will my phone save the contact when it scans the code?

The output follows the vCard 3.0 layout of RFC 2426, but no phone was used to test this page. Scan the downloaded code with the devices your audience uses before printing a batch.

Why only one phone number and one email?

The form has one field for each. Extra numbers, a website, an address, a birthday and a photo are not part of the card. The general QR Code Generator encodes any text, so a hand-written card is possible there.

Does the label say CELL for a landline?

Yes. Every number is written as TEL;TYPE=CELL, whatever it is. The number itself is copied as typed, spaces and plus sign included, so write it in international form.

Why is my QR code so dense?

A card with every field filled in is 156 bytes. At level M that needs version 8, with 49 modules per side. A name alone is 63 bytes and fits version 4, with 33 modules, which scans more easily from a distance.

Are accents and commas handled?

Accented letters are written as typed, so José Müller stays intact. A comma, semicolon or backslash in a company or title gets a backslash in front, so Smith, Jones; Co is stored as Smith\, Jones\; Co.

Is the contact stored on a server?

No. The qrcode library draws the code inside the page. The card text exists only in your tab until you download the image.

Related Tools