addaScan home
Assessment
Barcode basics // Chapter 1 of 5

What is an EAN-13 barcode, and what can a line check on it?

By Frank GuoTechnical review: Frank GuoPublished Updated 8 min read

// In short

An EAN-13 barcode is the linear barcode scanned at the till: it carries a GTIN-13, the 13-digit number that identifies the product, and nothing else. GS1 sets its size, quiet zones and placement so that till scanners read it in any orientation. On a packaging line it is usually pre-printed with the artwork, so the costly fault is the right-looking barcode on the wrong product. A code reader checks that it is present, readable and the right GTIN.

// Key takeaways

  • EAN-13 carries a GTIN-13 only: no batch, date or serial number.
  • At the target size the symbol is 37.29 mm wide including quiet zones and 22.85 mm high; GS1 allows X-dimensions from 0.264 to 0.660 mm for till-only items.
  • GS1 prefers the lower right of the back panel, 8 to 100 mm from an edge, and limits picket-fence codes on small round containers.
  • Because the code is part of the artwork, a line check compares the GTIN read with the product the line is running.
  • Reading the code on the line is not the print grade a retailer or GS1 South Africa measures.

What does an EAN-13 barcode carry?

An EAN-13 barcode carries a GTIN-13, the Global Trade Item Number of the consumer unit (GS1 General Specifications). GS1 South Africa describes EAN and UPC as the most popular GS1 barcodes, printed on nearly every consumer product (GS1 South Africa, barcode types). The barcode says what the product is; it says nothing about the batch, the date or which individual pack it is. Those go in the printed date and lot code, or in a 2D code (chapters 4 and 5).

The symbol is built from a left quiet zone, a guard pattern, six characters, a centre guard, six more characters and a right guard and quiet zone. Twelve characters carry thirteen digits: the first digit has no bars of its own and is encoded by the mix of number sets used in the left half (GS1 General Specifications, 5.2.2.1).

[Schematic]EAN-13 structure · not to scale

Swipe sideways to see the whole drawing →

Structure of an EAN-13 barcode From left to right: a left quiet zone of 11 times the X-dimension, a normal guard bar pattern, six symbol characters in the left half, a centre guard bar pattern, six symbol characters in the right half ending with the check digit, a normal guard bar pattern and a right quiet zone of 7 times the X-dimension. The first of the 13 digits has no bars of its own: it is encoded by the mix of number sets in the left half. 0 614141 123452 [1] QUIET 11X [2] LEFT HALF [3] CENTRE GUARD [4] RIGHT HALF[5] QUIET 7X FIRST DIGIT: NO BARS OF ITS OWN, CARRIED BY THE A/B PARITY MIX OF THE LEFT HALF LAST DIGIT (RED) = CHECK DIGIT
[1]: Left quiet zone, 11X
[2]: Left half: six characters, number sets A and B
[3]: Centre guard
[4]: Right half: six characters, the last is the check digit
[5]: Right quiet zone, 7X

Worked example: the check digit. The last digit is calculated from the other twelve, so a reader can reject most misreads. GS1’s example number 061414112345 is weighted 1, 3, 1, 3 … from the left: 0 + 18 + 1 + 12 + 1 + 12 + 1 + 3 + 2 + 9 + 4 + 15 = 78. The next multiple of ten is 80, so the check digit is 2 and the GTIN-13 is 0614141123452 (GS1 General Specifications, 7.9.1). A check digit catches a misread digit; it does not catch a correctly printed number that belongs to another product.

Where does it go, and who decides the number?

EAN-13 goes on the consumer unit that is scanned at the till. The brand owner allocates the GTIN from its GS1 company prefix, and the artwork carries the barcode. Groupings of consumer units that are not meant for till scanning, such as an outer case, use other symbols (chapter 2).

