ZorantaGuides
Havelt QR

Havelt QR › Guides

GS1 Application Identifiers: List of Common AIs and How to Read Them

A GS1 Application Identifier (AI) is a short number, written in brackets, that says what the data after it means. In (01)05012345678900(17)271231(10)AB123, the (01) introduces a product number (GTIN), (17) an expiry date, and (10) a batch or lot number. AIs let one barcode carry several pieces of information that any scanner and system can separate in the same way.

AIs are used in GS1-128 linear barcodes on cartons and pallets, and in GS1 DataMatrix and GS1 QR codes on products and medicines. The list below covers the AIs you meet on everyday labels; GS1's Application Identifier browser has the full set.

Shipping cartons with barcode labels and a phone scanning one

Common GS1 application identifiers list

The format column uses GS1's notation: N means digits, X means letters, digits and some symbols. N2+N14 means a 2-digit AI followed by exactly 14 digits; N2+X..20 means up to 20 characters.

AIMeaningFormatExample
00SSCC: shipping container code for a pallet or parcelN2+N18(00)350123451234567894
01GTIN: the product's trade item numberN2+N14(01)05012345678900
02GTIN of the items contained in a logistic unitN2+N14(02)05012345678900
10Batch or lot numberN2+X..20(10)AB123
11Production date (YYMMDD)N2+N6(11)270115
13Packaging date (YYMMDD)N2+N6(13)270120
15Best before date (YYMMDD)N2+N6(15)270630
17Expiration (use by) date (YYMMDD)N2+N6(17)271231
21Serial numberN2+X..20(21)SN00042
37Count of items in a logistic unitN2+N..8(37)24
310nNet weight in kilograms, n = decimal placesN4+N6(3103)012500 = 12.500 kg
400Customer's purchase order numberN3+X..30(400)PO7781
410Ship to / deliver to location (GLN)N3+N13(410)5012345000015
420Ship to postal codeN3+X..20(420)SW1A1AA

Formats and titles above are taken from GS1's published AI list. The example values are made up for illustration and are not real company numbers.

Havelt QR

Havelt QR reads GS1-128 and GS1 DataMatrix and shows the GTIN, lot number, expiry date and serial as separate labelled fields instead of one run of digits. Get it on Google Play

How to read a GS1-128 barcode

The text printed under a GS1-128 barcode (the human-readable line) shows the AIs in brackets. The brackets are not in the barcode itself; they are printed to help people read it. Take this label line:

(01)05012345678900(17)271231(10)AB123

  1. Start at the left. The first AI is 01, so the next 14 digits are the GTIN: 05012345678900.
  2. The next AI is 17, a fixed 6-digit date: 271231 is year 27, month 12, day 31.
  3. The next AI is 10, a batch or lot of up to 20 characters: AB123. Because it is the last field, it simply runs to the end.

Dates in AIs are always YYMMDD, with no separators. GS1's specifications also cover how a date without a specific day is written; check them before printing labels of that kind.

Fixed and variable length fields

Some AIs always have the same length (01 is always 14 digits, 17 always 6). Others, such as 10 and 21, can be shorter than their maximum. When a variable-length field is followed by another field, the barcode contains an invisible separator character, FNC1, so the scanner knows where the field ends. That is why label designers usually put fixed-length fields first and a single variable-length field last: it saves a separator and keeps the barcode shorter.

Where you meet application identifiers

SettingBarcodeAIs you will typically see
Pallet and parcel labelsGS1-12800, 02, 37, 400, 410, 420
Cases of food or goodsGS1-128 or ITF-14 plus GS1-12801, 10, 15 or 17
Fresh food sold by weightGS1-128 or GS1 DataBar01, 310n, 17
Medicines and medical devicesGS1 DataMatrix01, 17, 10, 21
Consumer products with a QR codeGS1 QR Code / GS1 Digital Link01 plus optional 10, 21

Requirements on which AIs must appear come from your trading partners and, for medicines, from the regulator in each market. GS1 UK explains how the same AIs can also be carried in a QR code powered by GS1.

Common mistakes when encoding AIs

When in doubt, check against the GS1 General Specifications or your local GS1 member organisation. Label printers and warehouse systems from different vendors all follow the same AI rules, which is the point of using them.

Havelt QR

See each field when you scan a label

Scan a carton or a medicine pack with Havelt QR and the fields come out already split, saved to your history and ready to export to CSV for a stock check.

Get it on Google Play

iPhone version coming soon

More guides

All guides

Sources

Published by Zoranta, the developer of Havelt QR.