Show details for GS1 Barcodes in MegaEdit

GS1 Barcodes in MegaEdit

Print scannable GS1-128 and GS1 DataMatrix barcodes on your MegaEdit products.

GS1 Barcodes in MegaEdit

Print scannable GS1-128 and GS1 DataMatrix barcodes on your MegaEditInfigo's browser-based product personalisation editor, used to build and configure dynamic templates that end users customise online (text, images, clipart, masks, backgrounds, and more). products.

Guide6 min readVideo9-step guideUpdated 19 Oct 2026

Overview

GS1 barcodes carry more than a product number: one code can hold the product number (GTIN), an expiry date and a batch number, which is what retailers and distributors scan at goods-in. MegaEdit can print them on product labels, packaging and any other MegaEdit productA product type in Infigo that uses the browser-based MegaEdit editor to let customers personalise templates online..

What is a GS1 barcode?

GS1 is the global, not-for-profit organisation that sets the standards behind the barcodes used in retail, healthcare and logistics. A company joins GS1 to get its own product numbers, called GTINs (Global Trade Item Numbers).

A standard retail barcode, such as an EAN-13 on a supermarket product, holds only the GTIN. A GS1 barcode can hold the GTIN plus extra information about that exact item. Each piece of information starts with a short code in brackets called an Application Identifier (AI), which tells the scanner what the data is:

  • (01) - the GTIN, 14 digits
  • (17) - the expiry date, as YYMMDD (271231 is 31 December 2027)
  • (10) - the batch or lot number
  • (21) - a serial number

So (01)09501101530003(17)271231(10)LOT2410 means "this product, expiring 31 December 2027, from batch LOT2410". You type the brackets so MegaEdit knows where each piece starts. They aren't stored in the code itself, but they're shown in the text printed under the barcode so people can read it.

Retailers, wholesalers and healthcare buyers often ask their suppliers for GS1 barcodes, because they track stock, expiry dates and recalls by scanning them.

Which GS1 type to use

  • GS1 128 - a linear (striped) barcode, common on cartons, pallets and shipping labels.
  • GS1 DataMatrix - a small square 2D code that holds the same data in much less space. It's common on healthcare products and small items.
  • GS1 DataBar Expanded - a linear barcode that till scanners can read, often used on fresh food with a weight, price or best-before date.
  • GS1 DataBar Expanded Stacked - the same barcode split over several rows, for narrow labels.

If you're not sure, ask your customer which type their trading partner scans.

What it does

  • GS1 barcode types in the editor - GS1 128, GS1 DataMatrix, GS1 DataBar Expanded and GS1 DataBar Expanded Stacked, alongside the standard types (EAN, UPC, Code 128, QR Code and more).
  • Several pieces of data in one code - each value follows its GS1 Application Identifier, such as (01) for the GTIN, (17) for the expiry date and (10) for the batch number.
  • Ready on the template - save the barcode as the product default, and every customer starts with it on their design.
  • Customers can update it - for example, a new batch number for each print run.

How it works

  • MegaEdit product > Scripts tab - tick Barcode Field to add the Add Barcode button to the editor.
  • Barcode Field > Config - { "showExtendedBarcodes": true } adds the GS1 types.
  • Editor > Fields > Add Barcode - choose the type, enter the value, then Menu > Save as product default.

Good to know

  • The Add Barcode button is on the editor's Fields tab. That tab only shows when the template lets customers add text or images.
  • If the value isn't valid GS1 data, the barcode is left blank and no message appears. Check the brackets around each identifier, the length of each value and the GTIN's check digit.
  • Enter the full 14-digit GTIN, including its check digit. MegaEdit checks the check digit but doesn't calculate it for you.
  • Keep Auto scale ticked. The GS1 types ignore Width and Height, so with Auto scale off the barcode can come out very small.
  • Encoding mode, Rectangular and Quiet Zone apply to the standard types only. For space around a GS1 barcode, use Barcode Padding.
  • The readable text under the barcode is on by default. Untick Show Human Readable to hide it.
  • Leave the Barcode Field config in place once you've used the GS1 types. If you remove it, any GS1 barcodes already on designs go blank.
  • Use your own GS1-registered GTINs, and test-scan a printed proof before a full run.
Batch and server-side scriptsGS1 barcodes are drawn in the editor and print normally in the output PDF. They can't be regenerated on the server yet, so batch mode, data merge and server-side scripts leave a GS1 barcode blank. For barcodes that change per record in a batch, use a standard type.

