The Global Language of Business
Contact ushvidt omrids af cirkel med hvid pil i midten der peger mod venstre
What information should be encoded in the 2D barcode - and what should be digital?

Keep the barcode simple - and the information flexible

A 2D barcode can contain both structured data that a scanner can transfer directly to an IT system and provide access to digital content via a web address. These are two different applications that must be planned separately.

Data in the barcode is used for identification and machine processing.

‍Digital content resides outside the barcode and is retrieved via the web.

In some cases, a piece of information may appear in both places, but it serves different purposes: the encoded information can be processed automatically, while the digital version can be displayed, explained, and updated.

Two layers of information with different purposes

Data encoded in the barcode Digital content
Purpose Identification and automatic data capture in IT systems. Information and services accessed online by people or systems.
Location The data itself is encoded in the 2D barcode. The content is hosted on a webpage, in a document or in another digital resource outside the barcode.
Structure GS1 Application Identifiers specify what type of data follows. The content is organised and maintained in the company's digital solutions.
Examples GTIN, batch number, date, serial number and weight. User guides, certificates, product descriptions, images and repair information.
Updates Requires a new barcode and may affect packaging or production. Can generally be updated without changing the printed barcode, provided that the web address and redirection are maintained.

Important: Access to digital content requires the 2D barcode to contain a web address. GS1 DataMatrix uses GS1 element string syntax and does not contain a web link. If the product needs to lead a user to digital content, a 2D barcode with GS1 Digital Link must be used, for example a QR code with GS1 Digital Link.

‍

What information should be encoded in the barcode?

Only encode data when it needs to be readable by scanning and registered or processed directly in an IT system. Each data element should have a specific business or regulatory purpose.

Start with the product identification (GTIN)

GTIN identifies the product/trade item and is indicated by Application Identifier (01).

Then clarify how precisely the product needs to be identified: as a product type, as a specific production batch, or as an individual unit.

Please note: If the barcode contains information that varies, e.g., batch number, serial number, or dates, the barcode must be changed when the information changes.

‍

Use Application Identifiers to encode data in the barcode

A GS1 Application Identifier (AI) tells the receiving system what type of data follows /01/. The most common examples of data in this context are:

  • (01) GTIN identifies the trade item
  • (10) Batch/lot identifies a production batch
  • (15) Best-before date indicates the product's best-before date
  • (17) Expiry date indicates the product's expiry date
  • (21) Serial number identifies the individual unit

There are also Application Identifiers for, among other things, weight as well as production and logistics information. Only select the data elements that the relevant scanners and IT systems need to use.

‍

Select data based on the application

Batch numbers can be relevant when you need to:

  • target recalls
  • support traceability
  • identify specific production batches

Dates can be relevant for:

  • date management and stock rotation
  • managing freshness and shelf life
  • reducing food waste
  • automatic handling of expiry

Serial numbers can be relevant when the individual physical unit needs to be identified in connection with:

  • traceability and authentication
  • service and repair
  • individual product information

‍

Consider the production process

If the 2D barcode only contains static data, which is the same for all units of the product (such as GTIN), it can typically be pre-printed separately from the production line.

Variable data such as batch or lot numbers, expiration dates, serial numbers, and variable weights, are determined only during production or packaging. A batch number or date may vary between production runs, while a serial number or variable weight may be unique to each individual unit.

When the 2D barcode contains such data, it must be generated and applied as part of the production or packaging process.

The production environment must therefore be able to:

  1. retrieve the correct data
  2. generate the correct code
  3. print or apply the code
  4. verify the quality of the code
  5. ensure consistency between the product and the code

Rule of thumb: Encode data because it needs to be used during scanning—not just because there is space for it.

‍

‍

What information can be made available digitally?

Digital content is not stored as full documents or text within the barcode. Instead, the barcode contains a web address that provides access to the content. This makes it possible to display extensive information and update it without necessarily having to change the printed barcode.

Digital placement is particularly relevant for information that:

  • is extensive
  • changes frequently
  • is available in multiple languages
  • has multiple target audiences
  • needs to be maintained
  • needs to be displayed in a user experience.

‍

Examples of digital content:

About the product: product description, ingredients, specifications, images, origin.

Usage and safety: user guides, manuals, safety information, videos.

Documentation and legal requirements: ‍‍certificates, documents, regulatory information, information relevant to The Digital Product Passport.

Sustainability and circularity: materials, repair, recycling, sorting, environmental information.

Inspiration and marketing: recipes, inspiration, campaigns, loyalty, brand content.

‍

Separate information for systems and users

In some cases, the same information can be used in multiple ways.

A batch number can be encoded in the barcode using a GS1 Application Identifier, allowing an IT system to register it automatically upon scanning.

The information can simultaneously be used to display digital details about that specific batch. This is relevant in the event of a recall, for example, where a scan can provide information on whether the specific batch is affected and what the user should do.

If an IT system needs to read the information directly, it is not enough to simply display it on a digital product page. The information must also be encoded in the barcode.

‍

Different users may need different information

If different users (e.g., consumers, trading partners, authorities, repair technicians, or other stakeholders) need access to different information about the same product, a resolver can be useful. A resolver can connect the product identification to the relevant digital resources. This allows the same product to lead to multiple information destinations.

→ Read more: What is a resolver?

‍

Clarify responsibility and lifespan

Before launching, you should clarify:

  • Who owns and maintains the digital information?
  • Where is the master data located?
  • Who is authorized to change the information?
  • How long should the information be available?
  • Who owns and controls the domain?
  • Who is responsible if the destination is changed?

Packaging can be in circulation for several years. Therefore, use a domain and a technical solution that the company expects to control in the long term. The link should be working even if the content is moved, a campaign ends, or a technology provider is replaced.

→ Read the guide: How to create a GS1 Digital Link

Do you want to download the guide?

arrow-right-circle
Hent den her

Do you still need help? Reach out to our support team. We are always ready to help.

Har du spørgsmål?
Contact us here

What information should be encoded in the 2D barcode - and what should be digital?

Newest guides

A screenshot of the Excel system and the download icon
GS1Trade Packaging
Trade Sync ikon - en lyserød cirkel med en illustration af tre cirkler ovenpå hinanden i en cylinder
GS1Trade Exact
GS1Trade Image
GS1Trade Transact
GLN
GS1Trade Activate
GTIN
|
Video
Skriftlig vejledning
 min
How to import your data using the Excel template
Learn how to import your product and packaging data using the data import template in Excel.
This is some text inside of a div block.
Person pouring a scoop of protein powder into a container
GS1Trade Packaging
Trade Sync ikon - en lyserød cirkel med en illustration af tre cirkler ovenpå hinanden i en cylinder
GS1Trade Exact
GS1Trade Image
GS1Trade Transact
GLN
GS1Trade Activate
GTIN
|
Video
Skriftlig vejledning
 min
Guide to creating dietary supplements in GS1Trade Sync
Learn more about how to properly register dietary supplements in GS1 according to current requirements for nutrition, dosage and use.
This is some text inside of a div block.
Person holding half a chocolate bar in their hand
GS1Trade Packaging
Trade Sync ikon - en lyserød cirkel med en illustration af tre cirkler ovenpå hinanden i en cylinder
GS1Trade Exact
GS1Trade Image
GS1Trade Transact
GLN
GS1Trade Activate
GTIN
|
Video
Skriftlig vejledning
 min
Guide to creating meal replacements in GS1Trade Sync
Learn more about how meal replacements are correctly registered in GS1 according to current nutrition labeling and reference intake requirements.
This is some text inside of a div block.