Code 128 Barcode

Example GS1-128

GS1-128 is an application standard of the GS1implementation using the Code 128barcodespecification. The former correct name was UCC/EAN-128. Other no longer used names have included UCC-128 and EAN-128. The GS1-128 standard was introduced in 1989 [1] and uses a series of Application Identifiers to include additional data such as best before dates, batch numbers, quantities, weights and many other attributes needed by the user.

GS1-128 is an application standard of the GS1 implementation using the Code 128 barcode specification. The former correct name was UCC/EAN-128. Other no longer used names have included UCC-128 and EAN-128. The GS1-128 standard was introduced in 1989 and uses a series of Application Identifiers to include additional data such as best before. With Code 128 almost all barcode readers on the market today will will expect a checksum with the barcode. If the code does not scan you may have created it without a checksum, a common mistake when using a Code 128 barcode font, see below. Scanner recommendation for Code 128 Especially older barcode scanners may not support Code 128 at all.

Overview[edit]

The GS1-128 standard is an application standard within the Code 128 barcode. It identifies data with Application Identifiers (AI). Without spaces below, a simple SSCC (Serial Shipping Container Code) barcode would look something like this:

In the example above, [FNC1] is the single character Function Code 1, which specifies that a Code 128 barcode is a GS1-128 code. 00 is the serial shipping container code ('SSCC') AI that designates the following data as a serial shipping container code. 12345678 is the company number. 0000000001 is the container number.

Code 128 Barcode Free

It is possible to encode several pieces of data in one barcode. For example, a product serial number (application identifier code 21), production date (code 11), and expiration date (code 17) together would look something like this:

An additional FNC1 is required before the production date, because the preceding product serial number is variable length. This is not required before the expiration date, because the production date is fixed length. Reordering the components to place a variable-length field last produces a more compact form:

Mapping to EPC codes[edit]

As EPC and EAN respectively UCC as code systems are not congruent, GS1-128 gets mapped to EPC-GTIN with a reference list including both codes per type of product. However, there is no mapping for the serial number with EPC-SGTIN.

Full list of Application Identifiers[edit]

This list is from 2003 and therefore out of date and possibly incorrect. Also this is copyrighted by GS1 – for the up to date list please see the link below for the GS1 General Specifications[2] Because code 128 is more efficient at coding pairs of digits, preference is given to even lengths in numeric fields.

All dates are formatted as YYMMDD.

y in the AI gives a number of decimal places in the following value. The represented value is the following integer divided by 10y. For example, a net weight of 22.7 kg could be coded as 3101 000227, 3102 002270, 3103 022700, or 3104 227000.

