← Guides & articles
ED
Eduard Diaz
IT technician at S-IE, an official Zebra partner · Updated

^BE · EAN‑13 barcode

Generates an EAN‑13 barcode.

Syntax and practical example

^BEo,h,f,g

Example: ^BEN,80,Y,N

^XA
^PW600
^LL400
^FO40,60^BY3
^BEN,100,Y,N^FD590123412345^FS
^XZ

Educational example; not a certified label or a physical print test. Sample text and codes stay the same in every language for comparison.

Expected result with ^BE

^FD contains the 12 digits 590123412345. The printer adds check digit 7, giving expected value 5901234123457. Module width is 3 dots and bars are 100 dots high; preserve white space on both sides.

What should I check if ^BE does not give the expected result?

Do not paste a complete 13-digit GTIN without adapting the data passed to ^BE. Validate the 12 input digits: automatic padding or truncation can produce a different number. This example does not allocate a commercial GTIN to your product.

Related commands

Zebra technical reference ↗

ED

About the author

Eduard Diaz

Eduard Diaz is an IT technician (development) at S-IE, an official Zebra partner with more than 20 years providing identification and labelling services. He builds and maintains EditorZPL to make working with ZPL and Zebra label printers easier.

s-ie.cat

Related tools