Scanning EAN codes: correctly reading EAN-13, EAN-8 and GTIN – and which scanner detects them

“EAN code” – hardly any term is so frequently misused in retail.

Usually, people mean the black-and-white bar pattern on the packaging. However, that is only the representation, not the thing itself. The EAN is a numbering system: the 13 digits are the core, and the bar pattern is merely one of several ways to print this number.

The difference is not nitpicking. It determines where you start troubleshooting. If a scanner does not read an EAN code, the number could be wrong – or the print. Both require completely different measures.


At a glance

  • The EAN is a numbering system (GTIN). The bar pattern is only the symbology, i.e., the method of representation.
  • The first three digits do not indicate the country of manufacture, but the country of the GS1 organization that issued the number.
  • The last digit is a check digit and can be calculated by hand.
  • Laser scanners cannot read EAN codes on screens for physical reasons. A 2D imager is required for this.

1. The EAN is a numbering system, not a symbology

The specific way in which bars and spaces are arranged is called in technical terms symbology. EAN-13 uses the EAN/UPC symbology. The 13 digits themselves are called GTIN-13 – that is the number.

This distinction has three practical consequences.

The same number can be printed differently. The exact same GTIN on a shipping carton and on a pack of chewing gum can differ in size by several times – the scan result is identical. If a code is not read, it is therefore rarely due to the number and usually to the print.

One number, one item. Are a red and a blue variant the same item? No. Different colors, sizes, or fill amounts each need their own GTIN as soon as customers perceive them as two different products. This is the most common beginner mistake: creating colors as variants and using a common number – afterwards, neither inventory nor sales figures will match.

The number belongs to a country, the print does not. More on this in the next section.


2. The 13 digits of an EAN-13 in detail

An EAN-13 consists of four sections from left to right:

Position Meaning Explanation
Digits 1–3 GS1 prefix Indicates which national GS1 organization issued the number range
Middle digits GS1 base number Issued by GS1 to your company, variable length
Further digits Item number Assigned freely by you
Last digit Check digit Calculated from the first twelve digits

A misunderstanding that stubbornly persists: prefix does not equal origin

If the first three digits start with 400 to 440, the number was issued by GS1 Germany . China is 690 to 699, the USA and Canada are 000 to 139, and the Netherlands are 870 to 879.

Many read from this that a 400-number means "Made in Germany" – that is wrong. It only says who issued the number. A German company can easily have products manufactured in China and apply for a German number for these goods. Conversely, a product made in Germany that is sold by a Dutch company carries a Dutch identifier.

The prefix answers the question "Who applied for the number?", not "Where was it produced?". For the German market, this distinction is particularly relevant because origin is a strong purchasing argument here – whoever explains it clearly wins trust instead of losing it.


3. Calculate the check digit – with a calculable example

The last digit is not freely chosen, but calculated from all the preceding ones. The purpose: If a digit is misread during scanning, the check fails and the scanner reports the error instead of writing incorrect data into the system.

This is how the calculation works for EAN-13:

  1. Counting from the left: multiply digits 1, 3, 5, 7, 9, and 11 by 1
  2. Multiply digits 2, 4, 6, 8, 10, and 12 by 3
  3. Add all results
  4. Subtract the ones digit of this sum from 10 – the result is the check digit (if the result is 10, the check digit is 0)

Calculated using a real number: 4006381333931

The first twelve digits are 4 0 0 6 3 8 1 3 3 3 9 3, the check digit is 1.

  • Digits 1, 3, 5, 7, 9, 11: 4 + 0 + 3 + 1 + 3 + 9 = 20
  • Digits 2, 4, 6, 8, 10, 12: 0 + 6 + 8 + 3 + 3 + 3 = 23, × 3 = 69
  • Sum: 20 + 69 = 89
  • 10 − 9 = 1 ✓ matches the actual check digit

This is exactly why a scanner "knows" that it read incorrectly: It recalculates this digit with every scan.

