50 × 30 mm label
The 50 × 30 mm label (1.97 × 1.18 inches) is one of the most common formats in thermal printing. Here are its exact dimensions in dots for each DPI plus a ready-to-use ZPL example.
Dimensions in pixels (dots) per DPI
| DPI | Width (px) | Height (px) |
|---|---|---|
| 203 DPI | 400 px | 240 px |
| 300 DPI | 591 px | 354 px |
| 600 DPI | 1181 px | 709 px |
Dots are the pixels the printer uses. They are calculated by multiplying inches by the DPI.
How to define this label in ZPL
Use ^PW for the print width and ^LL for the label length, both in dots. Match the DPI to your printer so the scale is exact.
^XA
^PW400
^LL240
^FO50,50^A0N,40,40^FDEditorZPL 50 × 30 mm^FS
^XZFrequently asked questions
How many pixels does a 50 × 30 mm label have?
It depends on the DPI: the higher the DPI, the more dots. See the table above for 203, 300 and 600 DPI.
What is 50 × 30 mm in inches?
The 50 × 30 mm label equals 1.97 × 1.18 inches (1 inch = 25.4 mm).