CodeDescriptiondata length (without AI)
00Serial Shipping Container Code (SSCC)18
01Global Trade Item Number (GTIN)14
02GTIN of Contained Trade Items14
10Batch/Lot Numbervariable, up to 20
11Production Date6
12Due Date6
13Packaging Date6
15Best Before Date (YYMMDD)6
17Expiration Date6
20Product Variant2
21Serial Numbervariable, up to 20
22Secondary Data Fieldsvariable, up to 29
23nLot number nvariable, up to 19
240Additional Product Identificationvariable, up to 30
241Customer Part Numbervariable, up to 30
242Made-to-Order Variation Numbervariable, up to 6
243Packaging component numbervariable, up to 20
250Secondary Serial Numbervariable, up to 30
251Reference to Source Entityvariable, up to 30
253Global Document Type Identifiervariable, 13–17
254GLN Extension Componentvariable, up to 20
255Global Coupon Number (GCN)variable, 13–25
30Count of itemsvariable, up to 8
310yProduct Net Weight in kg6
311yProduct Length/1st Dimension, in meters6
312yProduct Width/Diameter/2nd Dimension, in meters6
313yProduct Depth/Thickness/Height/3rd Dimension, in meters6
314yProduct Area, in square meters6
315yProduct Net Volume, in liters6
316yProduct Net Volume, in cubic meters6
320yProduct Net Weight, in pounds6
321yProduct Length/1st Dimension, in inches6
322yProduct Length/1st Dimension, in feet6
323yProduct Length/1st Dimension, in yards6
324yProduct Width/Diameter/2nd Dimension, in inches6
325yProduct Width/Diameter/2nd Dimension, in feet6
326yProduct Width/Diameter/2nd Dimension, in yards6
327yProduct Depth/Thickness/Height/3rd Dimension, in inches6
328yProduct Depth/Thickness/Height/3rd Dimension, in feet6
329yProduct Depth/Thickness/3rd Dimension, in yards6
330yContainer Gross Weight (kg)6
331yContainer Length/1st Dimension (Meters)6
332yContainer Width/Diameter/2nd Dimension (Meters)6
333yContainer Depth/Thickness/3rd Dimension (Meters)6
334yContainer Area (Square Meters)6
335yContainer Gross Volume (Liters)6
336yContainer Gross Volume (Cubic Meters)6
340yContainer Gross Weight (Pounds)6
341yContainer Length/1st Dimension, in inches6
342yContainer Length/1st Dimension, in feet6
343yContainer Length/1st Dimension in, in yards6
344yContainer Width/Diameter/2nd Dimension, in inches6
345yContainer Width/Diameter/2nd Dimension, in feet6
346yContainer Width/Diameter/2nd Dimension, in yards6
347yContainer Depth/Thickness/Height/3rd Dimension, in inches6
348yContainer Depth/Thickness/Height/3rd Dimension, in feet6
349yContainer Depth/Thickness/Height/3rd Dimension, in yards6
350yProduct Area (Square Inches)6
351yProduct Area (Square Feet)6
352yProduct Area (Square Yards)6
353yContainer Area (Square Inches)6
354yContainer Area (Square Feet)6
355yContainer Area (Square Yards)6
356yNet Weight (Troy Ounces)6
357yNet Weight/Volume (Ounces)6
360yProduct Volume (Quarts)6
361yProduct Volume (Gallons)6
362yContainer Gross Volume (Quarts)6
363yContainer Gross Volume (U.S. Gallons)6
364yProduct Volume (Cubic Inches)6
365yProduct Volume (Cubic Feet)6
366yProduct Volume (Cubic Yards)6
367yContainer Gross Volume (Cubic Inches)6
368yContainer Gross Volume (Cubic Feet)6
369yContainer Gross Volume (Cubic Yards)6
37Number of Units Containedvariable, up to 8
390yAmount payable (local currency)variable, up to 15
391yAmount payable (with ISO currency code)variable, 3–18
392yAmount payable per single item (local currency)variable, up to 15
393yAmount payable per single item (with ISO currency code)variable, 3–18
400Customer Purchase Order Numbervariable, up to 30
401Consignment Numbervariable, up to 30
402Bill of Lading number17
403Routing codevariable, up to 30
410Ship To/Deliver To Location Code (Global Location Number)13
411Bill To/Invoice Location Code (Global Location Number)13
412Purchase From Location Code (Global Location Number)13
413Ship for, Deliver for, or Forward to Location Code (Global Location Number)13
414Identification of a physical location (Global Location Number)13
420Ship To/Deliver To Postal Code (Single Postal Authority)variable, up to 20
421Ship To/Deliver To Postal Code (with ISO country code)variable, 3–15
422Country of Origin (ISO country code)3
423Country or countries of initial processingvariable, 3–15
424Country of processing3
425Country of disassembly3
426Country of full process chain3
7001NATO Stock Number (NSN)13
7002UN/ECE Meat Carcasses and cuts classificationvariable, up to 30
7003expiration date and time10
7004Active Potencyvariable, up to 4
703nProcessor approval (with ISO country code); n indicates sequence number of several processorsvariable, 3–30
8001Roll Products: Width/Length/Core Diameter/Direction/Splices14
8002Mobile phone identifiervariable, up to 20
8003Global Returnable Asset Identifiervariable, 14–30
8004Global Individual Asset Identifiervariable, up to 30
8005Price per Unit of Measure6
8006identification of the components of an item18
8007International Bank Account Numbervariable, up to 30
8008Date/time of productionvariable, 8–12
8018Global Service Relationship Number18
8020Payment slip reference numbervariable, up to 25
8100Coupon Extended Code: Number System and Offer6
8101Coupon Extended Code: Number System, Offer, End of Offer10
8102Coupon Extended Code: Number System preceded by 02
8110Coupon code ID (North America)variable, up to 30
8200Extended Packaging URLvariable, up to 70
90Mutually Agreed Between Trading Partnersvariable, up to 30
91–99Internal Company Codesvariable, up to 90