For EAN-8 and UPC-A, different weightings apply. The details are in the technical appendix at the end of this post – for practical purposes, EAN-13 is sufficient for now.


4. EAN-8, UPC-A, and GTIN-14: when what applies

Type Digits Application area Note
EAN-13 13 European retail The standard case for almost all products
UPC-A 12 North American retail Rare in Germany, but the rule for US suppliers
EAN-8 8 Packaging where 13 digits do not fit Chewing gum, pens, small parts
GTIN-14 / ITF-14 14 Shipping cartons, pallets, logistics Not intended for the cash register
GTIN (collective term) 8/12/13/14 General term for all of the above Usually used non-specifically

A very practical connection: UPC-A is an EAN-13 with a leading zero

Technically, the twelve-digit UPC-A corresponds to an EAN-13 without the leading 0. This means:

  • Most modern scanners read both types
  • Whether twelve or thirteen digits are issued is a setting issue, not a hardware question
  • If your system stores twelve-digit UPCs, but the scanner provides thirteen digits, a typical error occurs: The scan works, but the product is not found

For businesses in Germany, this is especially relevant when sourcing US goods: The supplier provides a UPC, your inventory management system expects an EAN – and between them is often just a missing zero.


5. Why a laser scanner does not read EAN codes on screens

This question is asked most frequently – and most frequently misinterpreted as "scanner defective".

This is how a laser scanner works: It emits a laser beam and evaluates how strongly the light from the black bars and white spaces is reflected back . The pattern is derived from this difference in brightness.

Why this fails on the screen:

  • A display is self-luminous. The light comes toward you instead of being reflected back from your lighting.
  • The glass surface reflects part of the laser beam directly back.
  • Most displays are dimmed via PWM and flicker in the millisecond range. It is precisely in this window that the laser scans and encounters changing brightness values.

These three effects together eliminate the contrast. The laser cannot resolve the code – not because it is too insensitive, but because the process fundamentally reaches its limit here.

Why an imager (CCD/CMOS) can: It does not evaluate reflection differences, but first takes a photo and then decodes the image. A photo captures the luminous pattern, and the exposure can compensate for the brightness. That is why an imager reads screens, a laser does not.

An honest limitation: Some laser scanners occasionally do read under certain angles, on heavily dimmed displays, or with matte film. However, "occasionally" at a cash register or in the warehouse is equivalent to unusable. Anyone processing customer cards, digital vouchers, e-invoices, or item codes displayed on a smartphone cannot do without a 2D imager.

More on code types that cannot be read in principle can be found in the FAQ post on unreadable codes.


6. Which scanner reliably reads EAN codes

Decide by use case, not by data sheet.

Your use case Recommendation Reasoning
Cash register, only printed EAN-13 on packaging 1D laser scanner Cheapest solution, fastest scanning, large depth of field
Codes on smartphone or tablet displays 2D imager required Physically not solvable with a laser
Damaged, creased, faded, or filmed codes 2D imager Higher error tolerance in image evaluation
Very small codes (EAN-8, small parts) High-resolution imager Higher pixel density required
Paper and displays mixed, tight budget 2D imager see below

One result that contradicts intuition: 2D is not automatically more expensive today.

In our own range, the 2D scanner Hyper A60 costs from €29.99, while the 1D laser scanner BCST-33 starts at €32.99. The 2D scanner is therefore cheaper. The old rule of thumb "2D costs extra, 1D is enough" no longer applies in the lower price range.

Specific models from our range:

  • Only paper, budget is the priority: BCST-33 – 1D laser, USB, Plug-and-Play, including holder
  • Displays and paper, cheapest entry: Hyper A60 – 2D, USB
  • Wireless, displays, with charging station: BCST-72S
  • Warehouse with large distances: BCST-60 – 2.4 GHz wireless, up to 35 m

You can find an overview of all designs and price ranges in the category Barcode Scanner.


7. Applying for EAN numbers yourself: How it works

