How To Structure GS1 Application Identifiers In A GS1-128 Barcode (Practical Guide)
GS1-128 Barcode
Definition
A GS1 barcode symbology capable of encoding identifiers plus attribute data through GS1 Application Identifiers.
Overview
GS1-128 Barcode A GS1 barcode symbology capable of encoding identifiers plus attribute data through GS1 Application Identifiers. Structuring those Application Identifiers (AIs) correctly is essential to ensure scanners and back-office systems interpret GTINs, SSCCs, expiry dates, lot numbers and quantities consistently.
This practical guide covers the rules for composing GS1 element strings, choosing and ordering AIs, dealing with fixed- and variable-length fields, and configuring printers and WMS to produce and consume GS1-128 barcodes reliably. Warehouse teams and label vendors will find actionable steps and examples they can test before production runs.
Step-By-Step: Constructing A GS1 Element String
1) Identify Required AIs: Determine which identifiers and attributes are required (e.g., GTIN (01), Lot (10), Expiry (17), SSCC (00), Quantity (37)). Trading-partner specifications or regulatory requirements typically dictate the set.
2) Use AI Formats: Each AI has a fixed or variable length. Fixed-length AIs (e.g., GTIN 14 digits, Expiry 6 digits) require exact-length data. Variable-length AIs (e.g., Lot (10) up to 20 alphanumeric) may require a separator when not last.
3) Order Fields Logically: There’s no universal enforced order, but common practice places identifiers before attributes — for example, GTIN before lot and expiry, SSCC first on pallet labels. Maintain consistent ordering across shipments to simplify parsing.
4) Insert Group Separators For Variable Fields: When a variable-length AI is not the final field in the element string, include a group separator (GS) between fields. In labels this is implemented as the ASCII GS (0x1D) control character or an equivalent function in your label-printing software.
Common AIs And Their Formats
- 01 GTIN: Fixed 14 digits; identifies the trade item (unit, case).
- 00 SSCC: Fixed 18 digits; identifies logistic units like pallets.
- 10 Batch/Lot: Variable up to 20 alphanumeric characters; requires GS if followed by another AI.
- 17 Expiry Date: Fixed 6 digits in YYMMDD format.
- 37 Count: Variable numeric for quantity; practical length depends on expected maximum.
- 310x Net Weight: Fixed 6 digits plus implicit decimal determined by the last digit; used for weights in kilograms.
Label Example And Encoded Payload
Human-readable label: (01)09506000123458 (10)BATCH123 (17)240731 (37)24. Encoded GS1-128 payload (conceptual): FNC1 0109506000123458 10BATCH123 GS 17240731 3724. Note: parentheses are not encoded; they’re a human-readable convention. The actual encoded stream contains numeric AI codes, data digits/characters, and the FNC1/GS control functions as required.
Printer And WMS Configuration
Configure your label-printing software to:
- Emit FNC1: Ensure the first data position inserts FNC1 so the barcode is recognized as GS1-128.
- Encode GS For Separators: Insert ASCII 0x1D or the printer’s GS instruction between variable-length fields unless that field is last.
- Character Sets: Use Code 128 character set appropriate to your data (Code Set C is efficient for numeric-only runs like GTINs and dates).
On the WMS/ERP side, configure a GS1 parser that maps each AI to the correct database field. Many barcode middleware products provide out-of-the-box GS1 parsing; if you build custom ingestion, use the GS1 General Specifications as the authoritative formatting reference.
Testing And Verification
Before full deployment perform these tests:
- Print Tests: Verify that test labels print with correct X-dimension and contrast; use production label stock and printers to simulate real conditions.
- Scan And Parse: Scan labels with handheld scanners and warehouse fixed readers; confirm that parsed fields populate correct WMS fields including date format conversions.
- Partner Acceptance: Send sample labels and scans to trading partners and obtain sign-off against their label guidelines.
Common Pitfalls
Frequent mistakes include forgetting the initial FNC1, omitting GS separators on variable-length fields, using parentheses in the encoded data, and misordering AIs. Also watch for printer font or scaling issues that change barcode density and cause read failures at receiving docks.
In short, the GS1-128 Barcode uses GS1 Application Identifiers to carry structured identifiers and attributes. Correct composition of element strings — selecting AIs, respecting fixed vs variable lengths, inserting separators, and configuring printers and software — ensures barcodes are readable, parseable and compliant with trading-partner requirements.
Sources And Additional Reading (3)
- GS1-128
“GS1-128.” GS1, https://www.gs1.org/standards/barcodes/gs1-128.
- Application Identifiers (AIs)
“Application Identifiers (AIs).” GS1, https://www.gs1.org/standards/id-keys/application-identifiers.
- GS1 General Specifications
“GS1 General Specifications.” GS1, https://www.gs1.org/standards/gs1-general-specifications.
More from this term
Looking for a 3PL?
Compare warehouses on Racklify and find the right logistics partner for your business.