References[edit]

  1. ^'GS1 Historic Timeline'. GS1. Retrieved 9 October 2018.
  2. ^General specifications(PDF), GS1.

External links[edit]

Retrieved from 'https://en.wikipedia.org/w/index.php?title=GS1-128&oldid=944129964'
This can have several reasons:
  • Make sure that the code symbology Code 128 is actually activated in the barcode scanner. Consult your scanner's manual.
  • The print quality must be adequate. For Code 128, a resolution of 150-200dpi or higher is recommended. Also, make sure that the code is not printed too small. The minimum module width (i.e. the width of the narrowest bar) should not be below 0.3 mm. The height should not be below 10 mm. A space (the so called 'quiet zone') of at least five to ten millimeters should be left around the code.
  • By default, many scanners require a barcode to encode at least four characters. If so, a barcode with only three characters will not scan. Check your barcode scanner's manual.
  • With Code 128 almost all barcode readers on the market today will will expect a checksum with the barcode. If the code does not scan you may have created it without a checksum, a common mistake when using a Code 128 barcode font, see below.

Scanner recommendation for Code 128

Especially older barcode scanners may not support Code 128 at all or may have problems reading wider codes or codes printed with low resolution. We canrecommend the following scanners for reliably scanning Code 128:
Scanner with USB connection and stand for hands-free operation: Taotronics Handheld Scanner
Scanner with wireless connection: Tera Wireless Scanner

Using a Code 128 barcode font in Excel, Google Sheets

When using a so called barcode font, you might have to add start and stop symbols to the data. When using a barcode font in office applications like Word or Excel, you can't just simply select the data and change the font. Code 128 is a very advanced barcode type which requires preparing your data for use with a font. Usually a macro, add-in, or stand-alone app will be supplied with the font that handles all necessary steps.
As an example, here's the Softmatic Barcode Add-in for Excel 365 which uses barcode fonts to create Code 128 and other symbologies:Near the end of the video, note the text in the edit line above the actual sheet. At 38s it shows the textual value of the cell A1: 'Ü*öö,ä'. This is the content of the cell ('100000'), properly formatted by the Add-in for use with the Softmatic Code 128 font.
More about our barcode add-in for Excel.Code 128 Barcode

Code 128 sample barcode

Use the following verified sample barcode to test the settings of your scanner. It encodes nine characters, has the required start/stop symbols, the proper checksum, and sufficient quality. 128
Code 128 Barcode Right-click and 'Save as...' to print the barcode out. A good CCD scanner or reader app will also be able to scan the code directly from the screen.
For more sample 128 barcodes and a general introduction to Code 128, see our page Code 128 explained.

Creating compliant Code 128 barcodes

For the creation of compliant, working barcodes like the one above, use Softmatic BarcodePlus V5. The app creates all common retail barcodes, like EAN, UPC or ISBN. In addition BarcodePlus V5 supports a wide variety barcodes for warehousing, pharmaceuticals and 2D symbologies like QR, Aztec or PDF417.
This software is very easy to use. Simply select 'Code 128', enter your data and the code is created right away. Video shows creation of a 128 GS1 code:
  • Mac: Download from the Mac App Store (macOS 10.15 or higher, pre 10.15: here)
  • Windows: Download from Softmatic (Windows 10 or higher)

Bulk creation of Code 128

CodeCode For bulk creation of standards-compliant Code 128 and many other linear and 2D symbologies, see Softmatic BarcodeFactory V5:
  • Mac: Download from the Mac App Store (macOS 10.15 or higher, pre 10.15: here)
  • Windows: Download from Softmatic (Windows 10 or higher)

Code 128 REST APIs

Code 128 Barcode Gen

Developers love our easy to use Barcode REST API for Code 128 and Code 128 GS1. The Barcode API supports all common linear and 2D code symbologies and can be used from JavaScript / Node, Ruby, Python, PHP, Swift and many other languages and environments. The API comes with a generous free tier and is available through RapidAPI. Documentation and sample code are here.