๐Ÿ“ฆ GS1-128 Barcode Generator

GTIN (product ID) (01)
Batch/lot number (10)
Expiry date (YYMMDD) (17)
Serial number (21)

GS1-128 is a barcode standard based on GS1 Application Identifiers (AIs), widely used for supply chain management in logistics and retail.

Combine GS1 Application Identifiers (AIs) โ€” GTIN (product identifier), batch/lot number, expiry date, serial number โ€” to generate a GS1-128 barcode widely used in logistics and retail.

How to use

  1. Check the box for each field you want to include (GTIN, batch/lot, expiry date, serial number).
  2. Enter the value for each.
  3. Download the generated barcode as SVG or PNG.

How the calculation works

Generate a GS1-128 barcode, used in logistics and healthcare. Based on Code 128, it is an international standard that combines several pieces of data in one barcode, each marked by an Application Identifier (AI) number that says what it means. AIs available here (01) GTIN product code (14 digits, the last a check digit) (10) Batch or lot number (17) Expiry date (YYMMDD) (21) Serial number The GTIN check digit and the month and day of the expiry date are verified automatically, with an error shown if they are wrong. When scanned, the data comes out as one string without brackets, such as โ€œ01โ€ฆ17โ€ฆ10โ€ฆโ€.

Worked example

(01)09501101530003(17)251231(10)LOT123 โ†’ scanned as: 01095011015300031725123110LOT123 One barcode carries the GTIN โ€œ09501101530003โ€, the expiry date December 31, 2025 and the lot โ€œLOT123โ€.

Things to be aware of

  • After variable-length fields such as lot or serial numbers, a separator (FNC1) is inserted automatically.
  • In Japan, packaging for prescription medicines and medical devices must carry GS1-128 or GS1 DataBar markings.
  • To use a 13-digit JAN code as a GTIN, add a leading 0 to make 14 digits.

FAQ

What is GS1-128?

It's a barcode standard defined by GS1, the international standards organization, built on Code128 with embedded data tagged by 2-4 digit Application Identifiers (AIs). It's widely used for supply chain management in logistics and retail.

What should I enter for GTIN (AI 01)?

A 14-digit number. The last digit is a check digit โ€” an error is shown if it isn't valid. If converting from an existing product code like a JAN code, pad it to 14 digits.

What format is the expiry date (AI 17)?

A 6-digit YYMMDD format (2-digit year + month + day). For example, December 31, 2025 would be "251231".