Skip to content

^BZ POSTAL

US postal barcodes: POSTNET, PLANET and Intelligent Mail.

^BZ prints US postal barcodes: POSTNET by default, PLANET with type 1 and USPS Intelligent Mail with type 3, which takes 20 to 31 digits of tracking and routing code.

Barcodes · Updated 2026-10-20

Syntax

^BZo,h,f,g,t

Parameters

ParameterWhat it doesValues
oRotation.N, R, I, B
hBar height, in dots.default: ^BY's
fHuman-readable line.Y or N; default Y
gPut that line above the code.Y or N; default N
tPostal code type.0 = POSTNET, 1 = PLANET, 2 = local postal, 3 = USPS Intelligent Mail; default 0

Common mistakes

  • Intelligent Mail (t = 3) takes 20, 25, 29 or 31 digits: the tracking code plus the routing ZIP.

Example

Edit the code and the label redraws. This is the same engine as the API.

Try it

Preview

100%
Output of this example
^BZ example rendered by the OpenZPL engine
4 × 3 in at 203 dpi, rendered by the OpenZPL engine when this page was published.

Questions

What does ^BZ do in ZPL?

^BZ prints US postal barcodes: POSTNET by default, PLANET with type 1 and USPS Intelligent Mail with type 3, which takes 20 to 31 digits of tracking and routing code.

What is the syntax of ^BZ?

^BZo,h,f,g,t

What should I watch out for with ^BZ?

Intelligent Mail (t = 3) takes 20, 25, 29 or 31 digits: the tracking code plus the routing ZIP.

Related commands

Share this command
Feedback