Code 128 barcode generator

Try an example:

Letters, numbers and symbols. Used for inventory, shipping and asset labels.

Narrow bar 0.330 mm.

More formats and options →

Your data stays in your browser. Nothing you type is uploaded, stored or tracked.

Generate Code 128 barcodes for letters, numbers and symbols: the usual choice for inventory, asset tags, shipping and internal labels. Code 128 is compact, includes a check character automatically and is read by virtually every barcode scanner. Enter your text and download SVG or PNG.

How to make a Code 128 barcode

  1. Type the text to encode: letters, numbers, spaces and keyboard symbols such as - / . # all work.
  2. Choose a bar width. 0.33 mm suits most labels, and wider bars scan more easily from a distance.
  3. Download SVG for design software and label printers, or PNG for documents. Then test a printed label with your scanner.

Why Code 128?

Code 128 packs data tightly. It has three character sets: one for upper-case letters and control characters, one for upper- and lower-case text, and one that stores pairs of digits in a single symbol. The encoder switches between them automatically to keep the barcode short, so long numbers take up much less room than in Code 39. A check character is calculated and added for you, and scanners use it to detect misreads. It isn’t shown in the text under the bars.

Good uses

Things to know

Questions

What’s the difference between Code 128 A, B and C? They’re the three character sets inside Code 128. You don’t need to choose: the encoder picks the most compact mix for your text.

Can I use lower-case letters? Yes. Unlike Code 39, Code 128 encodes both cases.

Sources

  1. GS1 UK, GS1 UK. Accessed 2026-11-29.

Reviewed on by Richard Pryn.