Barcodes

^B8EAN-8 Barcode

Prints an EAN-8 barcode with the ^B8 command.

Category
Barcodes
Syntax
^B8o,h,f,g

What ^B8 does

^B8 encodes an EAN-8 symbol — the short, 8-digit version of EAN used on small retail packages. The field data must be exactly 7 digits; the printer calculates the 8th check digit automatically.

Syntax

^B8o,h,f,g

Parameters

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

Example

^XA
^FO50,50^B8N,100,Y,N^FD1234567^FS
^XZ

Provide 7 digits; the check digit is added by the printer.

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

Notes & tips

  • Requires exactly 7 numeric digits.
  • Use ^BY to change bar width before ^B8.

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.