Skip to content
StylQR home

GS1-128 Barcode Generator

Create GS1-128 barcodes for logistics and shipping labels. Type Application Identifiers in brackets — (01) GTIN, (10) batch, (17) expiry — and StylQR validates each one, adds FNC1 separators and check digits for you.

  • Free & unlimited
  • Validated live
  • Print-ready SVG, PDF & PNG
  • Nothing uploaded
1

Enter your data

Checked live against the official rules for this barcode type.

Application Identifiers in brackets: (01) GTIN, (10) batch, (17) expiry YYMMDD, (21) serial, (3103) net weight kg…

Add a GS1 Application Identifier

Dates are YYMMDD. Fixed-length AIs first, variable ones (batch, serial) last.

2

Design your barcode

Pick a label template or adjust size, text, colors and style.

Start from a template

One click styles the label. Your data and size stay as they are.

Check your data

Tap to preview

Preview & download

Loading barcode engine…

Format

Resolution

Print labels

A vector PDF filled with your barcode — print on label stock, stickers or plain paper.

Square cells with dashed cut guides; choose 2–6 columns.

Labels per row

What is GS1-128?

GS1-128 (formerly UCC/EAN-128) is Code 128 with a special FNC1 character at the start, which tells the scanner the data follows GS1 rules. It is the standard barcode for logistics labels, carrying the product number plus production and shipping data.

Data is written as GS1 Application Identifiers: a 2–4 digit code in brackets followed by its value, for example (01)09521234543213(10)ABC123(17)261231. Common AIs are (00) SSCC, (01) GTIN, (10) batch or lot, (11) production date, (17) expiry date, (21) serial number and (310n) net weight in kilograms.

Fixed-length AIs such as (01) can follow each other directly; variable-length AIs such as (10) need an FNC1 separator, which is added automatically. A symbol can hold up to 48 data characters and must not exceed 165 mm wide.

Specification

GS1-128 at a glance

Type
Linear (1D), Code 128 with FNC1
Characters
Digits and a subset of ASCII, as defined per AI
Length
Up to 48 data characters
Check digit
Mandatory Code 128 modulo-103 check character, plus each AI’s own check digit
Nominal bar width
0.495–1.016 mm on logistics labels (0.25 mm minimum elsewhere)
Recommended height
31.75 mm on logistics labels
Quiet zone
10 modules each side
Standard
ISO/IEC 15417, GS1 General Specifications

How to create a GS1-128 barcode

Four steps from data to a print-ready file.

  1. 1

    Step 1

    Enter your GS1-128 data. Application Identifiers in brackets: (01) GTIN, (10) batch, (17) expiry YYMMDD, (21) serial, (3103) net weight kg…

  2. 2

    Step 2

    Check the live validation — check digits are added for you and any problem is explained in plain words.

  3. 3

    Step 3

    Pick a label template or adjust bar width, height, text, colours and style. The printed size updates as you go.

  4. 4

    Step 4

    Press Test scan, then download a PNG at up to 1200 DPI, vector SVG or PDF — or print it on label sheets.

Built for people who print barcodes

Details most barcode generators charge for — all free in the studio above.

  • Check digits, fixed for you

    Type 12 digits and the EAN-13 check digit is added. Type a wrong one and you get the correct digit with a one-click fix.

  • Frames & label templates

    Banners, tickets, hang tags, shelf prices, coupons and more — ready-made labels that never cover the bars.

  • Sized in millimetres

    Set the bar width and height and see the finished printed size update live, in mm or inches.

  • Crisp at any DPI

    PNG at 300, 600 or 1200 DPI with every bar a whole number of pixels, plus vector SVG and exact-size PDF.

  • Scanner-safe colours

    Warnings for red bars laser scanners cannot see, low contrast, thin bars and tight quiet zones.

  • GS1 helper

    Insert Application Identifiers like GTIN, expiry, batch and serial with one click — validated by the official rules.

  • Avery label sheets

    Fill Avery 5160, L7160 and 22805 sheets, sticker sheets or a label grid with one click.

  • Save, open & share

    Keep a barcode as a design file, reopen it later, share a link, and undo or redo any change.

Where GS1-128 is used

Real-world applications for this symbology.

  • Logistics labels

    The GS1 logistic label on pallets and cartons, often combined with an SSCC.

  • Food traceability

    Batch, production and best-before dates on cases of meat, dairy and fresh produce.

  • Variable-weight cases

    Net weight AIs such as (3103) for cases of cheese, fish or meat priced by weight.

  • Healthcare supply

    Lot and expiry data on cases of medical supplies and devices.

  • Retailer compliance

    Shipping labels required by retailers and distributors for advance ship notices.

Printing GS1-128 that scans first time

Small details that make the difference between a code people ignore and one they scan.

  • Put fixed-length AIs like (01) and (17) first and variable-length ones like (10) and (21) last to keep the barcode short.

  • Dates use the YYMMDD format: (17)261231 is 31 December 2026. Use 00 for the day if only the month matters.

  • If the barcode gets too wide, split the data into two GS1-128 symbols on the same label.

  • Use a bar width of at least 0.495 mm for pallet labels read from a distance.

  • Keep the brackets only in the human-readable text — they are not encoded in the bars.

GS1-128 questions, answered

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

GS1-128 is Code 128 with an FNC1 start character and data structured as GS1 Application Identifiers. Scanners and software can then split the data into GTIN, batch, expiry and so on.

Do I type the brackets?

Yes, type each AI in brackets so it can be validated. The brackets appear in the human-readable text but are not encoded in the barcode itself.

Which Application Identifiers are supported?

All standard GS1 AIs, including (00) SSCC, (01) GTIN, (10) batch, (11) production date, (17) expiry, (21) serial, (310n) net weight and (400) order number. Each value is checked against its format.

Can GS1-128 be scanned at a retail checkout?

Generally no. GS1-128 is for logistics and supply chains; consumer products use EAN-13, UPC-A or GS1 DataBar at the checkout.

Where do the GTIN and SSCC numbers come from?

From your GS1 company prefix, licensed by your local GS1 member organisation. StylQR encodes them but does not issue them.

Every other barcode type

Retail, logistics, 2D, healthcare and postal symbologies — validated with the official rules and ready to print.

The barcodes people make most.