Skip to content

Printer command overview

Thermal printers are controlled through specific command sets rather than the driver model used by graphical printers.

CommandTypePrimary use
CPCLText commandsPortable label printing
ESCBinary commandsThermal receipt printing
ESC/POSBinary commandsPOS system printing
TSPLText commandsLabel and barcode printing
  • Text commands (CPCL/TSPL): Human-readable text that is easy to debug
  • Binary commands (ESC/ESC-POS): Compact hexadecimal byte sequences
  • CPCL: Parameters are separated by spaces
  • TSPL: Parameters are separated by commas
  • If the printer supports CPCL, prefer CPCL for readability
  • If the printer only supports TSPL, use TSPL
  • Use ESC/POS, the industry standard with the best compatibility

For command usage in each programming language, see the SDK overview: