^BE EAN-13 Barcode

Barcodes ZPL caret command

Prints an EAN-13 barcode from exactly 12 characters of field data; the guide describes it as similar to UPC-A and used in retail in Europe and Japan.

Format ^BEo,h,f,g

^BE parameters

Parameters of ^BE
ParameterMeaningAccepted valuesDefault
oorientationp. 109

Direction in which the barcode is rotated.

  • Nnormal
  • Rrotated 90 degrees (clockwise)
  • Iinverted 180 degrees
  • Bread from the bottom up, 270 degrees

The current ^FW value.

hbarcode height (in dots)p. 109

Height of the bars in dots.

1 to 32000 dots

The height set by ^BY.

fprint interpretation linep. 109

Whether the human-readable text of the data is printed with the barcode.

  • Yprint the interpretation line
  • Ndo not print it
Y
gprint interpretation line above codep. 109

Whether the interpretation line is printed above the barcode instead of below it.

  • Yabove the code
  • Nnot above the code
N

^BE notes and gotchas

  • Gotcha

    The field data must be exactly 12 characters: ZPL II cuts longer data down or pads shorter data with zeros on the left to reach that length. The guide does not say which end is cut when data is too long.

    p. 109
  • Interaction

    Field data is limited by ^FD to 3072 bytes and cannot contain the command prefix characters ^ and ~ directly.

    p. 190
  • Note

    The print ratio is fixed.

    pp. 109, 1587
  • Note

    The guide says the 13th digit is encoded into the parity pattern of the six left-hand digits and, together with the 12th digit, represents a country code.

    p. 109
  • Note

    For JAN-13 (the Japanese application of EAN-13) the first two non-zero digits sent to the printer must be 49.

    p. 109
  • Note

    The code uses the Mod 10 check-digit scheme for error checking. There is no parameter in ^BE to switch the check digit on or off.

    pp. 109, 110, 1591
  • Note

    The guide points to Interleaved 2 of 5 for UCC and EAN 14.

    p. 109

^BE example

example.zplZPL
^XA
^FO40,40^BEN,90,Y,N^FD123456789012^FS
^XZ

An EAN-13 barcode from 12 digits of data, not rotated and 90 dots high, with the interpretation line printed below it.

Guides that use ^BE

BarcoderX is a .NET SDK for thermal labels and barcodes. See the barcode types it covers.

Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 68, 109, 110, 142, 148, 190, 208, 1587, 1591.

Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.