EAN to QR Code: Represent GTIN and Product Links Correctly

Represent an existing EAN or GTIN in a QR code, distinguish plain digits from GS1 Digital Link and prepare product labels carefully.

An existing EAN can be represented in a QR code as plain digits or as the product identifier inside a GS1 Digital Link address. For a product link, choose GS1 mode in the QR code generator. Use the complete allocated number. Rendering it in another symbol does not change its underlying product assignment or the requirements agreed with your trading partners.

Establish what your source number means

In everyday use, EAN often means GTIN-13, but people may be referring to either the number or the printed linear symbol. Identify the actual source value before converting anything: a complete GTIN, an internal item reference, compressed UPC-E or an incomplete number. A string’s length alone is not sufficient evidence of its origin or the packaging level it identifies.

Compare the value with product master data. A number assigned to a single retail unit should not automatically identify a case containing several units. Different sizes or variants may also need distinct identifiers. The GTIN, EAN and UPC overview explains the number families and helps distinguish an identifier from its visual representation before preparing another label.

Compare three possible representations

An EAN-13 linear symbol encodes a thirteen-digit number. A normal text QR code can store those same digits, producing a text value when scanned. A camera’s ability to read that value does not imply that checkout software will interpret the code as a replacement for the original EAN symbol. The receiving application decides how it processes the scanned content.

GS1 Digital Link expresses the identifier within a structured web address. Compatible software can interpret the product identifier while a smartphone can open the address in a browser. The GS1 Digital Link guide explains those two uses. Choose the representation according to the intended receiver: the word QR describes a symbol type and does not by itself define a retail product-data format.

Validate the complete GTIN

The example here uses 4006381333931. For production, obtain the value from your actual allocation and master-data process rather than copying a demonstration number. The barcode validator can check length and the mathematical check digit. A successful structural check is useful, but it does not replace confirmation from the responsible brand owner or the appropriate number-allocation organisation.

Product mode accepts eight, twelve, thirteen or fourteen digits including a valid check digit. Avoid copying grouping spaces or presentation separators into the GTIN field. An internal SKU such as ITEM-123 does not belong there. If only part of a number is available, resolve its source first; the Digital Link generator should not turn an undocumented number body into an apparently registered product identity.

Represent the value in fourteen positions

Inside Digital Link, the GTIN follows application identifier 01 and is expressed using fourteen digits. The thirteen-digit example becomes 04006381333931. The extra leading zero fills the required representation and preserves the existing identifier. Do not remove the original check digit or invent another calculation merely because the resulting URI displays one more position than the original EAN number.

A full example is https://example.com/01/04006381333931, following the GS1 Digital Link URI Syntax standard. The example domain illustrates the address format and does not provide a real destination for your goods. Selecting and operating the correct domain is therefore part of the preparation, just as selecting the correct GTIN is.

Build the product link in the generator

Choose “Product: GS1 Digital Link” and enter your base address and complete GTIN. Leave optional fields blank if the code should lead to general product information. Inspect the generated address, especially the boundary between the domain, any base path, 01 and the fourteen-digit identifier. Pasting an already complete product structure into the base field can produce an unintended duplicate path.

Open the planned destination outside the generator. If your shop only recognises descriptive product paths, configure how the GTIN-based path reaches the corresponding page. This may involve a route or redirect under your control. The generator does not set up DNS, web-server rules or shop routing. Schedule a small technical acceptance check before committing to a larger print run of packaging or labels.

Transfer optional data intentionally

A batch or serial number makes the link more specific. Decide whether the code represents all units of a product, one production batch or one individual item. A fixed serial value in a general printing template would be repeated across every package. That is a data-preparation mistake which a correctly rendered QR image cannot identify or repair on its own.

Use the expiry field only when expiry is the intended attribute. A best-before date is not interchangeable with it. Record which values come from which systems and who approves them. When batches or individual units change, the corresponding QR input must change too. Remove sample values from production templates and check a generated record against the physical item before printing a series of labels.

Keep existing retail marking until compatibility is agreed

Whether a QR code can replace a particular linear barcode depends on trading-partner requirements and the systems involved. A mobile phone exercises a different workflow from a checkout. Test optical recognition, extraction of the GTIN and selection of the correct item in the receiving business system as separate steps. Success at one step does not establish success at the others.

The GS1 industry target Ambition 2027 concerns processing defined 2D codes alongside existing linear symbols. It does not require every EAN symbol to disappear on a universal legal deadline. Decide on dual marking or replacement using actual device tests and agreements with the organisations that receive and sell your goods.

Check the exported file and the final print

Use PNG when your application expects a raster image and SVG when the layout workflow supports vectors. Both exports carry the same product link. Preserve the square proportions and white margin. The selected number of pixels per module is not a promise of a particular print size in millimetres; suitability also depends on the payload, printing method and practical scanning distance.

Scan a test print in the planned environment. Use a smartphone and the intended operational devices, then compare the decoded identifier and destination with the approved product record. The general QR-code creation guide covers exports, text content and common preparation mistakes. Keep the test close to the production workflow rather than relying solely on an enlarged screen preview.

Document the transition

Store the original GTIN, generated address and released graphic together. Name files so that the product and any relevant batch can be recognised without depending on the generic download filename. Record which partners have successfully tested the proposed code and which software or device versions were involved. This makes later packaging decisions traceable and helps diagnose a failed downstream import.

Create the final product symbol in the QR code generator and inspect the payload immediately before downloading. The tool represents an existing number; it does not register it or confirm the identity, authenticity or ownership of a physical product. Keeping the scope clear prevents a mathematical check from being mistaken for a broader commercial assurance.

FAQ

Does converting EAN create a new GTIN?

No. A valid existing identifier is represented in another data format. Leading filler zeroes do not allocate another number.

Can I simply encode the EAN digits as text?

That can suit a workflow expecting plain text. A GS1 product link requires the corresponding Digital Link structure and compatible receiving software.

Does the check digit identify the product?

No. It tests the mathematical structure and does not establish registration or product assignment.