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
Barcode Scanning for Allergen and Ingredient Checks
How barcode and QR scans can help people with allergies and dietary needs find ingredient information — and why the printed label still matters.
Read article →Barcodes on Medicines: What They Contain
What barcodes and 2D codes on medicine packs are used for — identification, batch tracking and authenticity — and what scanning them can tell you.
Read article →QR Codes at Restaurants: Ordering, Menus and Paying Safely
How restaurant QR codes for menus, ordering and payment work, and simple checks to make sure you're scanning the restaurant's real code.
Read article →QR Codes in Emails and PDFs: Phishing Risks
Attackers increasingly hide phishing links inside QR codes in emails and documents. Learn how 'quishing' works and how to protect yourself.
Read article →