Anyone who needs an EAN for a new product follows this path:

  1. The application is made exclusively through the national GS1 organization – in Germany through GS1 Germany. There is no second legal way.
  2. You do not receive ready-made numbers, but a GS1 base number (Company Prefix). You then assign the item numbers yourself and calculate the check digit independently.
  3. The costs are an annual fee, tiered by company size – not a one-time purchase. The exact amount depends on the revenue class; you can find the current price list at GS1 Germany.
  4. Numbers are not transferable. Amazon and other platforms check who owns a number range. Anyone who uses someone else's numbers can go online quickly – but risks suspension and frozen inventory in the long term.

About the cheap EANs from the web: A large part of the cheap offers are resold or mass-registered number ranges. Technically, these codes are flawless – correct check digit, cleanly readable. The problem lies in the proof of ownership: During an audit, the platform finds that the number range does not belong to you, and evaluates this as a violation. You save a few euros, but the entire listing is at stake.


8. EAN not read? Check these seven points

Distinguish in troubleshooting between "is not read" and "is read, but provides incorrect data". This saves a lot of time.

A. The code is not captured at all

  1. The quiet zone was cut off. Spaces must remain to the left and right of an EAN-13 (about eleven modules on the left, about seven on the right). Cut off due to lack of space – this is by far the most common cause.
  2. Printed too small. There is a minimum magnification factor for EAN-13. If it is fallen below, the resolution of common scanners is no longer sufficient.
  3. The code was compressed. If the height is shortened for layout reasons, the scan line no longer captures the entire code.
  4. Thermal paper fades or film reflects. Direct thermal labels fade over time; glossy lamination acts like a mirror.
  5. Too steep scan angle. A laser beam needs a certain incident angle to create reflection differences. Scanning vertically from the front often works worse – counterintuitive, but typical.

B. The code is read, but the result is incorrect

  1. Display code captured with a laser scanner. See section 5.
  2. Prefix, suffix, or number of digits incorrectly configured. The scanner can append prefix or suffix characters or add twelve to thirteen digits. This manifests as "scan works, system does not find the item" – a problem of the output format, not detection.

Point 7 deserves its own note: Many think the hardware is defective, but only the configuration was changed – often with used devices or if someone accidentally scanned a configuration code from the manual. A reset to factory settings usually solves the problem immediately.


9. Frequently asked questions

How do EAN-13 and UPC-A differ? In the number of digits and issuing body: EAN-13 has 13 digits and is used internationally, and is the standard in European retail. UPC-A has 12 digits and dominates in North America. Technically, UPC-A corresponds to an EAN-13 with a leading 0, which is why most modern scanners read both – the number of digits output depends on the configuration.

Why won't my scanner read the EAN code on the smartphone? Because it is a laser scanner. It evaluates differences in reflection, while a display emits its own light, the glass reflects, and the backlight flickers. A 2D imager is required.

Can I calculate the check digit myself? Yes. For EAN-13, digits 1, 3, 5, 7, 9, and 11 are multiplied by 1, and digits 2, 4, 6, 8, 10, and 12 by 3. Subtract the units digit of the sum from 10 – the result is the check digit (if it is 10, it becomes 0). You can find a fully calculated example in section 3.

Do I have to buy the number from GS1? If the goods are to be sold in regular retail or on large marketplaces: yes. GS1 is the only legal source for number ranges, and the fee is annual. Cheap resold number ranges work technically, but they do not belong to you – you risk being banned during platform audits.

EAN-8 or EAN-13 – which should I use? Primarily EAN-13. EAN-8 is only useful if the packaging is too small for 13 digits; the number ranges are scarcer and the allocation stricter.


10. Conclusion

When it comes to EAN, the difficulty is never in the scanning itself, but in distinguishing between three levels: the number (GTIN), the representation (symbology), and the device that reads it (laser or imager). If these three levels match, all other questions are purely a matter of parameters.

If smartphone displays, digital vouchers, or customer cards are used in your process, you should not readjust the sensitivity of the scanner – this cannot be adjusted. In that case, simply the wrong type of device is being used.

Leave a comment

All comments are moderated before being published