DPI & Dots Calculator

Convert between mm, inches and printer dots at 152, 203, 300 and 600 dpi. For ZPL positions, barcode sizes and label layouts.

Printer resolutionDotsmminDot size
152 dpi · 6 dpmm300501.9690.1667 mm
203 dpi · 8 dpmm400501.9690.125 mm
300 dpi · 12 dpmm600501.9690.0833 mm
600 dpi · 24 dpmm1200501.9690.0417 mm

How it is calculated

Label printers work in dots per millimetre (6, 8, 12 or 24). The dpi values they are sold with are rounded: a “300 dpi” printer has 12 dots/mm, which is 304.8 dpi.

So every length is converted to mm first (1 in = 25.4 mm) and multiplied by dots/mm. The result is rounded down to whole dots, because a printer cannot print part of a dot.

dots = ⌊ mm × dpmm ⌋ · mm = in × 25.4