Plain English

The barcode on almost every product in a shop outside North America — the international version of UPC. **You supply 12 digits; the printer auto-calculates the 13th (check digit).** Numeric-only — letters or symbols cause the field to be rejected. The full GTIN-13 / EAN displayed below the barcode is 12 input + 1 calculated.

When to use

For retail products sold internationally. If you have a GTIN-13 or EAN number with 13 digits already, supply only the first 12 — the printer recomputes the check digit. Supplying all 13 will likely fail validation.

Syntax

^BEo,h,f,g

Parameters

ParameterDescription
oRotation: N, R, I, B
hBar height in dots
fShow human-readable text: Y or N
gText above: Y or N

Example

^XA
^FO50,50^BY2^BEN,80,Y,N^FD590123412345^FS
^XZ

12 numeric digits in `^FD`. The printer adds the check digit automatically; the rendered barcode and human-readable text show all 13.

Try it in the playground View all ZPL commands