Barcode Size Guide

A UPC-A or EAN-13 barcode is 37.29 mm wide and about 25.9 mm tall at 100% size, and GS1 allows 80% to 200% of that for retail. Always keep the blank quiet zones, don’t cut the bar height, and print at 300 dpi or better for small codes.

Short answer: print retail UPC and EAN barcodes at 80–200% of the nominal 37.29 × 25.93 mm size (100% is best if you have room), keep the full bar height, and leave the white quiet zones on both sides. Shipping cartons need bigger bars. QR codes should be at least 2 cm wide. Test a printed proof with a real scanner.

What is the X-dimension?

Every barcode is built from a basic unit: the width of the narrowest bar, called the X-dimension or module width. All other bars, spaces and margins are multiples of it, so the X-dimension sets the size of the whole symbol. A UPC or EAN at 100% has an X-dimension of 0.330 mm (13 mils). Scaling the barcode up or down is really changing the X-dimension.

Smaller X-dimensions pack the code into less space but demand sharper printing and better scanners. Larger X-dimensions read from further away and tolerate rough surfaces like corrugated card.

How big should a UPC or EAN barcode be?

GS1 defines the nominal (100%) size and allows magnifications between 80% and 200% for products scanned at retail checkouts. Widths include the quiet zones; heights include the printed digits.

MagnificationX-dimensionEAN-13 / UPC-A widthEAN-13 height
80%0.264 mm29.83 mm20.74 mm
85%0.281 mm31.70 mm22.04 mm
90%0.297 mm33.56 mm23.34 mm
100% (nominal)0.330 mm37.29 mm25.93 mm
110%0.363 mm41.02 mm28.52 mm
120%0.396 mm44.75 mm31.12 mm
150%0.495 mm55.94 mm38.90 mm
200%0.660 mm74.58 mm51.86 mm

Some printing processes, flexography on film for example, require a higher minimum than 80% to print reliably; your printer will tell you. EAN-8 at 100% is 26.73 mm wide (81 modules including quiet zones) and is meant only for packs too small for an EAN-13.

EAN-13 barcode with its quiet zone markers
EAN-13 with quiet-zone marker (>)
UPC-A barcode example
UPC-A

Can I reduce the height of a barcode?

Reducing the height while keeping the width is called truncation. It makes the code harder to scan from different angles, because omnidirectional checkout scanners sweep crossing lines across the code, and fewer of them hit a short barcode. GS1 discourages truncating retail barcodes. If space is tight, scale the whole symbol down (not below 80%), move it to a different panel, or use EAN-8 / UPC-E.

How much quiet zone does a barcode need?

The quiet zone is the clear space before and after the bars. Without it, the scanner can’t find where the code starts, and text or a border that intrudes into it is a common reason barcodes fail. Quiet zones are measured in multiples of the X-dimension:

BarcodeMinimum quiet zone
EAN-1311X left, 7X right
UPC-A9X each side
EAN-87X each side
UPC-E9X left, 7X right
Code 128, GS1-128, Code 3910X each side
ITF-1410X each side, inside the bearer bars
QR Code4 modules on all four sides
Data Matrix1 module on all four sides

Our generators add the correct quiet zone by default. If you place the barcode in a design, keep that white margin and don’t let artwork, text or the pack edge cut into it.

Barcode sizes for cartons, labels and QR codes

  • ITF-14 on shipping cartons: printed directly on corrugated board, these need large bars. GS1 sets a minimum X-dimension of 0.495 mm for ITF-14 and recommends a thick bearer bar around the symbol to protect it from uneven printing pressure. Make one with the ITF-14 generator.
  • GS1-128 on logistics labels: labels scanned in warehouses, often from a distance, use a larger X-dimension than retail codes, typically 0.495 mm or more. Check your customer’s labelling guide for the exact height and size.
  • Code 128 for internal labels: no GS1 rule applies. An X-dimension of 0.25–0.5 mm (10–20 mil) suits most handheld scanners. Long data makes the code wide, so keep internal codes short.
  • QR codes: at least 2 × 2 cm for close range, and about one tenth of the scan distance for signs. Keep the 4-module quiet zone. See the QR code generator.
ITF-14 carton barcode with bearer bars
ITF-14 with bearer bars
QR code linking to this barcode size guide
QR Code (4-module quiet zone)

What printer resolution do I need?

Printers place ink or heat in a grid of dots, so a bar can only be a whole number of dots wide. If the X-dimension isn’t a whole number of dots, some bars print a dot wider than others and the code may not scan. Pick an X-dimension that lines up with your printer’s dot size:

Printer resolutionDot sizeUsable X-dimensions for UPC/EAN
203 dpi (8 dots/mm)0.125 mm3 dots = 0.375 mm (114%), 4 dots = 0.500 mm (152%)
300 dpi (12 dots/mm)0.085 mm4 dots = 0.339 mm (103%), 5 dots = 0.423 mm (128%)
600 dpi (24 dots/mm)0.042 mm7 dots = 0.296 mm (90%), 8 dots = 0.339 mm (103%)

This is why 300 dpi is the practical minimum for small retail labels on thermal printers: a 203 dpi printer can’t print a UPC at 100%, only at about 114% or larger. More on choosing printers and labels in how to print barcodes.

Checklist before you print

  1. Size between 80% and 200% for retail UPC/EAN; full bar height.
  2. Quiet zones clear on both sides.
  3. Dark bars (black is best) on a white or light background; no red bars.
  4. Printed at 100% scale (“Actual size”), not “Fit to page”.
  5. A printed proof scanned with the kind of scanner that will be used, plus our online scanner.

Frequently asked questions

What is the standard size of a UPC or EAN barcode?

At 100% magnification, a UPC-A or EAN-13 barcode is 37.29 mm wide (including quiet zones) and about 25.9 mm tall, with a narrow bar (X-dimension) of 0.330 mm. GS1 allows magnifications from 80% to 200% for retail point-of-sale use.

What is the smallest a barcode can be?

For a UPC or EAN scanned at a retail checkout, the minimum is 80% of nominal size: about 29.8 mm wide with an X-dimension of 0.264 mm. Smaller barcodes may fail at the till. For internal Code 128 labels, there is no fixed minimum, but an X-dimension below about 0.25 mm needs a good printer and scanner.

Can I make the barcode shorter to fit my packaging?

Avoid it. Cutting bar height (truncation) stops the code from being read from every angle at the checkout. GS1 discourages truncating retail barcodes; reduce the whole barcode within the 80–200% range instead, or use a smaller symbol such as EAN-8 or UPC-E if the pack really is tiny.

What is the quiet zone of a barcode?

The quiet zone is the blank margin on each side of a barcode that tells the scanner where the code begins and ends. EAN-13 needs 11 modules on the left and 7 on the right, UPC-A needs 9 on each side, Code 128 needs 10, and a QR code needs 4 modules all round.

What size should a QR code be?

At least 2 × 2 cm for close-range scanning, and roughly one tenth of the scanning distance for signs (a code read from 1 m should be about 10 cm wide). Denser codes with more data need to be larger.

What DPI do I need to print barcodes?

Use at least 300 dpi for small retail barcodes on thermal label printers. 203 dpi printers work for shipping labels and larger codes. Whatever the resolution, set the narrow bar to a whole number of printer dots so every bar prints the same width.

Related free tools