ZPL Code 128 barcode example
Preview an editable Code 128 barcode written with Zebra ZPL.
Preview sends your code to Labelary to render the first label.
Your rendered label will appear here.![Rendered label]()
Edit the example, then click Preview label to render your changes.
How to use this tool
Change the barcode value
Edit ABC123456 in the ^FD field. Code 128 is useful for internal alphanumeric item and serial identifiers.
Control barcode size
^BY2 sets the module width to two dots. ^BCN,95,Y,N,N sets normal orientation, 95-dot bar height and human-readable text below. Allow room for quiet zones on both sides.
Check the result on real stock
Previewing helps identify clipping, but scan a printed sample with your intended scanner to check print contrast and barcode readability.
Related ZPL tools and guides
- Online ZPL viewer
- ZPL to PDF
- ZPL to PNG
- File viewer
- Label dimensions
- 4×6 template
- QR code example
- Print troubleshooting
- Bulk ZPL to PDF
- Bulk ZPL to PNG
- CSV to ZPL label generator
- Bulk Code 128 barcode label generator
- Bulk QR code label generator
- Sequential inventory label generator
- Merge ZPL files
- Split ZPL files
ZPL command reference: Zebra documentation. Rendering: Labelary API.