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
- Scan the whole width of the bars.
- Avoid glare on shiny labels.
- 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
Fast QR & barcode scanner with a built-in QR code generator
More about QR Code Scanner
Check Digits: How a Barcode Catches Its Own Typos
The last digit of a product barcode is a check digit. See how it is calculated and why it prevents most misreads.
Read article →Data Matrix, PDF417 and Aztec: The Other 2D Codes
QR is the best-known square code, but others exist. A guide to Data Matrix, PDF417 and Aztec and where each appears.
Read article →How EAN-13 and UPC-A Product Barcodes Are Structured
What the digits under a product barcode mean: country or prefix, maker, product and the final check digit.
Read article →ISBN Barcodes on Books: What the Numbers Tell You
How the ISBN identifies a book edition, why it starts with 978 or 979, and how the barcode on the back cover relates to it.
Read article →