Print Runs in your browser

Barcode Size Calculator

Work out barcode width, height and DPI from the X-dimension.

Your data is processed locally in your browser and is not uploaded to our servers.

What it works out

The printed width and height of a 1-D barcode from its X-dimension — the width of the narrowest bar — plus the pixel dimensions at your print resolution and how many printer dots land on each narrow bar. That last number is the one that decides whether a symbol prints cleanly.

X-dimension and magnification

Every dimension of a linear barcode scales from the X-dimension. GS1 defines a nominal (100%) EAN-13 as 37.29 × 25.93 mm with a 0.33 mm X-dimension, and retail permits magnification between 80% and 200%. Move the magnification slider and the X-dimension, width and height follow; type an X-dimension directly and it is used as given.

Why printer dots per bar matter

If the narrowest bar is less than about two printer dots wide, the printer has to round it — some bars come out a dot wider than others, the ratios drift, and scan rates collapse. The calculator flags it. On a 203 DPI thermal printer a dot is roughly 0.125 mm, which is why very small symbols and cheap label printers do not mix.

Quiet zones are part of the size

Linear retail symbols need clear space of about ten times the X-dimension on each side. The calculator reports the width with and without it, because artwork that fits the label only when you ignore the quiet zone does not actually fit.

Bar height is not decoration

Height gives a scanner room to cross the symbol at an angle. Truncating a retail barcode to save space is a common and expensive mistake — it works on the desk and fails at a busy checkout. Keep the specified height unless your trading partner says otherwise in writing.

Related tools

Generate the symbol in the barcode tools, lay a sheet out in the label maker, and read the product label guide for the wider workflow.

Magnification, X-dimension and width

Retail symbologies are specified by magnification factor: a percentage of the nominal size. Everything scales linearly from it.

MagnificationX-dimensionEAN-13 widthStatus
80%0.264 mm29.8 mmRetail minimum
90%0.297 mm33.6 mmCommon on small packs
100%0.330 mm37.3 mmNominal
150%0.495 mm55.9 mmCartons, outer packaging
200%0.660 mm74.6 mmRetail maximum

Widths exclude the quiet zones, which add 10 X-dimensions at each side — 6.6 mm total at nominal size. The figures are from the GS1 General Specifications; a symbol below 80% is out of specification for point-of-sale and a retailer is entitled to reject the packaging.

Cartons scanned in a warehouse from a distance need the top of that range, not the bottom. ITF-14 on a shipping carton is normally printed considerably larger than a retail EAN-13.

The printer-resolution warning, and what to do about it

The calculator warns when the X-dimension works out to fewer than two printer dots, because at that point the printer cannot render the narrow bars distinctly and the symbol degrades no matter how correct the artwork is.

PrinterOne dotSmallest sane X-dimension
203 dpi thermal0.125 mm0.25 mm (2 dots)
300 dpi thermal or laser0.085 mm0.17 mm (2 dots)
600 dpi laser0.042 mm0.085 mm (2 dots)
Commercial offsetFollow the printer's spec, not this table

Two dots is a floor, not a target. Aim for three or more, and choose an X-dimension that is a whole number of dots so the printer is not forced to round: on a 203 dpi printer prefer 0.25 or 0.375 mm over 0.33 mm, even though 0.33 is the retail nominal. If the label must carry a genuine retail symbol at nominal size, print it at 300 dpi or higher.

Frequently asked questions

What is the X-dimension?

The width of the narrowest bar or space. Every other dimension of a linear barcode scales from it.

What magnification is allowed for EAN-13?

GS1 permits 80% to 200% of nominal for retail point-of-sale. Confirm the range with your trading partner for other environments.

Why does it warn about my DPI?

Because the narrowest bar works out at fewer than two printer dots. The printer rounds bar widths, the ratios drift, and scan rates fall.

Can I make the barcode shorter?

Reducing height below the specification hurts scanning at angles. Reduce the data or the X-dimension instead, within the allowed range.

What is the X-dimension?

The width of the narrowest bar. Every other dimension scales from it, and it is what decides whether a scanner can resolve the symbol. A nominal retail EAN-13 or UPC-A uses 0.330 mm.

How small can a retail barcode be?

GS1 permits 80% to 200% magnification for point of sale — an X-dimension of 0.264 mm to 0.660 mm. Below 80% the symbol is out of specification and a retailer can reject the packaging.

Why does the tool warn about my printer resolution?

Because a printer cannot print a fraction of a dot. At 203 dpi one dot is 0.125 mm, so a 0.33 mm bar is 2.6 dots and gets rounded — making bars too wide while gaps stay put. Choose an X-dimension that is a whole number of dots, or print at 300 dpi or higher.

Curious how we build and check these codes? Read our methodology.