Canadian · Validation

GS1 Application Identifier lookup & parser.

Type an Application Identifier such as 17 or 3103 to see what it means, its format and whether it needs an FNC1 separator. Or paste a whole GS1-128 / DataMatrix element string, in brackets like (01)09501101530003(17)250101(10)ABC123 or raw with separators, to split it into AIs and values with check digits and dates verified. Everything runs in your browser: nothing you type is transmitted anywhere.

Source: GS1 Barcode Syntax Dictionary (GS1 AISBL) and GS1 General Specifications, section 3 Checks format and check digits only, not whether a number was ever issued

Advertisement

Inputs

2 to 4 digits looks up that AI. Anything longer is parsed. In a raw string, mark FNC1 with the GS character, ^, {GS} or <GS>; a leading symbology identifier such as ]C1 is ignored.

Result

Enter an AI or an element string and press Check.

Advertisement

How GS1 element strings work

A GS1 barcode such as GS1-128 or GS1 DataMatrix carries data as a string of elements. Each element is an Application Identifier (a 2 to 4 digit prefix that says what the data is) followed by its value. Some AIs have a fixed length, such as 01 (GTIN, 14 digits), 00 (SSCC, 18 digits), 11 and 17 (dates, 6 digits, YYMMDD) and 310n (net weight in kg, 6 digits, where the last AI digit is the number of decimal places). Those need nothing after them. AIs with variable length, such as 10 (batch/lot) and 21 (serial), must be ended by an FNC1 separator (ASCII group separator, 0x1D) unless they are the last element.

What is verified

What is not verified

This checks format and check digits only. It cannot confirm that a GTIN, SSCC or GLN was ever issued by GS1. Content rules that need lookup tables (country and currency codes, GS1 Company Prefix length, percent-encoded text) are not applied, and AIs outside the list above are shown as “not in this list” rather than invalid. If a raw string has no separators, a variable-length AI reads on until its maximum length, so use the bracketed form or insert separators where the string is ambiguous.

The same check digit engine is available on its own in the GLN / SSCC / GTIN validator.

Browse the full AI list
AITitleFormatFNC1 after?

Sources: GS1 Barcode Syntax Dictionary, github.com/gs1/gs1-syntax-dictionary (maintained by GS1 AISBL); GS1 AI register, ref.gs1.org/ai, via python-stdnum stdnum/gs1_ai.dat; GS1 General Specifications, Release 26.0, section 3, gs1.org.

What this lookup and parser is for

People land on this page after searching for a GS1 registry, a company prefix search or a GTIN lookup, so it helps to be exact about the job. This tool reads the structure of a GS1 barcode message. It tells you what an Application Identifier (AI) such as 10, 17 or 3103 means, how long its value must be, which characters are allowed, and whether the check digits and dates inside a pasted element string are internally consistent. It does not contact GS1, it does not know which company owns a number, and it cannot tell you what product a GTIN describes. Ownership and product data live in services run by GS1 and its member organizations, and the barcode itself carries none of it.

That limit is useful to know before you scan a pallet label or a medication carton and wonder why a decoded string looks like a wall of digits. The scan is just the data. Turning it into a product name, a brand owner or a recall status needs a database that your own business systems or a GS1 service provides.

Reading an element string, step by step

A GS1 barcode message is a chain of element strings. Each one is an AI followed by its data. GS1 Canada’s DataMatrix fact sheet puts it plainly: AIs are 2, 3 or 4-digit numbers that define the meaning and the format of the data that follows. Take the example from the input box, (01)09501101530003(17)250101(10)ABC123.

The brackets around the AIs are for people. The fact sheet notes that parentheses surround the AIs in the human readable interpretation but are not encoded in the barcode. What the scanner actually delivers has no brackets, which is why raw strings are harder to split by eye.

Why the FNC1 separator matters

Fixed-length AIs such as 01 (14 digits), 11 and 17 (six digits) need no separator. Variable-length ones such as 10 (batch or lot) and 21 (serial number) must be followed by a separator character unless they come last. In GS1 DataMatrix and GS1-128 that separator is the FNC1 function character, which most scanners hand to software as ASCII 29, the group separator. GS1’s own guidance recommends putting the single variable-length element at the end of a message, which saves one separator and shrinks the symbol.

