Skip to main content
Autype can embed QR codes in your documents using the :::qrcode directive. QR codes are rendered as images in the exported document.

URL QR Code

:::qrcode{type="url" size=150 align=center}
https://example.com
:::
You can also use the url: prefix:
:::qrcode{type="url" size=200}
url: https://autype.io/docs
:::
Both formats are equivalent. If the content doesn’t start with url:, the entire first line is used as the URL.

WiFi QR Code

Generate a QR code that lets users connect to a WiFi network by scanning:
:::qrcode{type="wifi" size=200}
ssid: MyNetwork
password: secret123
encryption: WPA
:::

WiFi fields

FieldRequiredValuesDescription
ssidYesStringNetwork name
passwordNoStringNetwork password
encryptionNoWPA, WEP, nopassEncryption type
hiddenNotrue, falseWhether the network is hidden

Example: Guest WiFi

:::qrcode{type="wifi" size=150}
ssid: GuestWiFi
password: guest2024
encryption: WPA
hidden: false
:::

vCard QR Code

Generate a contact card QR code:
:::qrcode{type="vcard" size=180}
firstName: John
lastName: Doe
organization: Acme Corp
phone: +1-555-123-4567
email: [email protected]
url: https://johndoe.com
address: 123 Main St, City, Country
:::

vCard fields

FieldRequiredDescription
firstNameNoFirst name
lastNameNoLast name
nameNoFull name (auto-split into first/last)
phoneNoPhone number
emailNoEmail address
organizationNoCompany / organization name
urlNoWebsite URL
addressNoPhysical address
noteNoAdditional note
The name field is a shortcut that splits on the first space into firstName and lastName. Use firstName and lastName separately for more control.

Minimal vCard

:::qrcode{type="vcard"}
firstName: Jane
lastName: Smith
email: [email protected]
phone: +49-123-456789
:::

Attribute reference

AttributeValuesDescription
typeurl, wifi, vcardQR code type (required)
sizeNumber (pixels)Size of the QR code image
errorCorrectionL, M, Q, HError correction level
alignleft, center, rightHorizontal alignment

Error correction levels

LevelRecoveryBest for
L (Low)~7%Clean environments, maximum data capacity
M (Medium)~15%Default, good balance
Q (Quartile)~25%Moderate damage tolerance
H (High)~30%Printed materials that may get damaged
If no size is specified, the QR code renders at a default size. For print documents, use size=200 or larger for reliable scanning.