What is TSPL?

TSPL (TSC Printronix Printer Language) is the command language for TSC Auto ID and Printronix thermal label printers. It controls label sizing, text placement, barcode generation, graphic drawing, and RFID tag encoding via plain-text commands sent to the printer.

TSPL commands are line-based, human-readable instructions. Labels typically begin with SIZE and GAP commands to define media dimensions, use CLS to clear the image buffer, then add content with commands like TEXT, BARCODE, and BOX, and finish with PRINT.

Used for: Shipping and logistics labels, warehouse management, retail price tags, healthcare specimen labelling, manufacturing work-in-progress tracking, and RFID smart label encoding.

Key commands

CommandPurpose
SIZESet label width and height
GAPSet gap distance between labels
CLSClear image buffer
TEXTDraw text at a position
BARCODEDraw a 1D barcode (Code 128, Code 39, EAN, etc.)
QRCODEDraw a QR code
BOXDraw a rectangle / box
BARDraw a solid bar / line
DIRECTIONSet print direction
PRINTPrint the label (with quantity)
RFIDWrite data to RFID tag

TSC and Printronix printers

TSC Auto ID Technology is a major thermal printer manufacturer. Their product lines include the TTP series (desktop), MH series (industrial), and Alpha series (mobile). Printronix, now part of TSC, adds industrial RFID-capable models like the T6000e and T800 series. These printers support print-and-encode workflows for UHF RFID smart labels.

TSPL vs ZPL vs SBPL

FeatureTSPL (TSC)ZPL (Zebra)SBPL (SATO)
Command styleLine-based keywords^ caret prefixedESC (0x1B) prefixed
Label sizeSIZE w,h^PW / ^LLESC+A1
Clear bufferCLS^XA (implicit)ESC+A
TextTEXT x,y,...^FO+^FDESC+H/V+ESC+X
BarcodeBARCODE^BCESC+BG
PrintPRINT n^XZESC+Q+ESC+Z
RFIDRFID^RFESC+IP0

Try it