# Barcode

> A barcode is a code of bars that represents a number in a way a scanner can read in a fraction of a second. In retail, it usually stands for an EAN-13, the globally unique article number of a product. Tills, stock and purchasing then recognise the item without typing and without mix-ups.

Page: https://voxcrm.ch/en/glossary/barcode/
Last updated: 3 December 2026

## How an EAN-13 barcode is built

The best-known barcode in retail is the EAN-13 with thirteen digits. The bars of different widths stand for these digits, and the number is also printed in plain figures underneath. In the worldwide system, the number itself is called a GTIN (Global Trade Item Number). It is not made up freely but assigned through the responsible organisation of the GS1 system, so that no two products in the world carry the same number.

**The parts of an EAN-13 (example 7601234567890, fictitious)**

| Digits | Part | Meaning |
|---|---|---|
| 1–3 | Prefix (760) | Shows the national organisation that issued the number, 760 to 769 for Switzerland. It does not say where the product was made. |
| 4–7 or more | Company number | Identifies the company that received the number. Its length depends on the size of the number block. |
| up to 12 | Item number | Assigned by the company itself for each of its own products and each variant. |
| 13 | Check digit | Calculated from the first twelve digits and reveals reading errors. |

Every variant needs its own number. A T-shirt in three sizes and two colours therefore has six different barcodes. Only then does the till know which item was sold, and only then is the stock level correct for each variant.

## How the check digit is calculated

The check digit stops a damaged or mistyped code from passing as a different item. The calculation is simple and can be followed by hand.

1. **Weight:** Multiply the first twelve digits from the left alternately by 1 and 3: the first by 1, the second by 3, the third by 1 and so on.
2. **Add up:** Add all the products. For 760123456789 that gives 7 + 18 + 0 + 3 + 2 + 9 + 4 + 15 + 6 + 21 + 8 + 27 = 120.
3. **Round up to the next ten:** The difference to the next full ten is the check digit. 120 is already a multiple of ten, so the check digit is 0.
4. **Append:** The complete number is 7601234567890. A scanner recalculates it on every read and rejects the code if the check digit does not match.

## Barcode or QR code?

A classic barcode is one-dimensional: it is read in one direction and holds only a few characters. A QR code is two-dimensional and stores many times more data in a square, such as a web address or, on the QR-bill (QR-Rechnung), all the payment details including the QR-IBAN and the amount.

|  | Barcode (EAN-13) | QR code |
|---|---|---|
| Shape | Bars in a row | Square of dots |
| Amount of data | 13 digits | Up to several thousand characters |
| Typical use | Items at the till and in stock | Payments, web addresses, contact details |
| Read with | Laser scanner, camera | Camera |

## Other types of barcode

Besides the EAN-13 there are many other barcodes, used depending on the purpose. For small packaging there is a short form with eight digits. Logistics and industry use codes that can also hold letters, batch numbers or expiry dates.

| Code | Content | Typical use |
|---|---|---|
| EAN-13 / GTIN-13 | 13 digits | Items in retail |
| EAN-8 / GTIN-8 | 8 digits | Very small packaging |
| UPC-A | 12 digits | Items from North America |
| Code 128 | Digits, letters, symbols | Shipping labels, stock, internal numbers |
| GS1-128 | Number plus extra data such as batch or date | Pallets and logistics |
| DataMatrix | Many characters in a small area (2D) | Medicines, components |

For internal purposes such as storage locations or tools, Code 128 is a good choice because it also handles letters and can be read by practically any scanner. What matters is that internal codes do not overlap with official article numbers. If you print labels yourself, test them with your own scanner before the large print run and make sure there is enough contrast and a quiet zone to the left and right of the bars.

## Using barcodes in your business

If you supply products to retailers, you need an official GTIN for every item, because the retailers’ till systems work with it. For your own use, for example for storage locations, tools or spare parts in the van, internal numbers that apply only within your business are enough. They must not, however, find their way into retail.

- Goods receipt: Scan the delivery instead of typing up delivery notes, and the stock is booked in correctly.
- Stocktaking: Count the shelves with the scanner, and discrepancies show up immediately.
- Sales and quotes: Find items by their code instead of typing long descriptions, and take the right price from the price list.
- Trades: Record material that goes onto a work report (Rapport) without any ambiguity.

For scanning, a smartphone camera or an inexpensive USB scanner that behaves like a keyboard is often enough today: it types the number into whichever field the cursor is in.

## FAQ

### How do I get a barcode for my product?

In Switzerland, official article numbers for retail are issued by the national organisation of the GS1 system. A company receives a number block there for a fee and then assigns numbers from it to its own products. A label programme generates the barcode from the number. Numbers you make up yourself are only suitable for internal purposes.

### Is the price in the barcode?

No, an EAN barcode contains only the article number. Price, description and stock level are held in the database of the till or inventory management programme. That is why the same item can cost different amounts in different shops. The exceptions are special codes for weighed goods, where the weight or price is part of the number.

### Does the prefix 76 show that a product comes from Switzerland?

No. The prefix only shows which national organisation issued the number. A Swiss company can have its products made abroad and still use numbers starting with 76, and the other way round. Information about a product’s origin comes from the origin details on the packaging, not from the barcode.

## Sources

- GS1 General Specifications, GS1 (global standards organisation for identification standards) (Current edition, retrieved on 3 November 2026): https://www.gs1.org/standards/barcodes-epcrfid-id-keys/gs1-general-specifications

---

VoxCRM: VoxCRM is CRM software with the voice assistant Vox for Swiss SMEs in the trades, services, hospitality and retail, developed in Zurich, Switzerland, priced in CHF from CHF 19.– a month, with data hosted in Germany (EU), available since November 2026.
Summary for language models: https://voxcrm.ch/en/llms.txt
