Barcodes

^BCCode 128 Barcode

Draws a Code 128 barcode — the standard for shipping labels.

Category
Barcodes
Syntax
^BCo,h,f,g,e,m

What ^BC does

^BC creates a Code 128 barcode, the most common 1D symbology on shipping and carrier labels. It encodes full ASCII compactly and supports automatic subset switching. Amazon FBA, UPS, and FedEx tracking barcodes are typically Code 128.

Syntax

^BCo,h,f,g,e,m

Parameters

ParameterDescriptionValuesDefault
oOrientationN, R, I, B
hBar height, dots (uses ^BY if omitted)
fPrint interpretation lineY, NY
gInterpretation line aboveY, NN
eUCC check digitY, NN

Example

^XA
^BY2,3,120
^FO50,50^BCN,120,Y,N,N^FD1Z999AA10123456784^FS
^XZ

Paste this into the free ZPL viewer to see it render, or convert it to PDF.

Notes & tips

  • Set height/width via ^BY before ^BC.
  • Field data goes in the ^FD that follows.

See the full ZPL command reference for all 92 documented commands.

Work with your labels, not just read about them

Zentralabel converts, previews, validates, and enriches ZPL labels right in your browser — free tools for one-offs, batch processing for scale.