Get started

Glossary · AI and digital

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.

Updated on 27 November 2026

A barcode with 13 digits, divided into country prefix, company number, item number and check digit

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)
DigitsPartMeaning
1–3Prefix (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 moreCompany numberIdentifies the company that received the number. Its length depends on the size of the number block.
up to 12Item numberAssigned by the company itself for each of its own products and each variant.
13Check digitCalculated 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
ShapeBars in a rowSquare of dots
Amount of data13 digitsUp to several thousand characters
Typical useItems at the till and in stockPayments, web addresses, contact details
Read withLaser scanner, cameraCamera

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.

CodeContentTypical use
EAN-13 / GTIN-1313 digitsItems in retail
EAN-8 / GTIN-88 digitsVery small packaging
UPC-A12 digitsItems from North America
Code 128Digits, letters, symbolsShipping labels, stock, internal numbers
GS1-128Number plus extra data such as batch or datePallets and logistics
DataMatrixMany 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.

A practical example

Example: a bicycle shop in Biel sets up its stock

The fictitious bicycle shop Muster Velo GmbH in Biel stocks around 900 items, from inner tubes to e-bikes. Most of them already carry a manufacturer’s barcode. The owner records these numbers for each article variant in the programme, for example tyres separately by size.

For service packages she puts together herself and sells only in the shop, she assigns internal numbers and prints her own labels. At the counter she scans the code with a USB scanner straight into the search field and has the right item in front of her, with price and stock level.

Invented example for illustration.

How VoxCRM helps

yes

In VoxCRM, every article variant has its own fields for the article number (SKU) and the barcode. In the product search, typing or scanning a barcode finds the matching variant, and a USB scanner types the number straight into the search field. There is no separate scanning function using the phone camera, and barcodes are not assigned. More under Products and stock.

FAQ

Frequently asked questions

Can’t find your question? Write to us at hello@voxcrm.ch.

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 and date

Sources

  1. GS1 General Specifications (opens in a new window), GS1 (global standards organisation for identification standards). Version: Current edition, retrieved on 3 November 2026, retrieved on 3 November 2026.

Last updated:

Free handbook as a PDF

The VoxCRM Handbook for SMEs

Everything VoxCRM can do at a glance, plus exactly the areas you are interested in, in depth. Compiled for you and sent by email straight away.

  • Product, workflow, security and prices
  • Your modules with real screenshots from the app
  • With an industry part for trades, services, hospitality and retail
Free, no account needed
Cover of the VoxCRM Handbook for SMEs as a book

Try it free for 14 days.

Every feature, 60 minutes of Vox, no credit card. Then you choose a plan. Without a plan the account is paused, and you can export your data until it is deleted on day 60.

Go to the plan finder: which plan fits and what it costsBook a demoDemo