The Comprehensive Technical Guide to GS1-128 Barcodes, Application Identifiers (AI) & Supply Chain Logistics Serialization
In modern warehouse management systems (WMS), automated material handling, pharmaceutical serialization, and retail grocery distribution, the GS1-128 barcode standard (formerly known as UCC/EAN-128) is the global identification language used to encode multi-attribute product and logistics data into a single, high-density 1D linear barcode. Governed by GS1 General Specifications, GS1-128 utilizes the Code 128 symbology combined with standardized Application Identifiers (AIs) to encode Global Trade Item Numbers (GTIN), batch/lot numbers, expiration dates, serial numbers, variable net weights, and Serial Shipping Container Codes (SSCC-18).
Unlike simple retail UPC or EAN-13 barcodes which encode only a static 12 or 13-digit product identifier, GS1-128 barcodes can encode multiple alphanumeric data fields separated by special Function Code 1 (FNC1) delimiter characters. Accurately parsing raw barcode scan strings into structured JSON and Excel attributes is essential for automated inventory receiving, FDA pharmaceutical track-and-trace compliance (DSCSA), and food safety recall traceability.
Core GS1 Application Identifiers (AI) Reference Table
| Application Identifier (AI) | Data Element Description | Format & Length | FNC1 Delimiter Requirement |
|---|---|---|---|
| (00) | SSCC (Serial Shipping Container Code) | Fixed 18 Digits | No (Fixed Length) |
| (01) | GTIN (Global Trade Item Number) | Fixed 14 Digits | No (Fixed Length) |
| (10) | Batch / Lot Number | Variable up to 20 Alphanumeric | Yes (When followed by other AIs) |
| (11) | Production / Manufacture Date | Fixed 6 Digits (YYMMDD) | No (Fixed Length) |
| (15) | Best Before Date | Fixed 6 Digits (YYMMDD) | No (Fixed Length) |
| (17) | Expiration Date | Fixed 6 Digits (YYMMDD) | No (Fixed Length) |
| (21) | Serial Number | Variable up to 20 Alphanumeric | Yes (When followed by other AIs) |
| (310n) | Net Weight in Kilograms (n = Decimals) | Fixed 6 Digits (e.g. 3102 = 001250 → 12.50 kg) | No (Fixed Length) |
| (320n) | Net Weight in Pounds (n = Decimals) | Fixed 6 Digits (e.g. 3202 = 002500 → 25.00 lbs) | No (Fixed Length) |
| (400) | Customer Purchase Order Number | Variable up to 30 Alphanumeric | Yes (When followed by other AIs) |
β Frustrating Manual Barcode Decoding
- Manually reading continuous 40-character scan strings trying to separate AIs.
- Misinterpreting variable decimal weight multipliers (AI 3102 vs. 3103).
- Receiving rejections from Amazon, Walmart, and Target due to invalid SSCC check digits.
- Incurring chargebacks and inventory receiving delays across distribution warehouses.
β Automated In-Browser GS1-128 Parsing
- Instant extraction of GTIN, lot numbers, expiration dates, serials, and weights.
- Automatic validation of Mod 10 check digits on SSCC-18 and GTIN-14 barcodes.
- Direct image upload decoding using client-side ZXing-js computer vision.
- 100% private in-browser execution with zero supply chain data uploaded.
Mathematical Mechanics of the SSCC-18 and GTIN-14 Mod 10 Check Digit
To ensure scanning integrity, GS1 data structures mandate a modulo 10 checksum calculated using alternating 3-1 weighting from right to left:
Check Digit (d18) = [ 10 - ( ∑ (Odd Position Digits × 3) + ∑ (Even Position Digits × 1) ) mod 10 ] mod 10
Where positions are counted from right to left starting from position 17 back to position 1.
Frequently Asked Questions (FAQ)
The Function Code 1 (FNC1) character serves two functions: when placed in the first character position, it identifies the barcode as a GS1-standard symbol. When placed between data fields, it acts as a separator indicating the end of a variable-length data field (such as a lot number or serial number).
A GTIN (Global Trade Item Number) identifies the specific product SKU (e.g. a case of cereal). An SSCC-18 is a unique license plate number that identifies a specific physical transport unit (e.g. Pallet #000184592019482716), functioning like a tracking number for logistics handling.
Yes. The parsing engine extracts standard GS1 Application Identifiers across all 1D and 2D symbologies, including GS1-128 linear barcodes, GS1 DataMatrix 2D codes, and GS1 Digital Link QR codes.
No. 100% of image computer vision and barcode string parsing executes locally within your web browser tab's JavaScript runtime.
GS1 Supply Chain Standards: GS1 Digital Link & 2D Barcode Migration (Sunrise 2027)
The global retail and healthcare supply chain is currently executing a historic transition known as GS1 Sunrise 2027βthe transition from traditional 1D linear barcodes (UPC/EAN and GS1-128) to 2D barcodes (such as GS1 DataMatrix and GS1 Digital Link QR Codes):
| Barcode Symbology | Physical Dimension & Capacity | Primary Industrial Application | Sunrise 2027 Point-of-Sale Readiness |
|---|---|---|---|
| GS1-128 (Linear 1D) | 1D Barcode (Max 48 Alphanumeric Chars) | Outer shipping cartons, master cases, logistics pallets (SSCC-18). | Standard in warehouse distribution; not scanned at consumer POS. |
| GS1 DataMatrix (2D) | 2D Matrix (Max 2,335 Alphanumeric Chars) | Pharmaceutical unit-dose packaging (FDA DSCSA), medical surgical instruments. | Mandatory across global pharmaceutical and medical device supply chains. |
| GS1 Digital Link (QR Code) | 2D QR Code containing structured web URI | Consumer packaging connecting to web portals, batch recalls, and nutritional data. | Global Standard: Mandated for point-of-sale retail checkout scanning by 2027. |
FDA Drug Supply Chain Security Act (DSCSA) Serialization Mandates
Under the US FDA Drug Supply Chain Security Act (DSCSA), all prescription drug manufacturers, wholesale distributors, and repackagers must encode four mandatory data elements in a 2D GS1 DataMatrix or GS1-128 barcode on every individual prescription drug package:
- Global Trade Item Number (GTIN) (AI 01): 14-digit product identifier incorporating the National Drug Code (NDC).
- Unique Serial Number (AI 21): Unique alphanumeric serial identifier up to 20 characters.
- Lot / Batch Number (AI 10): Manufacturing batch identification for product recall tracing.
- Expiration Date (AI 17): Mandatory expiration timestamp (YYMMDD format).
GS1-128 Barcode Verification & Print Quality Grading (ISO/IEC 15416)
In automated high-speed logistics sorting hubs, printed barcode labels must meet strict optical scanning readability standards governed by ISO/IEC 15416 linear barcode print quality grading:
| ISO Print Quality Parameter | Grading Scale (A to F / 4.0 to 0.0) | Industrial Warehouse Impact |
|---|---|---|
| Symbol Contrast (SC) | Grade A (≥ 70%) to Grade F (< 20%) | Measures optical reflectance difference between dark black bars and light white background substrate. |
| Minimum Edge Contrast (ECmin) | Grade A (≥ 15%) to Grade F (< 15%) | Ensures high-speed laser scanners detect clear boundaries between bar edges and spaces. |
| Modulation (MOD) | Grade A (≥ 0.70) to Grade F (< 0.40) | Evaluates edge sharpness across narrow and wide barcode elements; low modulation causes scan misreads. |
| Quiet Zone Width | Minimum 10 × X-dimension (0.25 inches) | Clear blank space required before the first bar and after the last bar; missing quiet zones cause total read failure. |
Retail Vendor Compliance Chargebacks & Automated Label Auditing
Major retailers (including Walmart, Amazon, Home Depot, and Target) enforce strict vendor compliance guidelines. If a supplier ships cartons with unscannable GS1-128 barcode labels, invalid SSCC-18 check digits, or missing expiration dates, retailers automatically assess vendor chargeback penalties of $2.00 to $5.00 per non-compliant carton plus administrative processing fees. Validating barcode structures in advance protects vendor profitability.
GS1 Global Location Numbers (GLN) & Supply Chain Master Data Alignment
In automated supply chain networks, physical facilities and legal entities are identified using a 13-digit Global Location Number (GLN):
- Operational Physical Identifiers: Identifies specific shipping docks, manufacturing plants, hospital pharmacies, and cross-dock distribution center doors.
- Electronic Data Interchange (EDI) Routing: Used in UN/EDIFACT (NAD segment) and ANSI X12 (N1 segment) to direct electronic orders and shipping notices to exact physical receiving bays without address ambiguity.
- Elimination of Data Redundancy: Replacing manual text address strings with standardized GLNs eliminates delivery errors and accelerates automated cross-dock sorting.
GS1-128 Barcode Engineering Best Practices for Warehouse Automation
To ensure high first-pass scanning read rates in automated high-speed sortation hubs:
- Optimal Thermal Transfer Printing Resolution: Print logistics pallet labels using 300 DPI or 600 DPI thermal transfer barcode printers with high-density resin ribbons to prevent ink bleeding.
- Correct Pallet Label Placement (GS1 Logistics Label Standard): Affix two identical GS1-128 logistics labels per pallet on adjacent sides, positioned between 400 mm and 800 mm from the pallet base and at least 50 mm from the vertical edge.
- Function Code 1 (FNC1) Delimiter Verification: Verify that variable-length Application Identifiers (such as AI 10 for lot numbers or AI 21 for serials) are immediately followed by an FNC1 delimiter character when concatenated before fixed-length AIs.
GS1 Traceability Standards in Food Safety Modernization (FSMA Rule 204)
Under the US FDA Food Safety Modernization Act (FSMA Rule 204), companies that manufacture, process, pack, or hold foods on the Food Traceability List (FTL) must maintain Key Data Elements (KDEs) associated with Critical Tracking Events (CTEs). Utilizing standardized GS1-128 barcodes encoding GTINs and lot codes allows immediate end-to-end traceability within 24 hours during agricultural contamination recalls.
Global Standards for Healthcare Traceability (GS1 Healthcare US)
In pharmaceutical and medical device supply chains, patient safety and regulatory compliance depend on automated barcode scanning across hospital points of care:
- Unique Device Identification (FDA UDI Rule): Medical device manufacturers must encode the Device Identifier (DI / GTIN) and Production Identifiers (PI / Lot, Expiration, Serial, Manufacturing Date) in standardized GS1-128 or GS1 DataMatrix formats on all surgical implants and diagnostic instruments.
- Bedside Medication Verification (Five Rights of Medication Administration): Hospital nurses scan the patient wristband barcode and the unit-dose pharmaceutical GS1 barcode to verify: Right Patient, Right Drug, Right Dose, Right Route, and Right Time before administering medication.
- Recall Automation & Inventory Expiration Rotation: Automated WMS scanners rotate inventory using First-Expired, First-Out (FEFO) logic based on scanned GS1-128 expiration timestamps, eliminating expired medication waste.
Summary of GS1-128 Barcode Decoding and Serialization Standards
Standardized GS1 Application Identifiers (AIs), Mod 10 checksum validation on SSCC-18 pallet license plates and GTIN-14 case codes, and automated browser-side decoding provide seamless inventory tracking, pharmaceutical FDA DSCSA compliance, and automated warehouse receiving operations.
GS1-128 Label Placement & Warehouse Scanning Optimization
To ensure high scan rates across automated conveyor sortation systems and forklift scanners:
- High-Contrast Label Media: Use pure white thermal transfer label stock paired with high-resin black ribbons to achieve an ISO Grade A Symbol Contrast score.
- Dual-Sided Pallet Labeling: Affix identical GS1-128 logistics labels to both the long side and short side of every stretch-wrapped pallet.
- Quiet Zone Integrity: Preserve at least 10 times the narrow bar width of clear blank space around the barcode perimeter to prevent scan truncation.
GS1 Application Identifier Concatenation Rules & Parsing Algorithms
When encoding multiple data elements into a single GS1-128 linear barcode symbol:
- Fixed-Length vs. Variable-Length AI Sequencing: Group fixed-length Application Identifiers (such as AI 01 GTIN, AI 11 production date, or AI 17 expiration date) at the beginning of the barcode string whenever possible, eliminating the need for intermediate FNC1 separator characters.
- Variable-Length AI Delimitation: When variable-length data fields (such as AI 10 batch lot or AI 21 serial number) precede other data elements, an ASCII 29 (GS) or FNC1 control character must be inserted immediately following the field to signal the start of the next Application Identifier.
- Human-Readable Interpretation (HRI): Printed text below the barcode must display Application Identifiers enclosed in parentheses (e.g. (01) 00850012345678 (17) 261231 (10) BATCH45) to facilitate manual human reading, while the encoded barcode data stream omits the parentheses.
GS1 Barcode Quality Control Audit Checklist
Before releasing production packaging labels to global distribution channels:
- Verify Application Identifier syntax and confirm fixed-length vs. variable-length field formatting.
- Validate the Modulo 10 check digit on all GTIN-14, GTIN-13, and SSCC-18 barcode numbers.
- Ensure adequate quiet zone clear space exists on both ends of the barcode symbol.
- Perform high-speed scanner test reads on physical production substrate samples.
GS1 Standards Compliance and Verification Architecture
GS1 standards provide interoperable global supply chain visibility across 2 million enterprises worldwide, enabling automated scanning from foreign manufacturing plants to domestic retail checkouts.