Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›All TSPL commands›QRCODE

QRCODE — QR code

Draws a QR code; error-correction level, cell size, encoding mode and rotation are read from the parameters.

Engine status: Partially rendered

The command is drawn but some of its parameters are ignored; the detail is in the note below.

Syntax

QRCODE x, y, ecc, cell, mode, rot, "data"

Example

SIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
QRCODE 100, 400, M, 6, A, 0, "https://..."
PRINT 1

Open this example in the preview →

Open the validator →

Rendered example

QRCODE 100, 400, M, 6, A, 0, "https://..."

Output of the example above in our renderer (203 dpi). Not verified on a physical printer.

Parameters

ParameterMeaning
x, yTop-left corner of the QR code, in dots
eccError-correction level L, M, Q or H; other values fall back to M
cellModule (cell) size in dots
modeEncoding mode letter; accepted but not used by the Labelixa preview
rotRotation in degrees clockwise: 0, 90, 180 or 270
"data"QR content in double quotes

Common mistake

Leaving the data unquoted: fields are split at commas outside quotes, so an unquoted URL that contains a comma is cut at the first comma. Always quote the data.

The same job in other languages

ZPL equivalent: ^BQ · Language comparison

All TSPL commands

SIZE · GAP · REFERENCE · CLS · TEXT · BARCODE · BOX · BAR · BITMAP · PRINT · DIRECTION · DENSITY · SPEED · OFFSET · SET · CODEPAGE · BLINE

All TSPL commands