Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›ZPL Command Matrix›^BS

^BS — UPC/EAN Extensions

Prints the two- or five-digit UPC/EAN add-on symbol used mainly by publishers (ISBN) next to UPC-A and UPC-E barcodes.

Syntax^BSo,h,f,g
In Labelixa's previewDrawn in the preview

What it does

The extension is a separate barcode with a fixed print ratio, designed for UPC-A (^BU) and UPC-E (^B9). Its data is exactly two or five digits: the printer truncates longer data or pads it on the left with zeros.

You place it next to the main code yourself, with its own ^FO, so that the composite stays within the UPC specification. The guide recommends an extension 27 dots (0.135 in) shorter than the main code — a 183-dot UPC-A takes a 155-dot extension.

In the preview

Labelixa's preview draws this command.

Example

^XA
^FO100,100^BY2
^BSN,155,Y,Y
^FD04414^FS
^XZ

A five-digit extension 155 dots high, with the interpretation line above it.

Parameters

ParameterDescriptionValuesDefault
oorientationN · R · I · B^FW
hbarcode height in dots1–32000^BY
fprint the interpretation lineN · YY
gprint the interpretation line above the codeN · YY

Source

Zebra ZPL II Programming Guide (P1134473-11EN Rev A), page 137. Zebra guide page →

^BU · ^B9 · ^BE · ^BY

ZPL commands list and reference →

Try ZPL in the online viewer