For the standard barcode types and all of the Barcode Field settings, see Enabling and utilising barcodes in MegaEdit. For batch barcodes, see Using MegaEdit Batch Mode to Update Barcodes.

Step-by-step

  1. Turn on the Barcode Field script

    Go to Catalogue > Product Types > MegaEdit > MegaEdit Products and click Edit next to your product. Open the Scripts tab, tick Barcode Field and click Save changes. This adds the Add Barcode button to the editor for this product.

    Scripts tab: Barcode Field ticked

    Scripts tab: Barcode Field ticked
  2. Show the GS1 barcode types

    Still on the Scripts tab, click Config next to Barcode Field. In Script config, enter { "showExtendedBarcodes": true } and click Save. Without this, the barcode types stop at the standard ones (EAN, UPC, Code 128, QR Code, Data Matrix and so on).

    Script config: showExtendedBarcodes

    Script config: showExtendedBarcodes
  3. Add a barcode in the editor

    Open the product on your storefront and click Start to open the editor. On the Fields tab, click Add Barcode. The Fields tab appears when the template allows new fields.

    Fields > Add Barcode

    Fields > Add Barcode
  4. Choose a GS1 type

    Double-click the new barcode to open its settings. In Type, choose GS1 128 (a linear barcode for labels and cartons), GS1 DataMatrix (a small square code), or GS1 DataBar Expanded / Expanded Stacked.

    The GS1 types at the end of the Type list

    The GS1 types at the end of the Type list
  5. Enter the GS1 data

    In Value, enter each piece of data after its GS1 Application Identifier in brackets - for example (01)09501101530003(17)271231(10)LOT2410: (01) the 14-digit GTIN, (17) the expiry date as YYMMDD, (10) the batch or lot number. The barcode updates as you type. Use your own GS1-registered GTIN.

    Value with GTIN, expiry date and batch

    Value with GTIN, expiry date and batch
  6. Save it as the product default

    Close the settings, then drag and resize the barcode into place. Open Menu and click Save as product default. Every customer who opens the product now starts with this barcode on the design.

    Menu > Save as product default

    Menu > Save as product default
  7. Your customer's label has the barcode

    When a customer opens the product, the GS1-128 barcode is already on the label, with the data printed underneath it.

    The label with its GS1-128 barcode

    The label with its GS1-128 barcode
  8. Customers can update the data

    Customers can double-click the barcode and change the Value - for example a new batch number for each print run.

    A new batch number

    A new batch number
  9. GS1 DataMatrix for smaller spaces

    The same data can be printed as a GS1 DataMatrix when space on the label is tight. Choose the type that your customers' trading partners scan.

    The same data as a GS1 DataMatrix

    The same data as a GS1 DataMatrix

Video transcript

Overview video

0:00 GS1 barcodes in MegaEdit

0:03 GS1 barcodes carry more than a product number. One code can hold the product number, an expiry date and a batch number, ready for scanning at goods-in.

0:14 Here, a product label with a GS1-128 barcode already on the design.

0:20 Your customer can change the data, such as a new batch number for each print run.

0:26 The same data can be printed as a GS1 DataMatrix, a small square code.

0:33 It's set up on the MegaEdit product. The step-by-step guide on this page shows how.

Step-by-step video

0:00 Add GS1 barcodes to a MegaEdit product

0:04 In this tutorial we'll add a GS1 barcode to a MegaEdit product, and save it on the template for your customers.

0:12 Go to Catalogue, Product Types, MegaEdit, MegaEdit Products, and edit your product. On the Scripts tab, tick Barcode Field, and click Save changes.

0:23 Click Config next to Barcode Field. Enter show extended barcodes, set to true, and save. This adds the GS1 types.

0:32 Now open the product in the editor. On the Fields tab, click Add Barcode.

0:37 Double-click the barcode to open its settings. The GS1 types are at the end of the Type list. Here, GS1-128.

0:46 In Value, put each piece of data after its identifier in brackets. Zero one for the product number, seventeen for the expiry date, and ten for the batch.

0:57 Move the barcode into place. Then open Menu, and click Save as product default.

1:03 Now every customer starts with the barcode on their label.

1:08 They can double-click it to change the data, such as the batch number.

1:13 And the same data can be printed as a GS1 DataMatrix when space is tight.

1:20 That's it. Use your own registered product numbers, and check the type your customers' trading partners scan.

Search terms

Guide | GS1 Barcodes in MegaEditLast updated: 19 Oct 2026
Incomplete