Bottle label template in ZPL (drinks)
A bottle label in ZPL is a tall layout with the brand, the product and volume, an ingredients line, a best-before date and an EAN-13 barcode. Copy the 2 × 4 in template below and change the fields.
Aktualisiert am 2026-11-01 · Renders made with the OpenZPL engine
Im Viewer öffnenWhat goes on a bottle label
- The brand and product name, centered, with the volume (500 ml, 33 cl).
- An ingredients line and a best-before date with a lot code.
- An EAN-13 barcode (
^BE) for retail, and the producer's name and place. - Size: a tall label like 2 × 4 in wraps around a bottle; a small can label is nearer 2 × 2 in.
2 × 4 in bottle template
A reverse-printed brand header, product, volume, ingredients, best-before, lot and an EAN-13, laid out for 406 × 812 dots:

^XA ^CI28 ^PW406 ^LL812 ^FO20,30^GB366,120,120^FS ^FO20,58^A0N,64,64^FB366,1,0,C^FR^FDRIVERSIDE^FS ^FO0,180^A0N,34,34^FB406,1,0,C^FDCraft Lemonade^FS ^FO0,224^A0N,26,26^FB406,1,0,C^FDStill - Natural flavour^FS ^FO0,268^A0N,30,30^FB406,1,0,C^FD500 ml^FS ^FO40,320^GB326,2,2^FS ^FO40,344^A0N,24,24^FDIngredients: water, lemon juice,^FS ^FO40,374^A0N,24,24^FDcane sugar, natural flavour.^FS ^FO40,420^A0N,24,24^FDBest before: 11/2027^FS ^FO40,454^A0N,24,24^FDLOT RL-1126^FS ^BY2,2,120 ^FO80,500^BEN,120,Y,N^FD400638133393^FS ^FO40,660^A0N,22,22^FB326,2,2,C^FDRiverside Drinks Co., Austin TX^FS ^XZ
The brand sits in a filled ^GB box with ^FR (field reverse) so it prints white on black. The centered lines use ^FB406,1,0,C; widen or move them to fit the curve of your bottle.
Render it from your code
curl https://api.openzpl.com/v1/printers/8dpmm/labels/2x4/0/ \ --data-binary @label.zpl > label.png
Every template on this page renders through the same API. Send the ZPL as the request body and get a PNG or PDF back; see the API docs and ZPL to PDF.
Fragen
How do I print white text on a black header?
Draw a filled box with ^GB and print the text over it with ^FR (field reverse), as the brand header does here. See ^GB and ^FR.
What size label fits a bottle?
A tall label, often 2 × 4 in or 4 × 3 in, wrapped around the bottle. Keep key text and the barcode within the flat part so the curve doesn't distort the scan.