1. Home
  2. Industrial & logistics
  3. GS1-128 Barcode Generator

GS1-128 Barcode Generator

Build the element string from Application Identifiers — (00) SSCC, (01) GTIN, (10) batch, (17) expiry date and many more. Values are validated against the GS1 rules and separators between variable-length fields are inserted for you.

  • Your data never leaves your device
  • No registration
  • Free

01How to use it

  1. Add a row for each Application Identifier and enter its value, or type the string as (01)…(17)…(10)….
  2. Fixed-length fields and check digits are validated; errors name the AI.
  3. Set the bar height — GS1 logistics labels usually need 31.75 mm.
  4. Download PDF or SVG for your label layout, or use the Label Studio for full logistics labels.

02What it is used for

  • SSCC pallet labels (GS1 logistics label).
  • Cases with batch number and best-before or expiry date.
  • Variable-weight products with (310n) net weight.

03Specification

CharactersDigits and the GS1 character set 82 inside AIs
LengthUp to 48 data characters
Check digitGS1 modulo 10 for GTIN, SSCC and GLN fields; symbol check modulo 103
Quiet zone10 × X on the left, 10 × X on the right
Default X-dimension0.495 mm · bar height 31.75 mm
Read back in the browserYes — checked with zxing-cpp after every change

04Example

GS1-128: (01)09521234543213(17)261231(10)ABC123
Input: (01)09521234543213(17)261231(10)ABC123
Size: 141.57 × 35.64 mm

Generated by this tool from the sample value at the default size.

05Downloads

  • PNG
  • SVG
  • PDF

06How it works

The symbol is encoded by bwip-js, a JavaScript port of BWIPP (Barcode Writer in Pure PostScript), and drawn at the X-dimension you choose — all bars and spaces are whole multiples of it, so the barcode is regenerated for each size instead of being stretched. The quiet zone required by the standard is added in modules. For the formats it supports, the image is decoded again after every change by zxing-cpp, an independent reader compiled to WebAssembly, and compared with your input; formats it cannot read are marked “no in-browser reader”. Input is checked before encoding: a wrong check digit, a forbidden character or an odd digit count is reported instead of being silently corrected.

07Printing tips

  • Print PDFs at 100 % / “actual size”. Turn off “fit to page” in the print dialog, otherwise the barcode and the label positions are scaled.
  • Keep the quiet zone: the blank margin on both sides is part of the barcode. Do not let text, frames or the label edge cut into it.
  • Use dark bars on a light background. Red, orange and yellow bars and transparent backgrounds on dark or patterned surfaces often cannot be scanned.
  • For thermal label printers choose the printer’s resolution (203 or 300 dpi): bar widths are then rounded to whole printer dots, which keeps the barcode sharp.
  • Check a test print with the scanner you will use. A correct check digit or a successful read in the browser is not a substitute for a print-quality verification.

08Privacy

The tool above runs entirely in your browser. What you type and the files you open are processed by code on this device; nothing is uploaded, and neither the content nor file names are sent to us or anyone else.

The tool is loaded in a separate frame from a different web address than this article. Advertising and other scripts on this page cannot look inside it, and the frame itself is served with a security policy that blocks every outgoing connection. Designs you save and your preferences stay in this browser until you delete them with the link at the bottom of the page.

09Questions and answers

Do I type the brackets?

Yes, to separate AIs and values. The brackets are only shown in the text line; they are not encoded.

What is FNC1?

A special Code 128 character that marks the symbol as GS1 data and ends variable-length fields. It is inserted automatically where the standard requires it.

How are dates written?

As YYMMDD, e.g. (17)261231 for 31 December 2026. Day 00 means the end of the month.

Is it safe to enter product data or confidential information?

Yes. Everything is processed on your own device and nothing is uploaded. The tool runs in an isolated frame that is technically prevented from making network connections, so the data cannot be sent anywhere — not to us and not to advertisers.

Related tools