Barcode Types and Sizes
The common barcode symbologies and what each can hold. For retail codes the size is fixed by GS1: an EAN-13 or UPC-A at 100 % magnification is 37.29 × 25.93 mm including quiet zones, with a narrow bar (X-dimension) of 0.330 mm, and may be scaled from 80 % to 200 %.
Symbology chartTap a symbology for an example symbol and full specs
| Symbology | Type | Width at 100 %mmin | Data length |
|---|---|---|---|
| GS1 retail point-of-sale (EAN/UPC) | |||
| EAN-13 | Linear (1D) | 37.291.468 | 13 digits (12 + check digit) |
| UPC-A | Linear (1D) | 37.291.468 | 12 digits (11 + check digit) |
| UPC-E | Linear (1D) | 22.110.870 | 8 digits (number system 0 or 1, 6 data, check) |
| EAN-8 | Linear (1D) | 26.731.052 | 8 digits (7 + check digit) |
| ISBN-13 (Bookland EAN) | Linear (1D) | 37.291.468 | 13 digits starting 978 or 979 |
| GS1 logistics and variable data | |||
| ITF-14 | Linear (1D) | 142.755.620 | 14 digits (13 + check digit) |
| GS1-128 | Linear (1D) | — | Up to 48 data characters per symbol |
| GS1 DataBar | Linear (1D) | — | GTIN-14 (Omnidirectional); up to 74 numeric / 41 alphanumeric characters (Expanded) |
| General-purpose linear codes | |||
| Code 128 | Linear (1D) | — | Variable |
| Code 39 | Linear (1D) | — | Variable (start/stop *) |
| Code 93 | Linear (1D) | — | Variable |
| Codabar | Linear (1D) | — | Variable |
| MSI Plessey | Linear (1D) | — | Variable |
| 2D and stacked codes | |||
| QR Code | 2D matrix | — | Up to 7,089 digits / 4,296 alphanumeric / 2,953 bytes (version 40-L) |
| Data Matrix | 2D matrix | — | Up to 3,116 digits / 2,335 alphanumeric / 1,556 bytes |
| PDF417 | Stacked linear (2D) | — | Up to about 1,850 text characters / 2,710 digits / 1,108 bytes |
| Aztec Code | 2D matrix | — | Up to 3,832 digits / 3,067 alphabetic / 1,914 bytes |
No exact match. The nearest sizes:
How to read the size of a barcode
Every barcode size starts from the X-dimension, the width of the narrowest bar or space. All other widths are whole multiples of X (or a fixed ratio, 2.5–3 : 1 in ITF and Code 39), so the symbol width is the number of modules × X. The widths and heights in the chart include the quiet zones (and, for retail codes, the printed digits). An EAN-13 is 95 modules plus quiet zones of 11 X on the left and 7 X on the right: 113 × 0.330 mm = 37.29 mm.
GS1 states retail sizes as a magnification of the nominal 100 % symbol. 80 % means X = 0.264 mm (29.83 × 20.74 mm for an EAN-13), 200 % means X = 0.660 mm. Smaller than 80 % is not allowed for point-of-sale scanning; truncating the bar height also hurts readability and is discouraged.
The quiet zone, the blank margin left and right, is part of the symbol. Printing text, a box edge or a fold line into it is the most common reason a correct barcode will not scan. On EAN-13 the '>' sign printed after the digits marks the end of the right quiet zone.
2D codes are measured in modules (cells). A QR Code version 1 is 21 × 21 modules plus a 4-module quiet zone on every side; at a 0.5 mm module it is 14.5 mm square including the margin. Bigger data means more modules, not bigger modules.
About Barcodes
Two families of codes cover almost every use. GS1 codes carry GTIN product numbers and logistics data and are tightly specified, because a supermarket scanner must read them at checkout: EAN-13 and UPC-A on consumer products, EAN-8 and UPC-E for small packs, ITF-14 on outer cartons, GS1-128 on pallet labels, GS1 DataBar on fresh food. General-purpose codes (Code 128, Code 39, QR Code, Data Matrix, PDF417, Aztec) carry whatever the user defines, and their size is set by the application, the printer and the scanner.
For a retail barcode you need a GS1 company prefix from your national GS1 office; the barcode itself is just a drawing of that number. UPC-A is an EAN-13 with a leading zero: the 12-digit UPC 036000291452 is the 13-digit GTIN 0036000291452, and every modern scanner reads both. ISBN book codes are EAN-13 symbols with the prefix 978 or 979.
Linear codes need a scanner line to cross every bar, so they are long and low. 2D codes store data in both directions and add Reed–Solomon error correction, so a QR Code can lose up to 30 % of its area (level H) and still decode. That is why 2D codes are replacing linear ones where phones do the scanning, and why GS1 is moving packaging toward QR codes carrying a GS1 Digital Link alongside the EAN-13.
How the GS1 check digit works
EAN-8, UPC-A, EAN-13, ITF-14 and SSCC all use the same rule. Starting from the digit next to the check digit and moving left, multiply the digits alternately by 3 and 1, add the products, and take the amount needed to reach the next multiple of 10. For 400638133393: 3×3 + 9×1 + 3×3 + 3×1 + 3×3 + 1×1 + 8×3 + 3×1 + 6×3 + 0×1 + 0×3 + 4×1 = 89, so the check digit is 1 and the EAN-13 is 4006381333931.
Printing tips
Print black or dark blue bars on a white or light background; red bars are invisible to most laser scanners. Run bars parallel to the print direction when the press smears ('picket fence'), and keep ITF-14 bearer bars on corrugated board; they protect the code from uneven plate pressure. Always verify the printed symbol with a barcode verifier (ISO/IEC 15416 grade C/1.5 or better for GS1 retail).
Questions
What is the standard size of an EAN-13 or UPC barcode?
At 100 % magnification both are 37.29 mm wide and 25.93 mm high including quiet zones and digits, with a 0.330 mm X-dimension and 22.85 mm bar height. GS1 allows 80 % (29.83 × 20.74 mm) to 200 % (74.58 × 51.86 mm).
What is the smallest a retail barcode can be?
80 % of nominal size: X-dimension 0.264 mm, about 29.8 × 20.7 mm for an EAN-13 or UPC-A. For very small packs use EAN-8 (21.38 × 17.05 mm at 80 %) or UPC-E. Do not cut the bar height short.
How big is an ITF-14 barcode?
At 100 % the X-dimension is 1.016 mm, the symbol is 142.75 mm wide including 10 X quiet zones and the bars are 32 mm high, plus the bearer bar frame. GS1 allows X from 0.495 mm upward for general distribution.
What is the difference between UPC and EAN?
UPC-A has 12 digits, EAN-13 has 13. A UPC-A is an EAN-13 whose first digit is 0, drawn with identical bars, so all retail scanners read both. Since 2005 US retailers must accept EAN-13 as well.
How much data can a QR Code hold?
Up to 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes in the largest version (40, 177 × 177 modules) at error correction level L. A short URL fits in version 2–4 (25 × 25 to 33 × 33 modules).
How is the barcode check digit calculated?
Multiply the digits alternately by 3 and 1, starting with 3 at the digit right before the check digit, add the products and subtract the sum from the next multiple of 10. The calculator above does it for EAN-8, UPC-A, EAN-13, ITF-14 and SSCC.
Sources
- GS1 General Specifications (Release 24.0): §5 symbol specifications, symbol specification tables
- GS1: How to calculate a check digit manually
- GS1 Sweden: Barcode size guide (X-dimension and height tables)
- GS1 UK: How big should an ITF-14 barcode be?
- ISO/IEC 15420 (EAN/UPC), 15417 (Code 128), 16388 (Code 39), 16390 (ITF), 24724 (GS1 DataBar)
- ISO/IEC 18004 (QR Code), 16022 (Data Matrix), 15438 (PDF417), 24778 (Aztec Code)
- JsBarcode (MIT): Code 128 / Code 39 / Codabar pattern tables used to cross-check the drawings
Values last checked against these sources on November 15, 2026. · How we check data
Reference values for planning and identification. Confirm critical dimensions with the manufacturer's drawing or the current edition of the standard before production.