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.

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.

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