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.
| AI | Meaning | Format | Example |
|---|---|---|---|
| 00 | SSCC: shipping container code for a pallet or parcel | N2+N18 | (00)350123451234567894 |
| 01 | GTIN: the product's trade item number | N2+N14 | (01)05012345678900 |
| 02 | GTIN of the items contained in a logistic unit | N2+N14 | (02)05012345678900 |
| 10 | Batch or lot number | N2+X..20 | (10)AB123 |
| 11 | Production date (YYMMDD) | N2+N6 | (11)270115 |
| 13 | Packaging date (YYMMDD) | N2+N6 | (13)270120 |
| 15 | Best before date (YYMMDD) | N2+N6 | (15)270630 |
| 17 | Expiration (use by) date (YYMMDD) | N2+N6 | (17)271231 |
| 21 | Serial number | N2+X..20 | (21)SN00042 |
| 37 | Count of items in a logistic unit | N2+N..8 | (37)24 |
| 310n | Net weight in kilograms, n = decimal places | N4+N6 | (3103)012500 = 12.500 kg |
| 400 | Customer's purchase order number | N3+X..30 | (400)PO7781 |
| 410 | Ship to / deliver to location (GLN) | N3+N13 | (410)5012345000015 |
| 420 | Ship to postal code | N3+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 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
- Start at the left. The first AI is 01, so the next 14 digits are the GTIN: 05012345678900.
- The next AI is 17, a fixed 6-digit date: 271231 is year 27, month 12, day 31.
- 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
| Setting | Barcode | AIs you will typically see |
|---|---|---|
| Pallet and parcel labels | GS1-128 | 00, 02, 37, 400, 410, 420 |
| Cases of food or goods | GS1-128 or ITF-14 plus GS1-128 | 01, 10, 15 or 17 |
| Fresh food sold by weight | GS1-128 or GS1 DataBar | 01, 310n, 17 |
| Medicines and medical devices | GS1 DataMatrix | 01, 17, 10, 21 |
| Consumer products with a QR code | GS1 QR Code / GS1 Digital Link | 01 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
- Typing the brackets into the barcode data. The encoder needs the AI digits and FNC1, not bracket characters.
- Giving a GTIN 13 digits under AI 01. It needs 14; pad an EAN-13 with a leading zero.
- Writing dates as DDMMYY or with separators. AIs use YYMMDD with no dots or dashes.
- Leaving out FNC1 after a variable-length field that is followed by another field, so the scanner merges two fields into one.
- Getting the last digit of a GTIN or SSCC wrong. Both end in a check digit worked out from the other digits, and receiving systems reject a key whose check digit does not match.
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.
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 PlayiPhone version coming soon
More guides
- How to Make a Wi-Fi QR Code Guests Can Scan to JoinMake a Wi-Fi QR code from your network name, password and security type. What the code contains, how to print it, guest networks, and why it stops working.
- How to Scan a QR Code From an Image or ScreenshotScan a QR code that is already on your phone, from a screenshot or a photo in your gallery. Android steps, fixes for codes that will not read, and safety checks.
- vCard QR Code: Put Your Contact Details on a Business CardHow a vCard QR code works, which fields to include, how to make one for a business card, size and printing tips, and vCard vs MeCard vs a link to a profile page.
- Types of Barcodes: 1D and 2D Codes and What Each Is Used ForThe main types of barcodes explained with their uses: EAN and UPC on products, Code 128 and Code 39, ITF-14 on cartons, Codabar, QR Code, Data Matrix, PDF417 and Aztec.
Published by Zoranta, the developer of Havelt QR.