GS1-128 AI Syntax Checker
Parse the Application Identifiers in a GS1-128 barcode string and check lengths, numeric fields, dates and GTIN/GLN check digits.
A GS1-128 symbol is a sentence in a strict grammar: each Application Identifier announces what the next field is, how long it runs and what characters it may hold. A GTIN with a wrong check digit, an expiry month of 13, a batch code overflowing its 20 characters — the label prints fine and fails at the warehouse scanner, which is the most expensive place to learn it.
Quick answers
How do I validate a GS1-128 barcode string?
Split it by Application Identifiers, then enforce each AI’s length and charset, validate dates, and recompute GTIN/SSCC/GLN check digits.
Paste the parenthesised human-readable form here and each field is checked against those rules, with problems named per field.
How is the GS1 check digit calculated?
Multiply digits alternately by 3 and 1 from the right, sum them, and round up to the next multiple of 10.
The same mod-10 algorithm guards GTINs, SSCCs and GLNs — which is why a single transposed digit almost always breaks it.
How to use
About this tool
Paste the human-readable string, parentheses included, and the checker splits it into fields and validates each against the GS1 rules for the common supply-chain set: SSCC (00), GTIN (01, 02), dates (11, 13, 15, 17 — including the day-00 month-precision rule), batch (10) and serial (21), counts (30, 37), GLNs (410–414), origin (422) and order number (400). Fixed lengths are enforced, numeric fields must be numeric, and GTIN, SSCC and GLN values get their mod-10 check digit recomputed.
Scope, stated plainly: the AI table here covers the identifiers listed above — the ones that dominate case and pallet labels. The full GS1 table runs to hundreds of AIs (weights, dimensions, healthcare, components). An AI outside this table is reported as unverified rather than guessed at, and variable-length fields are split using the parentheses you provide; in raw symbol data they are separated by the FNC1 separator character instead.
How it works
C
h
e
c
k
d
i
g
i
t
:
f
r
o
m
t
h
e
r
i
g
h
t
m
o
s
t
d
a
t
a
d
i
g
i
t
,
m
u
l
t
i
p
l
y
a
l
t
e
r
n
a
t
e
l
y
b
y
3
a
n
d
1
m
o
v
i
n
g
l
e
f
t
,
s
u
m
,
a
n
d
t
h
e
c
h
e
c
k
d
i
g
i
t
i
s
w
h
a
t
b
r
i
n
g
s
t
h
e
t
o
t
a
l
t
o
a
m
u
l
t
i
p
l
e
o
f
1
0
—
t
h
e
s
a
m
e
a
l
g
o
r
i
t
h
m
f
o
r
G
T
I
N
-
1
4
,
S
S
C
C
-
1
8
a
n
d
G
L
N
-
1
3
.
D
a
t
e
s
a
r
e
Y
Y
M
M
D
D
;
d
a
y
0
0
i
s
l
e
g
a
l
a
n
d
m
e
a
n
s
t
h
e
d
a
t
e
i
s
p
r
e
c
i
s
e
t
o
t
h
e
m
o
n
t
h
.
Worked examples
: (01)09506000134352(17)251231(10)LOT88 — GTIN check digit verifies, expiry 2025-12-31 is a real date, batch within length. OK across the row.
: Two digits swapped while retyping a supplier’s GTIN: length still 14, but the recomputed check digit differs — flagged before 5,000 labels print.
: (15)260200 — best-before given as February 2026 with day 00. Legal under GS1 rules and reported OK, not as a fake date.
Frequently asked questions
Which AIs does this cover?
00, 01, 02, 10, 11, 13, 15, 17, 21, 30, 37, 400, 410, 411, 412, 414, 422 and 7003 — the common case/pallet set. Anything else is reported as outside the table, never silently passed.
Why paste the parenthesised form?
Parentheses mark where each field ends, which is what makes variable-length fields (batch, serial) unambiguous on paper. In the raw symbol, FNC1 separator characters do that job instead.
Does a passing string mean my barcode will scan?
It means the data is syntactically valid GS1. Print quality, quiet zones and symbol size are physical properties a data checker cannot see — verify a printed label with a scanner or verifier.
What is day 00 in a GS1 date?
A deliberate GS1 convention: when only the month matters (typical for best-before), the day is encoded 00. The checker accepts it for the date AIs and says so, rather than calling it an invalid day.
First time embedding? Read the step-by-step guide →
More free tools
QR Code Generator
Turn any link or text into a scannable QR code in seconds.
Word Counter
Count words, characters, sentences and reading time as you type.
Percentage Calculator
Work out percentages, increases and discounts in one click.
Age Calculator
Find your exact age in years, months and days.
BMI Calculator
Check your Body Mass Index in seconds.
Tip Calculator
Split the bill and work out the tip in seconds.