Two ways to encode data
A linear barcode represents data in one direction: bars and spaces of different widths. A QR code represents it in two directions, with square modules arranged in a grid. That geometric difference explains all the others: capacity, size, reading method and tolerance to damage.
Neither contains product information by itself. Both hold an identifier, and the system links it to the product, the location or the pallet. A QR code with more capacity does not make the label more capable if the system needs only a ten-character code.
Point-by-point comparison
| Criterion | Linear barcode | QR code |
|---|---|---|
| Capacity | Dozens of characters | Thousands of characters |
| Space | Grows in width with each character | Compact; grows little with more data |
| Reading | Laser or imaging scanner | Imaging scanner or camera only |
| Distance | Several meters with a wide code and a long-range scanner | Short, unless the code is large |
| Orientation | The beam must cross all the bars | Read at any angle |
| Damage | A vertical scratch can disable it | Corrects errors; reads with part damaged |
| Reading with a phone | Possible, slower | Fast |
| Point-of-sale use | Standard (EAN-13, UPC) | Not the current standard at the register |
Where the linear barcode is suitable
- Locations. The label on a high level is read from the floor. A wide Code 128 reads at several meters; a QR code on the same label size requires approaching or climbing.
- Pallets and packages. They are read in motion, from the forklift, with a long-range scanner.
- Consumer products. The manufacturer already prints the EAN-13 or UPC, and the warehouse uses it without labeling.
- Cases with lot and expiration date. The supply chain standard is GS1-128, a linear code.
- Older equipment. Laser scanners do not read two-dimensional codes.
Where the QR code is suitable
- Small labels. On a piece of a few centimeters, a 20-character linear code does not fit; a two-dimensional one does. On very small parts, Data Matrix is preferred, as it is even more compact.
- Several data elements on one label. Product, lot, expiration date and serial number in a single symbol, with GS1 syntax.
- Reading with phones. When part of the staff works with a phone camera, the QR code is focused and read faster.
- Device pairing. Showing a QR code on screen so that a handheld or an application connects without typing an address.
- Documents. A QR code on a printed sheet leads to its digital version.
The other 2D codes
QR is the best-known two-dimensional code, but in industry it shares space with Data Matrix, which dominates in small parts, electronics and health care, and with PDF417, present on identity and transport documents. For the warehouse, the actual decision is not "barcode or QR"; it is linear or two-dimensional and, among two-dimensional codes, the one the customer or the sector standard requires. The article on warehouse barcode types describes each symbology.
How to decide
- List what will be identified: products, locations, pallets, packages, documents.
- Note the equipment and the distance at which each will be read. This point resolves most cases.
- Review what your customers require. A retail chain may request GS1-128 on the case and EAN-13 on the piece.
- Choose the least complex code that complies. For a ten-character internal code read with a scanner, Code 128.
- Test the printed label in the actual place: height, lighting, distance and angle.
It is usual, and correct, to use both: linear on locations and pallets, two-dimensional on small parts or on labels that concentrate several data elements.
And compared with RFID
The two codes share one condition: they are read one at a time and with line of sight. RFID reads many tags at once, without seeing them, in exchange for a higher cost per tag and per device. The RFID vs. barcode guide compares the two technologies.
How Chainlink WMS does it
In Chainlink WMS, label templates are designed by type, product, location or pallet, with size, printer resolution, texts, a barcode or a QR code and variables such as the code, the lot or the expiration date, with a preview before saving. They are printed on Zebra printers from the web or from the handheld.
- Product. Each product records the barcode read on the floor: EAN-13, UPC-A, Code 128 or another.
- Location. The label carries the code as text and as a barcode.
- Pallet and package. Their code is printed in Code 128.
- Reading. The app reads with the scanner of Zebra and Honeywell handhelds or with a phone camera, and interprets the application identifiers of GS1-128, GS1 DataMatrix and GS1 QR.
See label printing and the Android app.
Frequently asked questions
Will the QR code replace the barcode?
In the warehouse, not in the short term: the linear code remains more practical for reading at a distance and is what points of sale and most retail chains expect. The two coexist.
Does a barcode scanner read QR codes?
Only if it is an imaging scanner. Laser scanners read linear codes only. Current handhelds include an imaging scanner.
Which code suits locations?
A linear code, such as Code 128, printed as wide as the label allows, because it is read from a distance and on high levels.
How much information fits in a QR code?
Up to several thousand characters, depending on the version and the error correction level. In practice, the more content it carries, the larger it must be printed to read well.