Skip to content

ZPL barcode generator

Pick a symbology, type the data and copy the ZPL: this generator writes the ^BY and barcode command for Code 128, Code 39, EAN-13, EAN-8, UPC-A, UPC-E, Interleaved 2 of 5, QR, Data Matrix, PDF417 and Aztec (^BO), and draws the label as you type.

1Barcode

Label

2Preview and ZPL

Open in the viewer

How to use it

  1. Pick the symbology and type the data to encode.
  2. Set the bar width and height, or the magnification for 2D codes.
  3. Check the preview, then copy the ZPL or open it in the viewer to add the rest of the label.

Barcode guides

Questions

What does ^BY do?

^BY sets the module width (the narrowest bar, in dots) for the barcodes that follow it, and the default bar height. A wider module makes the barcode bigger and easier to scan.

Which barcode should I use on a shipping label?

Code 128 for tracking and reference numbers, because it packs letters and digits densely; GS1-128 when a carrier or retailer asks for it; and a QR or Data Matrix code for URLs or long data.

Why doesn't my EAN-13 or UPC-A print?

They take digits only, in a fixed count: 12 for EAN-13 and 11 for UPC-A. The printer adds the check digit, so send it without it or with the correct one.

Feedback