Skip to content
koducathome

Code 128 Barcode Generator

Create EAN, UPC, Code 128 and other 1D barcodes.

How to use this tool

Steps for using the Barcode Generator.

  1. Type any text: letters, digits, spaces and symbols (printable ASCII), up to 80 characters.
  2. The most compact Code 128 character set is chosen automatically, and the mod-103 check character is added inside the bars.
  3. Adjust the bar colour, bar width, height, quiet zone and text under Customize Appearance.
  4. Press Generate Barcode, then Download a PNG, SVG or PDF, Print it, or Copy the data. For many codes at once, upload a CSV under Batch Barcode Generation.

Example

A stock or shipping reference

Typed
ABC-12345
Result
Valid Code 128 (9 characters).

Common use cases

  • Shipping and parcel labels
  • Warehouse locations, bins and pallet labels
  • Asset tags and serial numbers
  • Order and invoice numbers on documents

Why Code 128 is the default for labels

Code 128 can encode all 128 ASCII characters using three code sets: A (capitals, digits and control characters), B (capitals, lowercase, digits and symbols) and C (pairs of digits). The encoder switches between them to keep the barcode as short as possible — long runs of digits take half the space in set C.

Every Code 128 symbol ends with a mod-103 check character calculated from the data, so scanners reject damaged reads. It is added for you and is not printed in the text.

Because it is dense, reliable and accepts any text, Code 128 is the usual choice for shipping labels, stock and asset tags. When the data must follow GS1 rules (GTIN, batch, expiry), use GS1-128 instead.

Limitations

  • Up to 80 characters here; long data makes a wide barcode.
  • Characters outside printable ASCII (such as accented letters) aren't supported.

Frequently asked questions

Can Code 128 hold lowercase letters?

Yes. Code set B covers lowercase and uppercase letters, digits, spaces and the common symbols.

Does Code 128 need a check digit?

It has one built in: a mod-103 check character is always added inside the bars. You don't type it, and it isn't shown in the human-readable text.

What's the difference between Code 128 and GS1-128?

GS1-128 is Code 128 with a special start character (FNC1) and data structured with GS1 Application Identifiers. Use plain Code 128 for your own references and GS1-128 for supply-chain data such as GTIN, batch and expiry.

Code 128 or Code 39?

Code 128 is shorter for the same data and supports more characters. Choose Code 39 only when an older system or specification requires it.

Is the data I type uploaded anywhere?

No. Barcodes, including batch CSV files, are created in your browser. Recent barcodes are saved only in this browser.