For new packaging GS1 prefers the lower right quadrant of the back panel, with the alternative the lower right of another panel. The barcode should be no closer than 8 mm and no farther than 100 mm from the nearest edge, because cashiers hold packs by their edges. Bags take the barcode in the centre of the back, about a third up from the bottom (GS1 General Specifications, 6.3.3). Barcodes and their quiet zones must stay off seams, folds, flaps, perforations, tight curves and rough textures (GS1 General Specifications, 6.2.3.3).

How big must an EAN-13 be?

GS1 sizes the EAN-13 by where the item is scanned. At the target X-dimension of 0.330 mm, the old “100 % magnification”, the symbol is 37.29 mm wide including quiet zones and 22.85 mm high (GS1 General Specifications, 5.12.2.2). Items scanned at the till and also in distribution, for example a case of water that is sold as one unit, need the larger sizes of table 3.

EAN-13 size and quality requirements in the GS1 General Specifications, Release 26.0
ParameterScanned at the till only (table 1)Scanned at the till and in distribution (table 3)
X-dimensionMinimum 0.264 mm, target 0.330 mm, maximum 0.660 mmMinimum 0.495 mm, target and maximum 0.660 mm
Minimum bar height18.28 mm at minimum X, 22.85 mm at target X, 45.70 mm at maximum X34.28 mm at minimum X, 45.70 mm at target and maximum X
Quiet Zone11X left, 7X right11X left, 7X right
Minimum print quality1.5/06/6601.5/06/660
Below the minimumX from 0.249 mm only for on-demand printing such as thermal or laser; never truncate the bar heightSame rule

GS1 is firm on two points. The height must not be cut below the minimum for the X-dimension used, because a truncated code reads only when the pack crosses the scanner at the right angle, and truncation is allowed only where unavoidable, such as a tightly curved surface (GS1 General Specifications, 6.3.3.4). And the area for the symbol and quiet zones should never be smaller than the area for a 0.264 mm X-dimension (GS1 General Specifications, table 1 note).

What about bottles, cans and other round packs?

On a curved surface the ends of a wide barcode disappear round the curve, so one camera or scanner cannot see both ends. GS1 requires the angle between the tangent at the centre of the code and the tangent at its outer guard bars to stay below 30 degrees; above that, the bars must run round the container, in ladder orientation (GS1 General Specifications, 6.2.3.2). GS1’s Table 6-1 turns that into container diameters:

Example rows from GS1 Table 6-1: container diameter and the largest EAN-13 X-dimension in picket-fence orientation
Container diameterLargest X-dimension for picket-fence EAN-13What it means
30 mm or less, up to 45 mmNone: too small for picket fenceRotate the barcode to ladder orientation
60 mm0.330 mm (the target size)A nominal-size EAN-13 just fits in picket fence
80 mm0.446 mmRoom for a larger code
120 mm or more0.660 mm (the maximum)Any EAN-13 size fits

Put the other way round, GS1 Table 6-2 gives a minimum container diameter of 48 mm for a picket-fence EAN-13 at the minimum 0.264 mm X-dimension, and 120 mm at the maximum 0.660 mm (GS1 General Specifications, Table 6-2). For a line reader, a ladder code on a round bottle is easier: the bars wrap round the bottle, the code stays readable from one side, and the reader only needs the label facing it, or the bottle rotated past it.

How is it read on a packaging line?

A fixed code reader or a smart camera with code tools reads the EAN-13 as the pack passes. The useful check is not only “a barcode is there” but “the GTIN is the one this line should be packing”: the expected GTIN comes from the PLC, the recipe or the MES, and a mismatch rejects the pack. This is how a label or sleeve from the previous product is caught after a changeover. See label inspection for the wider label check.

EAN-13 at a glance
AspectEAN-13Limit
CarriesA GTIN-13: the product number onlyNo batch, date or serial number
Where it goesThe consumer unit scanned at the tillNot intended for cases that are never scanned at a till
How it is printedUsually pre-printed with the artwork, sometimes on a labelChanges only when the artwork or the GTIN changes
What a line reader checksPresent, readable, the right GTIN for the product runningNot the print grade a retailer’s verifier gives

