DevToolCase
Sign in Sign in

Decode a GS1-128 bar code

Split a GS1-128, DataMatrix or QR element string into its Application Identifiers: GTIN, SSCC, dates, batch, weights, each one checked and explained.

Share this result

Encrypted in your browser. The key stays in the link, after “#”: only the people you give it to can read it, not even DevToolCase.

The link works for

Sign in for longer links or links without expiry, and to find them in your account.

The text printed under the bar code, with brackets, or what a scanner sends: separators written ␝, <GS> or [FNC1], symbology identifier ]C1 accepted.

Runs entirely in your browser: nothing you type is sent or stored.

What is in a GS1-128 bar code?

A GS1-128 bar code, like a GS1 DataMatrix or a GS1 QR code, holds an element string: a series of Application Identifiers (AI), each followed by its data. (01) introduces a GTIN, (17) an expiry date, (10) a batch number…

Common Application Identifiers

AIContentExpected data
00SSCC of a logistic unit (pallet, carton)18 digits
01GTIN of the item14 digits
02GTIN of the items contained14 digits
10batch or lot numberup to 20 characters
11production dateYYMMDD
15best before dateYYMMDD
17expiry dateYYMMDD
21serial numberup to 20 characters
37count of items containedup to 8 digits
3103net weight in kg, 3 decimals6 digits

Paste it as you have it

The form printed under the bar code, with parentheses, is read, and so is the raw string sent by a scanner. In the raw string, a group separator ends variable-length data; write it ␝, <GS> or [FNC1] if your scanner shows nothing.

What is checked

The check digit of every GTIN and SSCC, dates (day 00 means the last day of the month), lengths and allowed characters. To make such a bar code, use the GS1-128 generator.

Add this browser’s favorites to your account?

This browser has 0 favorites that your account does not have:

Either way, this browser keeps its favorites: you find them again after signing out.