1. Home
  2. Barcode & Generate
  3. GS1 Barcode Builder

GS1 Barcode Builder

Choose AIs, validate values and build GS1-128, DataMatrix and Digital Link codes.

Runs in your browser · No upload
Common AIs
Search by code or name, e.g. 17, expiry, GLN, 3922
N14
N6
X..20
Putting fixed-length AIs first and variable-length ones last saves FNC1 separators.
mm
mm
PNG uses 12px modules at 600 dpi (≈ 0.508 mm). GS1 recommends 0.495–0.94 mm for logistics labels.

Drawing barcode…

Human-readable text (HRI)
(01) 09501101530003 (17) 261231 (10) ABC123
Data in the barcode (<GS> = FNC1 separator)
01095011015300031726123110ABC123
This tool formats data and checks digits; it does not issue GTINs. Get a company prefix from GS1 (GS1 US, GS1 UK or your local GS1 office) before selling products.

How to use

  1. Pick an output format: GS1-128, GS1 DataMatrix, GS1 QR or Digital Link QR.
  2. Add Application Identifiers (AIs) with the common AI buttons or the search box, then type each value. A wrong value shows the reason on its own row.
  3. If the order is mixed up, press Auto-order. Fixed-length AIs move to the front and variable-length AIs to the back.
  4. Check the preview, set the X-dimension (width of one module) and download a PNG (600 dpi) or an SVG.

Common AIs

AI Meaning Format Example
(00) SSCC (logistic unit ID) 18 digits, fixed 106141411234567897
(01) GTIN 14 digits, fixed 09501101530003
(02) GTIN of contained items 14 digits, fixed 09501101530003
(10) Batch or lot number up to 20 alphanumeric ABC123
(11) Production date YYMMDD, fixed 260101
(13) Packaging date YYMMDD, fixed 260105
(15) Best before date YYMMDD, fixed 261231
(17) Expiry date YYMMDD, fixed 261231
(21) Serial number up to 20 alphanumeric S0001
(30) Variable count up to 8 digits 24
(37) Count of contained items up to 8 digits 12
(310n) Net weight in kg, n = decimals 6 digits, fixed 3102 + 000125 = 1.25 kg
(392n) Price, n = decimals up to 15 digits 3920 + 12500 = 12,500
(400) Customer purchase order up to 30 alphanumeric PO-2026-001
(414) Physical location GLN 13 digits, fixed 8801234567893

FNC1 separators and field order

Inside GS1-128 and DataMatrix, each AI is followed directly by its value. AIs with a predefined length | (00), (01), (02), (11)–(19), (20), (31xx)–(36xx) and (410)–(417) | can be followed immediately by the next AI. Variable-length AIs need an FNC1 character (ASCII 29, shown as <GS>) after them, except the last field.

The same content produces different data depending on order. Put the lot (10) first and you get 10ABC123<GS>010950110153000317261231; put the fixed-length AIs first and the string is 01095011015300031726123110ABC123, with no separator at all. Fewer separators mean a shorter symbol and less dependence on scanner settings. Scanners usually prepend a symbology identifier to this data: ]C1 for GS1-128, ]d2 for DataMatrix and ]Q3 for QR.

Value rules

  • Check digits: (00), (01), (02), (402), (410)–(417), (8017) and (8018) end in a GS1 mod-10 check digit. A 13-digit GTIN is padded with a leading zero to 14 digits.
  • Dates: YYMMDD, and a day (DD) of 00 means the last day of the month | 260200 is 28 February 2026. The century of the two-digit year follows the GS1 rule: more than 50 years in the past means the previous century.
  • Alphanumeric: only the GS1 character set (CSET 82) is allowed: letters, digits and ! " % & ' ( ) * + , - . / : ; < = > ? _. Spaces, #, @ and non-Latin letters are not.
  • Decimal AIs: in (310n) the last digit of the AI is the number of decimals. 1.25 kg has n=2 and becomes 3102 + 000125; 12.5 kg becomes 3101 + 000125. In this tool you simply type 1.25.
  • Companion AIs: (02) goes together with (37); a warning appears when the partner is missing.

Output formats compared

Format Characteristics Typical use
GS1-128 Linear; gets wider with more data Pallet and carton shipping labels
GS1 DataMatrix 2D; lots of data in a small area Pharma and medical device packs
GS1 QR 2D; readable by phone cameras Retail and promotions
Digital Link QR A plain QR holding https://domain/01/GTIN/10/lot?17=… One code for consumer and supply-chain scans

In a Digital Link the key (GTIN, SSCC, GLN, …) goes in the path, followed by qualifiers such as lot (10) and serial (21) in the order 01/…/10/…/21/…. Other AIs (expiry and so on) go in the query, like ?17=261231, with special characters percent-encoded. The default domain is the GS1 resolver id.gs1.org; you can enter your own.

Things to watch

  • This tool formats data and checks digits but does not issue GTINs. Get a company prefix from GS1 (GS1 US, GS1 UK or your local GS1 member organization) before you sell products.
  • Always scan printed labels with a real scanner. Logistics labels typically use an X-dimension of 0.495–0.94 mm and need a generous quiet zone around the symbol.
  • Related tools: GS1 Barcode Parser, SSCC Calculator, GTIN Check Digit Calculator, Barcode Generator.

Your input is processed only in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.