SkanSure – Food Scanner

Scan it before you eat it.

Barcode Basics: What the Digits on a Food Package Mean

October 29, 2026 · SkanSure Learn

Barcode basics start with a surprise: the stripes on a food package encode one number and nothing else. That number — a GTIN, the Global Trade Item Number — identifies which product this is, down to its exact size and variant. It does not contain the price, the ingredients, the allergens, or a safety verdict. Everything a scanner app shows you comes from a database record that the number is used to look up. This guide explains how the digits are structured, how the final digit checks the rest, and why a scan can honestly come back “unknown.”

Barcode basics: the four lengths you will meet

GTIN is the family name; the length tells you which member you are holding. GS1 — the organisation that runs the system — defines four formats:

One quirk SkanSure’s own scanner handles every day: a GTIN-13 that begins with 0 is the 12-digit UPC-A of the same product, so our photo scanner reports it in its 12-digit form — the same product then matches the same record whether the camera read it as an EAN or a UPC. SkanSure reads five symbol types in total: EAN-13, EAN-8, UPC-A, UPC-E and Code 128.

What the digits inside the number mean

Every GTIN is built from the same three parts, in the same order:

Two myths fall away once you see the structure. The opening digits do not tell you where a food was made: they belong to the company prefix, which identifies the GS1 organisation the brand owner registered with — a company can register in one country and manufacture in another. And no digit encodes a property of the food itself: a “gluten-free” product and its regular counterpart differ only because the company assigned them different item references. The label questions — allergens, gluten, certification — are answered from the record the number finds, which is why reading the label itself still matters.

The check digit, worked by hand

The check digit uses the GS1 modulo-10 calculation: working from the rightmost digit of the number-without-its-last-digit, multiply digits alternately by 3 and 1, add the results, and the check digit is whatever makes the total a multiple of 10. Here it is on a real 12-digit UPC from SkanSure’s own scanner testing, 064642103970:

Digits before the check digit: 0 6 4 6 4 2 1 0 3 9 7. From the right: 7×3=21, 9×1=9, 3×3=9, 0×1=0, 1×3=3, 2×1=2, 4×3=12, 6×1=6, 4×3=12, 6×1=6, 0×3=0. The sum is 80 — already a multiple of 10, so the check digit is 0, exactly the last digit printed. If a camera misreads any single digit, this sum almost always stops matching, and the scan is rejected instead of silently looking up the wrong product.

What a barcode cannot tell you — and why a scan can return “unknown”

Because the number is only a lookup key, a scan is exactly as good as the record it finds. When you scan with SkanSure, the barcode number is sent to Open Food Facts, the open crowdsourced food database — as our privacy policy puts it, that number is the only data that leaves your device during a scan, and it contains nothing about you. Three honest outcomes follow:

Product data gets into that database because people and partners contribute it. Organisations that hold label data can share it through our partners page, and every verified record makes the next stranger’s scan in the same aisle more useful.

Related reading

The number finds the record; the record is label data. How to Read an Allergen Label in Canada covers what that data means once you have it, and Additives (E-Numbers) Explained covers the codes inside the ingredient list itself.

SkanSure shows dietary label information only. This guide explains the GS1 barcode system as published by GS1; a barcode identifies a product, and only the product’s own current label and manufacturer can confirm what is in it.