Tayyib › Guides › Barcode halal check: what the barcode tells you and what it does not

Barcode halal check: what the barcode tells you and what it does not

A barcode does not hold a single ingredient. It is an item number, and every barcode halal check looks that number up in a database and checks the ingredient list stored there. The verdict is only as good as that entry, and there are three cases where you are better off looking at the pack.

That sounds like a limitation, but mostly it is useful to know. Once you know where an answer comes from, you also know when to trust it. This guide explains what is in the bars, what the first digits mean, where Tayyib gets the ingredients from, and how to tell that an entry no longer matches the pack.

What is in the bars

The barcode on a pack in Germany is almost always an EAN-13, now officially called a GTIN (Global Trade Item Number). That is thirteen digits, also printed in plain figures under the bars. Small packs often carry the eight-digit EAN-8, and goods from North America the twelve-digit UPC.

The manufacturer assigns the number from a block it has obtained from GS1, the organisation behind the system. It stands for exactly one item in exactly one pack size. The last digit is a check digit, calculated from the others so that a scanner notices a misread. That is all there is: no ingredients, no place of manufacture, no seal. Whether a product is halal cannot be read from the bars alone, by any app or by any person.

The first digits are not a country of origin

The idea that the first three digits reveal which country a product comes from is persistent. They reveal something else: which national GS1 organisation issued the number. The prefixes 400 to 440 belong to GS1 Germany. But a German company can have its goods made abroad and still use numbers starting with 40, and a foreign manufacturer can obtain its numbers through GS1 Germany. GS1 itself therefore states that the prefix does not indicate a product's country of origin.

For the halal question that means two things. The prefix does not say where something was made, let alone what it was made from. Messages that draw a verdict about a product from its first digits rest on a misunderstanding.

Where Tayyib gets the ingredients

When you scan a barcode, Tayyib asks two sources at once. The first is Open Food Facts, an open food database kept up by volunteers: they photograph packs and transcribe the ingredient list. The data is published under the free ODbL licence, which is why Tayyib credits it as the source. The second is Tayyib's own table of entries that a person has checked and approved, usually because someone reported a missing or wrong list. Where such an entry exists, its ingredient list takes precedence.

What is then judged is the ingredient list, with the additive numbers in it. The product name, the brand and the photo play no part in the verdict. A product with "Halal" in its name and gelatine of unstated origin in its list reads doubtful in Tayyib, because the name says nothing about the gelatine. How to weigh a halal seal on the pack is covered under halal certification in Germany.

Three cases where the number is not enough

Most of the time the scan finds a complete entry and the result is there within a second. There are three situations worth knowing, though.

The barcode is not listed anywhere. Then there is nothing to judge. Tayyib says so and opens a form straight away so you can add the product. If you just want a quick answer, photograph the ingredient list instead. Text recognition runs on the phone, and the verdict then comes from the text it read rather than from a database.

The entry has no ingredient list. This happens more often than you would think: often someone has uploaded only the name and a photo of the front. Without ingredients Tayyib shows Unknown and not Halal, because a missing list is no evidence that nothing questionable is inside. Here too, a photo of the ingredient list helps.

The recipe has changed, the number has not. This is the case you cannot see. Under the GS1 standard for assigning GTINs, a changed recipe needs a new number only if the mandatory information on the pack changes and the manufacturer expects customers to notice the difference. Both must apply. If a manufacturer swaps pectin for gelatine, say, the ingredient list changes, but whether that earns a new number depends on the second condition. A database entry from two years ago can then show the old list.

When the pack is right

That gives a simple rule. In the result, Tayyib shows you the list it judged under Ingredients. A glance at the first few items is enough to compare them with the pack in your hand. If they do not match, the pack wins. Photograph its ingredient list so that the verdict comes from the current text, and report the product so that the entry can be corrected for everyone.

The comparison is most worth it for products you have not bought in a long time, and for packs printed with "new recipe" or "improved taste", because that is exactly where something has changed.

No connection, no readable code

Without an internet connection Tayyib cannot look a barcode up. The app then says exactly that rather than declaring the product unknown, because a database you cannot reach is not the same as a missing entry. With a membership you can download the database to the phone in advance. And if a barcode is creased or smudged, you can type the digits under it by hand.

In short

  • A barcode is an item number (EAN-13 or GTIN), not an ingredient list.
  • The first digits name the GS1 organisation that issued the number, not the country of origin and certainly not the ingredients.
  • Every barcode check is a lookup. Tayyib asks Open Food Facts and its own checked table, and the checked one takes precedence.
  • What is judged is the ingredient list. Name and brand do not count.
  • No entry or no ingredients: Unknown, not Halal. A photo of the ingredient list takes you further.
  • A recipe can change without the number changing. If the list in the app differs from the pack, the pack wins.

Common questions

Can you tell from a barcode whether a product is halal?

No. The barcode holds only an item number, no ingredients and no seal. An app that checks by barcode looks the number up in a database and judges the ingredient list stored there. The verdict is only as good as that entry.

Does a 40 at the start mean the product comes from Germany?

No. The prefixes 400 to 440 only show that the number was issued through GS1 Germany. They do not say where the product was made, and GS1 itself points this out. About the ingredients they say even less.

What happens if Tayyib cannot find my product?

Tayyib opens a form so you can add the product. For an immediate answer, photograph the ingredient list: text recognition runs on the phone, and the verdict comes from the text it read.

Can a barcode scan result be out of date?

Yes. A recipe can change without the manufacturer assigning a new number, and the database entry then shows the old list. In the result, Tayyib shows the ingredients it judged. If they differ from the pack, the pack wins.

Why does Tayyib sometimes show Unknown instead of Halal?

Because the entry for that barcode contains no ingredient list, often only a name and a photo. A missing list is no evidence that nothing questionable is inside, so there is no Halal then. A photo of the ingredient list gives you the verdict.

How to read an ingredient list yourself →

Note: this article is not a fatwa and not a certification. It explains where the substances named here typically come from and why the origin decides it. In case of doubt, the manufacturer statement or a recognised halal certification applies.

The barcode finds the entry, the ingredient list decides. Scan your product with Tayyib, and if the list does not match the pack, just photograph the pack.