GS1-128 Barcode Generator

Type your GS1 data as (AI)value pairs, for example (01) for the GTIN, (17) for the expiry date and (10) for the batch, and get a valid GS1-128 barcode instantly. FNC1 characters are inserted for you and check digits are verified.

  • 100% free
  • No sign-up
  • No watermark
  • Works offline in your browser

Type each Application Identifier in parentheses followed by its value, with no spaces, e.g. (01)09506000134352(17)271231(10)LOT42A. Check digits for (00), (01), (02) and (410) must be included and correct; dates must be valid YYMMDD.

Customize size, color & style
Make many

How to create a GS1-128 barcode

  1. Enter your data in the box above. Type each Application Identifier in parentheses followed by its value, with no spaces, e.g. (01)09506000134352(17)271231(10)LOT42A. Check digits for (00), (01), (02) and (410) must be included and correct; dates must be valid YYMMDD.
  2. The barcode updates live as you type. Open Customize to change the bar height, colors, rotation or quiet zone.
  3. Click Download PNG for labels and documents, or SVG / PDF for print and packaging design.
  4. Test it with our online barcode scanner before you print a large run.

What is a GS1-128 barcode?

A GS1-128 barcode (formerly UCC/EAN-128) is a Code 128 barcode that starts with a special FNC1 character and carries data in a standard structure defined by GS1. Each piece of data is prefixed by an Application Identifier (AI), a 2 to 4-digit code that says what the following value means and how long it is. Scanners and warehouse systems read the AIs and file each value in the right field automatically.

GS1-128 is the barcode on pallet labels, shipping cartons and many healthcare and food products. It is used for the SSCC on logistics labels, for GTINs with batch and expiry data, and for variable-weight goods such as meat and cheese cases. It is not used on retail items scanned at the checkout, which carry EAN-13 or UPC-A.

Common Application Identifiers

AIMeaningFormat
00SSCC (serial shipping container code)18 digits, with check digit
01GTIN of the trade item14 digits, with check digit
02GTIN of trade items contained in a logistic unit14 digits, used with (37)
10Batch or lot numberUp to 20 characters
11Production dateYYMMDD
13Packaging dateYYMMDD
15Best before dateYYMMDD
17Expiration dateYYMMDD
21Serial numberUp to 20 characters
30Variable count of itemsUp to 8 digits
37Count of trade items in a logistic unitUp to 8 digits
310nNet weight in kg, n = decimal places6 digits, e.g. (3103)001250 = 1.250 kg
400Customer purchase order numberUp to 30 characters
410Ship to / deliver to GLN13 digits, with check digit
420Ship to postal code (single postal authority)Up to 20 characters

In expiry and best-before dates, a day of 00 means the last day of that month. When a variable-length field such as (10) or (21) is followed by another AI, a FNC1 separator is needed. This generator adds it for you, so you only type the parentheses and values.

Where GS1-128 is used

  • Pallet and carton labels with an SSCC (GS1 logistic label)
  • Cases with GTIN, batch and expiry or best-before dates
  • Variable-weight food cases with net weight (310n)
  • Medical devices and pharmaceuticals with lot and serial numbers
  • Shipments that carry a purchase order (400) or ship-to GLN (410)
  • Retailer and distributor compliance labels

GS1-128 specifications

TypeLinear (1D), variable length, Code 128 with FNC1
CharactersDigits, A–Z, a–z and a limited set of symbols allowed by GS1
Data capacityUp to 48 data characters per symbol
Maximum width165 mm (6.5 in) including quiet zones
Check charactersCode 128 modulo 103 (automatic), plus GS1 mod 10 inside SSCC, GTIN and GLN values
Data structureApplication Identifiers in parentheses in the human-readable text
Quiet zone10 times the narrow bar width on each side
StandardGS1 General Specifications, ISO/IEC 15417

Tips for a barcode that scans first time

  • Put fixed-length AIs such as (01), (11) or (17) first and variable-length AIs such as (10) or (21) last, so fewer FNC1 separators are needed and the barcode is shorter.
  • Do not type spaces between AIs. The parentheses mark each AI and are not encoded in the bars.
  • Use the GTIN check digit calculator before you encode a (01) value. A wrong check digit is rejected.
  • If the data gets too long to fit in 165 mm, split it across two GS1-128 barcodes on the same label, as GS1 logistic labels do.
  • For an SSCC pallet label, use the SSCC generator, which builds the 18-digit code and its check digit for you.

Frequently asked questions

What is a GS1-128 barcode used for?

GS1-128 is used on shipping cartons, pallets and healthcare or food cases to carry structured data such as the SSCC, GTIN, batch number, expiry date and weight. It is a supply chain barcode, so it is scanned in warehouses and at goods-in, not at the retail checkout.

GS1-128 vs Code 128: what is the difference?

GS1-128 is a Code 128 barcode that begins with FNC1 and follows GS1 rules for its content. Plain Code 128 can hold any text. GS1-128 must contain valid Application Identifiers and values, so systems know which number is the GTIN and which is the expiry date. Use plain Code 128 for internal labels and GS1-128 when a trading partner asks for GS1 data.

How do I enter Application Identifiers?

Type each AI in parentheses followed straight away by its value, with no spaces: (01)09506000134352(17)271231(10)LOT42A. The generator removes the parentheses from the bars, inserts FNC1 where needed and shows the parentheses in the human-readable line.

Is GS1-128 the same as UCC-128 or EAN-128?

Yes. UCC-128 and EAN-128 are old names from before the UCC and EAN International merged into GS1. A label spec that asks for UCC-128 wants a GS1-128 barcode, usually carrying an SSCC with AI (00).

Why does my GS1-128 barcode show an error?

The generator checks the data against GS1 rules. Common causes are a wrong check digit in (00), (01) or (02), a GTIN that is not 14 digits (pad a 12 or 13-digit GTIN with leading zeros), an invalid date such as month 13, or a value that is too long for its AI.

Does a GS1-128 barcode need a GS1 company prefix?

For trading with retailers and distributors, yes. The GTIN, SSCC and GLN values inside the barcode must be built from a GS1 company prefix licensed to you. Creating the barcode image here is free. See what is a GTIN.

Related free tools