^BE EAN-13 Barcode
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.
^BEo,h,f,g
^BE parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
oorientationp. 109 |
Direction in which the barcode is rotated. |
|
The current |
hbarcode height (in dots)p. 109 |
Height of the bars in dots. |
|
The height set by |
fprint interpretation linep. 109 |
Whether the human-readable text of the data is printed with the barcode. |
|
Y
|
gprint interpretation line above codep. 109 |
Whether the interpretation line is printed above the barcode instead of below it. |
|
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
p. 190^FDto 3072 bytes and cannot contain the command prefix characters ^ and ~ directly. -
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
pp. 109, 110, 1591^BEto switch the check digit on or off. -
Note
The guide points to Interleaved 2 of 5 for UCC and EAN 14.
p. 109
^BE example
^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.