Plain English

Draws a QR code at the specified position. You control the error correction level, cell size, encoding mode, and rotation. QR codes can store URLs, text, and other data.

When to use

When you need a 2D barcode that can be scanned with a smartphone — URLs, asset IDs, or compact data encoding.

Syntax

QRCODE x,y,ECC,cell,mode,rotation,"data"

Parameters

ParameterDescription
xHorizontal position in dots
yVertical position in dots
ECCError correction: L (7%), M (15%), Q (25%), H (30%)
cellCell size in dots (1-10)
modeA = automatic encoding
rotation0, 90, 180, or 270 degrees
dataThe data to encode (in double quotes)

Example

QRCODE 50,50,M,5,A,0,"https://rfid.me"

QR code linking to rfid.me

Try it in the playground View all TSPL commands