Barcode Types

GS1-128 vs. Code 128: What Is the Difference?

Compare Code 128 and GS1-128, see how application identifiers describe data, and check what a recipient needs before printing.

Share
Table of contents

Use GS1-128 when your trading partner requires GS1-formatted data, such as a trade item identifier and a lot number. Use Code 128 for an agreed internal identifier when GS1 formatting is not required. GS1-128 is a subset of Code 128: it uses a special start sequence and GS1 application identifiers (AIs) to give data a defined meaning.[1]

A Code 128 symbol that scans successfully is not automatically a GS1-128 symbol. The data, encoding, label and receiving process must meet the applicable requirements. GS1-128 was previously called UCC-128, a name you may still see in shipping instructions.[1]

Compare the two formats

Decision Code 128 GS1-128
Typical task An internal system reads an agreed string, such as an asset ID. Trading partners exchange identifiers and attributes under GS1 rules.
Meaning of data Defined by the application using it. AIs identify the meaning and format of the following data.
Start Uses a Code 128 start character. Uses a Code 128 start character followed by FNC1 to signal GS1 formatting.
Acceptance Depends on the reader and internal application. Also depends on GS1 data rules and the recipient’s label and business requirements.

A barcode image does not issue a GTIN or a shipping identifier. Obtain the applicable identifiers through the proper GS1 process and follow the recipient’s current instructions before making production labels.

How application identifiers work

An AI is a prefix that tells a receiving system what the following data represents. The GS1 AI directory identifies, for example, 01 as a GTIN, 10 as batch or lot, 11 as production date and 17 as expiration date.[2] Which fields are required depends on the application and your trading partner; these are examples, not a universal list of mandatory fields.

Consider this illustrative human-readable representation:

(01)12345678901231(11)261130(10)LOT123

  • (01) identifies the following 14-digit value as the GTIN field.
  • (11) identifies 261130 as a production date in YYMMDD form: November 30, 2026.
  • (10) identifies LOT123 as a lot value.

The number and lot above are simulated. They are not evidence of an assigned GTIN or a real product. GS1 US gives a foodservice example using these three AIs, but a different recipient may ask for other data.[1]

The parentheses make the AI boundaries understandable to a person reading the label. Do not assume typing that visible text into a generic Code 128 generator will create correct GS1-128 data. Encoding tools differ in how they accept AIs and insert control characters. Follow the selected tool’s GS1 instructions and inspect the decoded data, not just the text printed below the bars.[3]

Why FNC1 and separators matter

At the beginning of a GS1-128 symbol, FNC1 identifies the data as using GS1 rules. FNC1 can also serve as a separator between element strings when required; these are different positions and purposes.[3]

Some element strings have a predefined length. Others need a separator when another element follows. The distinction is not simply “fixed length versus variable length”: GS1’s specification identifies the predefined-length cases in a table.[3] For example, if a variable-length lot field comes before a production date, the separator tells the receiving system where the lot ends. If the lot is the final field, the end of the symbol supplies the boundary. Confirm the exact rules and tool input syntax for your fields rather than manually adding visible parentheses as separators.

A scanner or application may show the separator differently, or not visibly at all. When troubleshooting, use a reader or diagnostic view that exposes the raw data and symbology identifier, then check how the receiving application parses it. The decoded separator is transmitted as the ASCII Group Separator control character under the cited GS1 specification.[3]

Choose and verify a label

  1. Get the requirement. Ask the partner which packaging or logistics unit is being identified, which barcode and AIs it requires, and whether the label must match an advance ship notice or other record.
  2. Prepare the data. Obtain the correct identifiers and field values. Check the required lengths, dates, lot values and relationships using the current GS1 rules and partner instructions.
  3. Use a GS1-capable encoder. Enter the fields in the format that encoder requests. Check how it handles the initial FNC1, separators, human-readable text and check digits. A generic Code 128 setting alone is not enough evidence.
  4. Inspect and scan a representative printed label. Compare the raw decoded data and each parsed field with the source. Confirm that the intended scanner and application recognize the data and that the business record matches the shipment.
  5. Investigate by stage. A no-read may point to print quality, size, quiet zones or reader settings. A successful read with merged or wrong fields may point to data, separator or parser configuration. A correctly parsed label can still fail a partner’s business rules.

A successful scan is a useful practical check, but it is not a formal print-quality grade or proof of partner acceptance. Where a grade is required, use the specified verification method and criteria.[4]

References

[1] GS1 US. What is a GS1-128 barcode? https://www.gs1us.org/upcs-barcodes-prefixes/gs1-128

[2] GS1. GS1 Application Identifiers. https://ref.gs1.org/ai/

[3] GS1. GS1 General Specifications Standard, Release 25.0, sections 7.8.3–7.8.5. https://documents.gs1us.org/adobe/assets/deliver/urn:aaid:aem:afbf55ad-0151-4a0c-8454-d494c0dc9527/GS1-General-Specifications.pdf

[4] GS1. How can I measure the quality of my printed barcodes? https://support.gs1.org/support/solutions/articles/43000734152-how-can-i-measure-the-quality-of-my-printed-barcodes-