A sensible station design for consumer units:

  1. Where: after labelling or carton forming, before packs are grouped, where each pack passes singly with the code facing a known direction.
  2. Field of view: wide enough for the full symbol and its quiet zones plus the position tolerance of the pack on the conveyor. For curved packs in picket fence, add a second reader or a rotation.
  3. Expected GTIN: loaded with the recipe at changeover, never typed in by hand at the reader.
  4. Outcome: no-read and wrong GTIN both reject; the reject is confirmed by a sensor.
  5. Records: counts of good, no-read and wrong reads per batch, and images of failures.

What goes wrong with EAN-13 on the line?

The first fault in the table is a content fault a line reader catches outright. The others are print and design faults that a verifier grades; a line reader sees them indirectly, as codes that read poorly or not at all.

EAN-13 faults: cause, what a line reader sees, and who fixes it
FaultUsual causeWhat the line seesWho fixes it
Wrong product’s barcodeLabels, sleeves or cartons from the previous run left at changeoverA perfect read of the wrong GTINLine clearance plus a GTIN check in the reader
Low contrastDark bars on a dark, metallic or red-printed backgroundNo-reads or low decode marginArtwork: dark bars on a light background
Truncated height or quiet zoneArtwork squeezed to make room for other graphicsReads only when the pack is square to the readerArtwork and print approval
Wrapped round a tight curvePicket-fence code on a small bottle or canOnly part of the code visible to one cameraLadder orientation, or two readers
Bar width gain or lossInk spread on absorbent stock, worn plateReads with a falling decode marginPrinter: bar-width reduction, plate change
Barcode on a seam, flap or foldArtwork layoutIntermittent no-reads after forming or sealingArtwork: GS1 obstacles rule

A related trap is a pack carrying two different barcodes, for example an EAN-13 for the unit and an old code from a promotion. GS1’s rule is that barcodes for different GTINs must never be visible on one item (GS1 General Specifications, 6.2.1). A reader set to accept only the expected GTIN, and to flag two codes in one image, finds this on the line.

Does a line reader replace a barcode verification report?

No. Many South African retailers require a GS1 South Africa barcode test report as a mandatory step in product listing; GS1 South Africa tests to ISO 15416 methods and checks size, colour, print quality and numbering (GS1 South Africa verification service). ISO/IEC 15416 is the print quality test specification for linear symbols (ISO/IEC 15416:2025). A line reader confirms every pack is readable and correct, which is a different job: a verification report covers samples, a line reader covers every pack. More on ISO/IEC 15416 and barcode verification and grading.

Frequently asked questions

Can a camera tell if the EAN-13 belongs to a different product?

Yes, when it is told which product is running. The reader decodes the GTIN and compares it with the expected GTIN from the recipe or PLC; any other GTIN is rejected, even if the barcode itself prints and reads perfectly.

Is an EAN-13 barcode enough for traceability?

No. It identifies the product, not the batch or date. Traceability on the pack comes from the printed lot and date code, or from a 2D code that carries them as GS1 Application Identifiers.

What is the smallest EAN-13 allowed?

For items scanned only at the till, GS1 sets a minimum X-dimension of 0.264 mm with a minimum bar height of 18.28 mm. Thermal or laser printing on demand may go down to 0.249 mm. The height must not be truncated below the minimum.

Should the EAN-13 on a bottle run round it or along it?

It depends on the diameter. GS1 Table 6-1 says a container of 45 mm diameter or less is too small for a picket-fence EAN-13, so the bars must run round it in ladder orientation; from about 60 mm a nominal-size code fits upright.

Read next · Chapter 2What is an ITF-14 barcode, and why does it fail on cases?The case barcode printed on corrugated board: GTIN-14, GS1 sizes and placement, the bearer bar, print faults and reading at the case packer.
// Next step

Have a line in mind?

Describe the product and the fault you need to catch. We test on your samples and reply with a feasibility note and a budget.