Smart Apps Pro

Code 128 and Code 39: The Barcodes Behind Labels and Warehouses

Beyond product barcodes, many labels use Code 128 or Code 39. Learn what they encode and where you will meet them.

Product barcodes are only one type. Warehouses, offices and shipping companies often use others.

Code 39

Code 39 is one of the older barcode types. It can encode:

  • digits 0–9
  • capital letters A–Z
  • a few symbols, such as the dash and the space

It is called "39" because the original character set had 39 characters. Each character is made of bars and spaces, and the code is simple to print, so it has been popular for asset tags, ID badges and some industrial labels.

Code 128

Code 128 is denser. It can encode the full set of ASCII characters, including lowercase letters, and it packs digits especially tightly in pairs. It has a built-in check character.

You will often see it on:

  • shipping and parcel labels
  • inventory labels
  • serial numbers on equipment

Comparing them

Code 39 Code 128
Characters limited set full ASCII
Density lower higher
Error checking optional built in

One-dimensional codes

Both are linear barcodes. They are read along a single line, so the scanner must be lined up across the bars, and they hold much less than a QR code.

Meeting them in daily life

  • The label on a parcel
  • The sticker on electronics
  • A library card or membership card
  • A visitor badge

Tips

  1. Scan the whole width of the bars.
  2. Avoid glare on shiny labels.
  3. Keep the code flat.

QR Code Scanner opens straight to the camera for QR codes and product barcodes, and needs no account.

Scan and create QR codes and barcodes with QR Code Scanner →

QR Code Scanner app icon

QR Code Scanner

Fast QR & barcode scanner with a built-in QR code generator

Get the app

More about QR Code Scanner