Skip to content
UPC Maker

Barcode Size and Printing: The Rules That Matter

By UPC Maker · Last reviewed November 13, 2026

Most barcodes that fail at the till were generated correctly and printed badly. Size, white space, colour and print quality decide whether a scanner reads the bars on the first pass or not at all.

Standard sizes for retail barcodes

BarcodeSize at 100%, with quiet zonesAllowed range
UPC-A37.29 x 25.91 mm (1.469 x 1.02 in)80% to 200%
EAN-1337.29 x 25.93 mm80% to 200%
EAN-826.73 x 21.31 mm80% to 200%
UPC-E22.11 x 25.91 mm80% to 200%
ITF-14142.75 x 32 mm (bars only)50% to 100% on labels

The number that drives all of this is the width of the narrowest bar, called the X-dimension. At 100% it is 0.33 mm for UPC and EAN. At 80% it is 0.264 mm, which is the practical floor for retail scanners and ordinary printing.

Scale the whole barcode, do not crop it

When space is tight, shrink the barcode evenly down to 80%. Do not cut the height first. A shorter barcode, called a truncated barcode, gives a scanner a thinner target, and a checkout scanner that reads at an angle needs the full height to catch every bar in one sweep. Truncation is a last resort for packs that cannot fit anything else.

Never stretch a barcode in one direction. Widening it changes the ratio between thick and thin bars, and that ratio is the data.

Quiet zones

The blank space at each end of a barcode is part of the barcode. Without it, a scanner cannot tell where the bars start.

  • UPC-A: 9 narrow-bar widths on each side, about 3 mm at 100%.
  • EAN-13: 11 on the left and 7 on the right.
  • Code 128 and Code 39: 10 widths, or 6 mm, whichever is larger.
  • ITF-14: 10 widths on each side.
  • Data Matrix: one cell on all four sides.

Every download from this site includes the quiet zone as white padding. The mistakes happen later, when a designer crops the image tight, places text against it, or runs a coloured border through the margin.

Colours that scan and colours that do not

Scanners use red light. A colour that reflects red looks white to them, and a colour that absorbs red looks black.

WorksFails
BarsBlack, dark blue, dark green, dark brownRed, orange, yellow, pink, light brown
BackgroundWhite, yellow, orange, red, pinkBlue, green, dark brown, black, metallic

Black on white is always the safe choice. Never print light bars on a dark background for a retail barcode: most checkout scanners cannot read a reversed image. Transparent film and metallic foil need a solid white panel printed underneath.

  • Thermal transfer and direct thermal: the best choice for labels. Edges are crisp and consistent.
  • Laser: good on sheet labels. Use a resolution of 600 dpi or higher for small barcodes.
  • Inkjet: acceptable on coated labels, but ink spreads on plain paper and thickens the bars. It also smears when wet.
  • Offset and flexo for packaging: supply vector artwork and tell the printer it is a barcode. Presses spread ink, so printers narrow the bars slightly to compensate.

For anything going to a print shop, send the SVG, not the PNG. A raster image resized in a layout program gets soft grey edges on its bars.

Where to put it on the pack

  • Lower right of the back panel is the convention.
  • Keep it at least 8 mm from any edge, fold or seam.
  • On a bottle or can, turn the barcode so the bars run around the curve like the rungs of a ladder. A scanner then sees the full width without it bending away.
  • Do not place it under shrink-wrap seams, on a gusset, or where a price sticker usually goes.
  • One barcode per face. Two visible barcodes cause double scans.

Test before the print run

  1. Print a proof at final size on the final material if you can.
  2. Scan it with a real scanner, or photograph it and use the online barcode scanner.
  3. Confirm the value matches your number exactly, including leading zeros.
  4. Scan it ten times from different angles. It should read every time, not most times.
  5. For a large retail order, ask your printer for a verifier report. A verifier grades print quality in a way a simple scan cannot.

If the number itself is in doubt, the check digit calculator confirms it. To start again from a clean image, use the UPC generator, or the barcode generator for other types. For carton barcodes on corrugated board, the ITF-14 page has the placement measurements.

Frequently asked questions

What is the smallest a UPC can be printed?

80% of the standard size, which is about 1.175 inches wide by 0.816 inches tall including the quiet zones. Below that the narrowest bars are too fine for many retail scanners and ordinary printing.

Can I make the barcode shorter to save space?

Reducing the height, called truncation, is allowed only when the pack truly cannot fit a full barcode. It makes the barcode harder to scan at an angle, and some retailers refuse it. Scale the whole barcode down to 80% before you cut the height.

Can a barcode be printed in colour?

Yes, with care. Bars must be dark and the background light when seen under red light. Black, dark blue, dark green and dark brown bars work. Red, orange and yellow bars do not, because they look white to the scanner.

Does the barcode have to be on the back of the pack?

There is no single required position, but the convention is the lower right of the back panel, clear of seams, folds and edges. Keep it at least 8 mm from any edge and never wrap it around a corner.

Keep reading