← All guides

40 × 30 mm label

The 40 × 30 mm label (1.57 × 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

DPIWidth (px)Height (px)
203 DPI320 px240 px
300 DPI472 px354 px
600 DPI945 px709 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
^PW320
^LL240
^FO50,50^A0N,40,40^FDEditorZPL 40 × 30 mm^FS
^XZ

Frequently asked questions

How many pixels does a 40 × 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 40 × 30 mm in inches?

The 40 × 30 mm label equals 1.57 × 1.18 inches (1 inch = 25.4 mm).

Related tools