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›SIZE

SIZE — Label size

Declares label width and height in millimetres. TSPL measures media in mm while coordinates are in dots.

Engine status: Rendered

This command produces visible output in the preview.

Syntax

SIZE <w> mm, <h> mm

Example

SIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
PRINT 1

Open this example in the preview →

Open the validator →

Rendered example

CLS

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

Parameters

ParameterMeaning
w mmLabel width; with the mm suffix in millimetres, without a unit in inches
h mmLabel height, same unit rule; the preview converts at 8 dots per mm

Common mistake

Leaving out the unit: in TSPL a bare number means INCHES, so SIZE 100, 150 asks for a 100 × 150 inch label (the preview clamps it). Write SIZE 100 mm, 150 mm.

The same job in other languages

ZPL equivalent: ^PW · ^LL · EPL q · EPL Q · Language comparison

All TSPL commands

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

All TSPL commands