Barcodes

^B9UPC-E Barcode

Prints a compact UPC-E barcode for small packages.

Category
Barcodes
Syntax
^B9o,h,f,g,e

What ^B9 does

^B9 encodes UPC-E, the zero-suppressed 6-digit form of UPC-A used where space is tight. The field data is 6 digits and the printer adds the check digit.

Syntax

^B9o,h,f,g,e

Parameters

ParameterDescriptionValuesDefault
oOrientationN,R,I,BN
hBar height in dots
fPrint interpretation lineY,NY
gInterpretation line above codeY,NN
ePrint check digitY,NY

Example

^XA
^FO50,50^B9N,100,Y,N,Y^FD123456^FS
^XZ

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

Notes & tips

  • Field data is 6 digits.
  • UPC-E is a compressed representation of UPC-A.

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.