Home / Blog

Barcode Size Guide: UPC, EAN and 2D Code Sizes for Printing

A retail barcode with width and height dimension lines and smaller and larger copies for scaling

At its standard (100%) size, a UPC-A or EAN-13 barcode is 37.29 mm wide including its margins and 25.93 mm high, with a narrowest bar, the X-dimension, of 0.33 mm. GS1 allows these retail barcodes to be printed from 80% to 200% of that size, as long as the blank quiet zones at each side stay clear and the bars keep their full height.

What sets a barcode's size

Barcode size is set by the X-dimension, the width of the narrowest bar or space. Every other measurement scales with it. GS1 used to describe size as a magnification: 100% means an X-dimension of 0.33 mm, 80% means 0.264 mm and 200% means 0.66 mm.

Two other measurements matter as much as the width: the bar height and the quiet zone, the blank margin a scanner needs to find where the barcode starts and ends.

UPC-A and EAN-13 size at 80%, 100% and 200%

MagnificationX-dimensionWidth incl. marginsBar height
80% (smallest allowed)0.264 mm29.83 mm18.28 mm
100% (standard)0.330 mm37.29 mm22.85 mm
200% (largest)0.660 mm74.58 mm45.70 mm

The 25.93 mm total height at 100% includes the numbers printed under the bars. Make a correctly proportioned barcode with the UPC barcode generator, then scale it evenly in your design software.

EAN-8 size

EAN-8 is the short retail barcode for very small packs. At 100% it is 26.73 mm wide including margins and 21.31 mm high. Its bars are 18.23 mm high at the standard size and never less than 14.58 mm. The EAN-13 generator makes both EAN-13 and EAN-8.

Quiet zones for each retail barcode

BarcodeLeft quiet zoneRight quiet zone
EAN-1311 × X-dimension7 × X-dimension
UPC-A9 × X-dimension9 × X-dimension
EAN-87 × X-dimension7 × X-dimension
UPC-E9 × X-dimension7 × X-dimension

At 100%, 9 × 0.33 mm is about 3 mm of blank space on each side of a UPC-A. Keep printed text, colour blocks and the edge of the pack out of that space.

Barcodes on cartons and outer packaging

Barcodes on outer cases are scanned from further away, so GS1 asks for larger bars. For an EAN-13 on outer packaging, the X-dimension should be at least 0.495 mm, with 0.660 mm recommended. Cartons more often carry an ITF-14 barcode, which is printed larger still and is made for corrugated board.

Size of QR codes and Data Matrix codes

2D codes have no single standard size. Their size depends on how much data they hold and how far away they are scanned. A Data Matrix code grows from 10 × 10 to 144 × 144 modules as data is added, and a QR code from 21 × 21 to 177 × 177. Shorter data gives fewer, larger modules that scan more easily at the same print size. For links, keep the URL short before you paste it into the QR code generator.

Printing tips for the right size

  • Download SVG and set the width in your design software; lock the aspect ratio.
  • Print at 100% or Actual size; turn off Fit to page.
  • Measure the printed barcode with a ruler against the table above.
  • On low-resolution label printers, choose a size where each bar is a whole number of printer dots.
  • Scan a test print before you order packaging.

For the full process from number to print, see how to make a barcode.

Frequently asked questions

What is the standard size of a UPC barcode?

At 100%, a UPC-A is 37.29 mm wide including margins and 25.93 mm high, with a narrowest bar of 0.33 mm.

What is the smallest UPC barcode allowed?

80% of the standard size: about 29.83 mm wide including margins, with a narrowest bar of 0.264 mm.

Can I make a UPC barcode shorter?

No, not for retail checkout. Cutting the bar height makes the barcode harder to scan; keep the full height for its magnification.

Are UPC-A and EAN-13 the same size?

Yes. Both are 37.29 mm wide including margins at 100%, though their quiet zones differ.

What size should a QR code be?

There is no single size. Keep the data short and test-scan at the distance people will use.

More guides