Generate code 128

Generate a dense Code 128 barcode for text or numeric data.

freeworks offlinenothing uploaded
ToolCode 128 Generator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Code 128 selects among character sets A, B, and C, emits start and shift symbols, calculates a weighted modulo-103 check value, and ends with a stop pattern. Set C packs numeric pairs for higher density.

  • Multiple code sets cover control characters, text, and compact numbers.

Worked example

Product Barcode
Generate a Code 128 barcode for a product SKU
Input
											Text: SKU-12345
Height: 80
Show text: true
										
Output

When to use this

Shipping labels, GS1-128 identifiers, and checksum tests generate Code 128.

Edge cases

  • An odd digit count in set C requires a code-set change or padding.
  • FNC1 has application meaning and is not ordinary text.
  • Quiet zones and exact module widths affect scan reliability.

References