§WHAT IS
What is GS1-128 and what are Application Identifiers?
GS1-128 is Code 128 with a protocol on top: each data block is preceded by a numeric code called Application Identifier that indicates what type of data follows and in what format.
§BARCODE / GS1-128
GS1-128 is Code 128 with Application Identifiers that encode batch, expiration, weight and GTIN in a single barcode. Standard for pharmacy traceability, food with expiration and logistics with variable weight. Pro plan.
Create a free account and upgrade to Pro to generate this format and the other advanced ones (UPC-A, UPC-E, Code 39, ITF-14, GS1-128). Pro also includes unlimited dynamic QR codes, full analytics and a center logo.
§EXAMPLES
Adjust color, font, scale and height from the generator. Changes apply instantly and are saved to your account on the Pro plan.
Classic
Standard black, OCR-B font, default size. Compatible with any scanner.
Compact
Smaller scale, no text below. For small labels with limited space.
Branded
Corporate color on bars, sans-serif font. Scanner readability maintained.
§WHAT IS
GS1-128 is Code 128 with a protocol on top: each data block is preceded by a numeric code called Application Identifier that indicates what type of data follows and in what format.
§WHEN TO USE
When your logistics requires transmitting structured data with the code (GTIN, batch, expiration, variable weight) and the systems that will scan it expect GS1 format with Application Identifiers.
§SPECS
Length
1-80
Characters
Alphanumeric
Example
(01)05012345678900(17)260301(10)ABC123
Check digit
No
§COMPARISON
Code 128 transmits a string. GS1-128 transmits a structured string with fields identified by Application Identifiers. GS1 DataMatrix encodes the same information in 2D format for very small packaging.
§FAQ
Technically you can generate the code and scan it. But the GTIN inside AI 01 must be valid and unique in the market, which requires GS1 registration. If you use it internally without public GTIN, you can invent GTINs for internal use but you'll lose interoperability with external systems. If you'll deliver merchandise to retailers, distributors or pharmacies, the GTIN must be registered to your name in GS1 GEPIR.
Paste the full string with AIs in parentheses: (01)05012345678900(17)260301(10)ABC123. The parentheses are human-readable and print in the rotated text below the code, but the reader ignores them when decoding.
AI 01 (product GTIN, 14 digits), AI 10 (alphanumeric batch), AI 17 (expiration YYMMDD), AI 21 (unique alphanumeric serial number), AI 00 (SSCC for pallets, 18 digits), AI 310x (net weight in kg with x decimals). In European pharma under FMD, AI 01 + AI 17 + AI 10 + AI 21 are required simultaneously.
Any Code 128 reader reads the full string. Systems that understand GS1 process the AIs and separate fields automatically. Systems that don't understand GS1 receive the string as plain text and must parse the AIs by application code. Most modern ERP software (SAP, Microsoft Dynamics, Sage) has native GS1 modules.
No. The technical difference is the FNC1 character at the start of the code, invisible in the human text. If you print Code 128 with parentheses simulating GS1, GS1 readers won't process the AIs because the initial FNC1 identifying the format as GS1 is missing. Adding parentheses to standard Code 128 doesn't convert the code into GS1-128.
§GENERATORS
You have 9 generators on codigo-qr.es. QR codes always free, Code 128 and EAN-13 too. The other 6 retail and industrial formats are part of the Pro plan.
URL, vCard, WiFi, text, email and SMS. Customize colors. Download PNG or SVG. No watermark.
GenerateCode 128
Universal alphanumeric. Ideal for internal inventory, shipping labels, non-standardized identifiers.
GenerateEAN-13
European retail standard. 13 digits. For products sold in supermarkets and registered with GS1.
GenerateEAN-8
Compact version of EAN-13 for small packages. 8 digits. Cosmetics, sweets, small format.
GenerateUPC-A
Retail standard in US and Canada. 12 digits. If you sell in North America, this replaces EAN-13.
GenerateUPC-E
Compressed UPC-A for small labels. 8 digits. Cosmetics and sweets in the US.
GenerateCode 39
Industrial alphanumeric. Compatible with legacy systems. Aviation, automotive, maintenance.
GenerateITF-14
Logistics and master cartons. 14 digits. Identifies pallets and packaging units for shipments.
GenerateUnlock this format by upgrading to Pro. Cancel any time from your dashboard.
¿Necesitas barcodes para toda tu empresa? Ver soluciones para empresas →