Skip to content

Printing and sizes

Label printer at 203 or 300 dpi — the smallest barcode you can print

A label printer prints whole dots, and a barcode has dimensions set by a standard. We work out the smallest EAN-13, GS1-128 and QR code you can print at 203, 300 and 600 dpi, and how to set the generator so the bars come out even.

6 min read

The first number in a label printer's specification is its resolution: 203, 300 or 600 dpi. Sellers usually describe it as "print sharpness". For a barcode it means something more specific. Resolution decides which bar widths the printer can print at all, and so how small a code fits on a label without leaving the standard.

Every number in this guide is worked out from the ranges our generator enforces and checked by a test. None of it is copied from a brochure.

A printer prints whole dots

The head of a thermal printer is a row of tiny heating elements. At 203 dpi there are 203 of them to the inch, so one dot is about 0.125 mm wide. At 300 dpi a dot is about 0.085 mm, at 600 dpi about 0.042 mm.

A printer cannot print half a dot. Every bar is one, two, three or more whole dots wide. You can see this in the language Zebra printers are driven with: a ZPL command gives the module width of a barcode in dots, as a whole number from 1 to 10.

The narrowest bar of a code is called the module and is written as X. All other bars and spaces are multiples of it. If X is not a whole number of dots, the printer has to round. Some bars that should be equal come out wider, others narrower. The eye will not notice, but a scanner measures exactly those proportions. Uneven bars mean a lower print quality grade and a code that the checkout reads on the second or third try.

An example: EAN-13 at nominal size

An EAN-13 on a product sold in shops has a nominal X = 0.330 mm. According to the GS1 tables it may be reduced to 0.264 mm and enlarged to 0.660 mm, that is from 80 to 200 percent.

On a 203 dpi printer, 0.330 mm is 2.6 dots. The printer has to choose 2 or 3 dots, and does so bar by bar. Two dots are 0.25 mm, below the allowed minimum. Three dots are 0.375 mm, an enlargement of about 14 percent, within the standard.

The conclusion surprises many people: a 203 dpi printer cannot print a correct EAN-13 at nominal size. The smallest correct one has X = 0.375 mm and is about 42.4 mm wide with its quiet zones instead of 37.3 mm.

On a 300 dpi printer, 0.330 mm is 3.9 dots. Four dots make 0.339 mm, about 103 percent of nominal, and a code about 38.3 mm wide. Practically the nominal size.

Table: the smallest code in whole dots

Code203 dpi300 dpi600 dpi
EAN-13, UPC-A (min. 0.264 mm)3 dots = 0.375 mm4 dots = 0.339 mm7 dots = 0.296 mm
GS1-128 (min. 0.495 mm)4 dots = 0.500 mm6 dots = 0.508 mm12 dots = 0.508 mm
Code 128, module about 0.25 mm2 dots = 0.250 mm3 dots = 0.254 mm6 dots = 0.254 mm
ITF-14 nominal (1.016 mm)8 dots = 1.001 mm12 dots = 1.016 mm24 dots = 1.016 mm
QR code, module about 0.5 mm4 dots = 0.500 mm6 dots = 0.508 mm12 dots = 0.508 mm

A few things follow from it:

  • Logistics codes do not need 300 dpi. GS1-128 and ITF-14 for cartons have large modules, and a 203 dpi printer prints them without compromise. For shipping and warehouse labels 203 dpi is enough.
  • Small product codes gain from 300 dpi. If an EAN-13 has to fit on a small label or pack, 300 dpi lets you go down to nominal size. At 203 dpi the code will always be a dozen or so percent larger.
  • 600 dpi is for very small labels, for example on electronics or vials. For a typical product label it is paying for more than you need.

QR and Data Matrix codes

Two-dimensional codes have the same problem, in two directions. A module, one small square of the code, should also be a whole number of dots. At 203 dpi good values are 0.375 mm (3 dots) and 0.500 mm (4 dots), at 300 dpi 0.339 mm (4 dots) and 0.508 mm (6 dots).

A QR code meant to be scanned with a phone should be larger anyway than the printer's limits would allow. How large depends on the distance it will be scanned from; the QR code check tells you. Data Matrix on products and in healthcare has dimensions in the GS1 tables that depend on the application, so check the table for your sector before printing.

Setting the generator for your printer

  1. Check your printer's resolution. It is in the model's specification, often also on the rating plate or on a configuration printout, which a label printer can usually be asked to print (the manual says how).
  2. Enter the module from the table. In the EAN-13 generator the "Module width X" field takes an exact value: 0.375 for 203 dpi, 0.339 for 300 dpi. The generator shows the code's dimensions in millimetres straight away.
  3. Download PDF or SVG. These are vector formats: the printer driver turns them into dots itself, and since X is a whole number of dots, the bars come out even.
  4. Print at 100 percent. "Fit to page" or "fit to label" changes X and undoes the whole calculation. It is the most common mistake, described in more detail in the guide on printing labels.
  5. Scan the first label, ideally with the scanner that will really read it. Without one at hand, check it from a photo with the barcode reader.

A PNG file can be printed too, but it is easier to go wrong. Our generator gives each module a whole number of pixels and writes a resolution into the file that matches the size in millimetres. If that resolution differs from the printer's, though, the driver rescales the image and the pixels no longer land on dots. For label printers PDF is the safer choice.

What about label software?

Label design programs, supplied with printers or bought separately, draw the codes themselves, without our file. The rule is the same: look in the code settings for the module width or narrowest bar and enter the value from the table above.

If the program gives the module width in dots, convert it: at 203 dpi each dot is about 0.125 mm, at 300 dpi about 0.085 mm. A program that only lets you "stretch" a code with the mouse is best avoided for product codes: a stretched code rarely lands on whole dots.

What this means when buying

If you mostly print shipping labels, cartons and warehouse markings, 203 dpi is enough and cheaper. If you print EAN codes on small product labels or want a lot of small text on a label, choose 300 dpi. The price difference between versions of the same model is often small compared with the cost of reprinting a whole batch of labels.

Resolution is only one of the parameters. The others, direct thermal or thermal transfer, label width and connections, are covered in the guide on choosing a label printer.

Sources

Where we state a price, a date or a standard, we say where it came from and when we checked it. Sources change without our involvement.

All articles