Pular para o conteúdo

Name badge template in ZPL

A name badge in ZPL has an event header, the attendee's name large and centered, their company and role, and often a QR code for check-in. Copy the 4 × 3 in template below and change the fields.

Atualizado 2026-11-01 · Renders made with the OpenZPL engine

Abrir no visualizador

What goes on a name badge

  • An event header across the top, often reverse-printed so it stands out.
  • The attendee's name, the largest element, centered.
  • Company and role, smaller, below the name.
  • A QR code (^BQ) for check-in or to share a contact.
  • Size: 4 × 3 in is a common badge size; adjust to your badge holder.

4 × 3 in name badge template

A reverse-printed event header, a large centered name, company, role and a QR code, laid out for 812 × 609 dots:

4 by 3 inch event name badge with a reverse-printed header, a large centered name, company, role and a QR code
4 × 3 in label at 203 dpi (8 dpmm) · 812 × 609 px · Abrir no visualizador
^XA
^CI28
^PW812
^LL609
^FO40,40^GB732,70,70^FS
^FO0,54^A0N,40,40^FB812,1,0,C^FR^FDOpenZPL Dev Conf 2026^FS
^FO0,180^A0N,30,30^FB812,1,0,C^FDHELLO, my name is^FS
^FO0,240^A0N,90,90^FB812,1,0,C^FDSAM RIVERA^FS
^FO0,350^A0N,40,40^FB812,1,0,C^FDOpenZPL Inc.^FS
^FO0,404^A0N,32,32^FB812,1,0,C^FDStaff - Engineering^FS
^BY2,2,10
^FO346,450^BQN,2,5^FDQA,https://openzpl.com/attendee/sam-rivera^FS
^XZ

Everything is centered with ^FB812,1,0,C. The name uses a 90-dot font; shorten it for longer names or let the field block wrap to a second line.

Render it from your code

curl https://api.openzpl.com/v1/printers/8dpmm/labels/4x3/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.

Perguntas

How do I center text on a badge in ZPL?

Give the field a block the width of the label with centered justification: ^FO0,y^FB812,1,0,C before the ^FD. The text then centers across the 812 dots. See ^FB.

Can the badge QR code check people in?

Yes — encode a URL or an attendee ID in the QR field and scan it at the door. Point it at your own check-in system; see QR code.

Compartilhar este guia

Sources

Feedback