Here is a worked case. Encode the batch before the expiry date, (10)ABC123(17)250101, and the raw data is 10ABC123, then the group separator, then 17250101. Remove the separator and a parser cannot know whether the batch is ABC123 or ABC12317250101. This tool’s helper text lists the stand-ins it accepts for the separator in a raw string: the GS character, ^, {GS} or <GS>. A leading symbology identifier such as ]C1 (GS1-128) or ]d2 (GS1 DataMatrix) is ignored. Those identifiers are added by the scanner after decoding, not stored in the symbol, and they are how software tells a GS1 barcode from a plain one.

How to scan a GS1 barcode and get usable data

  1. Confirm the symbol type. GS1-128 is a linear barcode, and GS1 DataMatrix is a compact square or rectangular 2D symbol that holds a large amount of data in a small space. An ordinary scanning app often shows only the text.
  2. Check whether your scanner or app reports the symbology identifier. If it shows ]d2 or ]C1 in front, the data is GS1-structured.
  3. Look at how the separators appear. Some apps drop them, show a blank, or convert them to another character. If your result has no visible separators but the label has a batch or serial number, the parse may be ambiguous.
  4. Paste the result into this tool. Use the bracketed form when you can, because it removes the guesswork about where a variable-length value ends.

What the tool will and will not tell you

A pass means the message is well-formed as far as the tool checks: a known AI, a value of the right length and character type, a check digit that matches for GTIN, SSCC, GLN and GSIN, and a plausible date. Several things are deliberately out of scope. It cannot say whether a GTIN was ever issued. It does not apply content rules that need lookup tables, such as country and currency codes. It shows AIs it does not carry as “not in this list” instead of calling them invalid, because the AI list keeps growing. The authoritative sources are the GS1 General Specifications and the machine-readable Barcode Syntax Dictionary, which the GS1 project publishes on GitHub for exactly this validation job.

If you only need to verify a single key’s check digit, the GLN, SSCC and GTIN check digit validator does it directly, and the EAN and UPC validator covers ordinary retail barcodes.

Frequently asked questions

What is a GS1 Application Identifier?

An Application Identifier, or AI, is a 2 to 4 digit prefix that tells you what the data after it means and how it is formatted. AI 01 is a GTIN, 10 is a batch or lot number, 17 is an expiration date and 21 is a serial number. GS1 publishes the full list and this tool carries a large part of it.

Why does a variable-length value need an FNC1 separator?

Without one, a parser cannot tell where a value such as a lot number ends and the next AI begins. Fixed-length elements like a GTIN or a six-digit date need no separator, and a variable-length element needs none if it is the last one in the message.

What is the difference between GS1-128 and GS1 DataMatrix?

Both carry the same kind of AI-based data. GS1-128 is a linear barcode, and GS1 DataMatrix is a compact two-dimensional symbol that holds a large amount of data in a small space. The scanner adds a symbology identifier after decoding, ]C1 for GS1-128 and ]d2 for GS1 DataMatrix, so software can recognize GS1 data.

Why is my GTIN shown with leading zeros?

AI 01 is always followed by exactly 14 digits. A GTIN-12 or GTIN-13 is therefore padded on the left with zeros. GS1 Canada's fact sheet shows a GTIN-12 written as (01)00068780000108, with two filler zeros in front.

Can this tool look up who owns a GS1 company prefix or a GTIN?

No. It runs entirely in your browser and has no registry data. Ownership and product information is held by GS1 and its member organizations, so a lookup has to go through them or through your own product database.

Does a valid result mean the barcode will scan or the number was issued?

No. It means the AIs, lengths, characters, check digits and dates are consistent with the GS1 rules the tool applies. It cannot judge print quality, and it cannot confirm that a GTIN, SSCC or GLN was ever assigned.

How do I enter a raw scanned string that has no brackets?

Paste it as scanned and mark every separator with the GS character, a caret, {GS} or <GS>. If the string has no separators and contains a variable-length AI before the end, the result may be ambiguous, so use the bracketed form or insert the separators yourself.

Sources

Primary and reference sources used for this page, each opened and checked in October 2026:

Advertisement