---
title: "GS1-128 Barcode Generator – Free UCC/EAN-128 Labels"
description: "Free GS1-128 (UCC/EAN-128) barcode generator. Type Application Identifiers like (01) GTIN, (17) expiry and (10) batch, and download PNG, SVG or PDF."
url: https://barcodejar.com/gs1-128-barcode-generator
source: BarcodeJar (free barcode tools)
---

# 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.

_Interactive tool: open https://barcodejar.com/gs1-128-barcode-generator to use it in your browser. It is free with no sign-up._

## 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](https://barcodejar.com/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](https://barcodejar.com/code-128-barcode-generator) 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](https://barcodejar.com/sscc-generator) 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

| AI | Meaning | Format |
| --- | --- | --- |
| 00 | SSCC (serial shipping container code) | 18 digits, with check digit |
| 01 | GTIN of the trade item | 14 digits, with check digit |
| 02 | GTIN of trade items contained in a logistic unit | 14 digits, used with (37) |
| 10 | Batch or lot number | Up to 20 characters |
| 11 | Production date | YYMMDD |
| 13 | Packaging date | YYMMDD |
| 15 | Best before date | YYMMDD |
| 17 | Expiration date | YYMMDD |
| 21 | Serial number | Up to 20 characters |
| 30 | Variable count of items | Up to 8 digits |
| 37 | Count of trade items in a logistic unit | Up to 8 digits |
| 310n | Net weight in kg, n = decimal places | 6 digits, e.g. (3103)001250 = 1.250 kg |
| 400 | Customer purchase order number | Up to 30 characters |
| 410 | Ship to / deliver to GLN | 13 digits, with check digit |
| 420 | Ship 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

-   **Type:** Linear (1D), variable length, Code 128 with FNC1
-   **Characters:** Digits, A–Z, a–z and a limited set of symbols allowed by GS1
-   **Data capacity:** Up to 48 data characters per symbol
-   **Maximum width:** 165 mm (6.5 in) including quiet zones
-   **Check characters:** Code 128 modulo 103 (automatic), plus GS1 mod 10 inside SSCC, GTIN and GLN values
-   **Data structure:** Application Identifiers in parentheses in the human-readable text
-   **Quiet zone:** 10 times the narrow bar width on each side
-   **Standard:** GS1 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](https://barcodejar.com/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](https://barcodejar.com/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](https://barcodejar.com/code-128-barcode-generator) 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](https://barcodejar.com/guides/what-is-a-gtin).

## Related free tools

[**SSCC Generator**SSCC-18 pallet codes with check digit and label.](https://barcodejar.com/sscc-generator)[![Code 128 Generator example](/thumbs/code128.svg)**Code 128 Generator**Create Code 128 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/code-128-barcode-generator)[**GTIN Check Digit Calculator**GTIN-8, 12, 13 and 14 check digit calculator.](https://barcodejar.com/gtin-check-digit-calculator)[![ITF-14 Generator example](/thumbs/itf14.svg)**ITF-14 Generator**Create ITF-14 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/itf-14-barcode-generator)[![GS1 Data Matrix Generator example](/thumbs/gs1datamatrix.svg)**GS1 Data Matrix Generator**Create GS1 Data Matrix barcodes free. PNG, SVG, PDF.](https://barcodejar.com/gs1-datamatrix-generator)[**Barcode Label Generator**Print barcodes on Avery and other label sheets as PDF.](https://barcodejar.com/barcode-label-generator)[![GS1 DataBar Expanded Generator example](/thumbs/databarexpanded.svg)**GS1 DataBar Expanded Generator**Create GS1 DataBar Expanded barcodes free. PNG, SVG, PDF.](https://barcodejar.com/gs1-databar-expanded-generator)[**What Is a GTIN?**GTIN-8, 12, 13 and 14 in plain English.](https://barcodejar.com/guides/what-is-a-gtin)
