Key takeaways
- A 1D barcode holds a short number. A QR code holds thousands of characters, including a web address.
- A QR code is a 2D barcode, so the real comparison is 1D lines against a 2D grid.
- Phones read QR codes from any angle. Shop scanners read 1D barcodes in a tight, aligned line.
- Retail is adding 2D barcodes next to the old ones, so the two will sit side by side for years.
The short answer
A traditional barcode is a row of vertical lines that holds a short number, usually 8 to 13 digits for a retail product. A QR code is a square grid of dots that holds up to about three thousand characters and can be scanned from any angle by a phone. Both are barcodes. One is one-dimensional, the other two-dimensional.
Side-by-side table
| Feature | 1D barcode (UPC, EAN) | QR code |
|---|---|---|
| Shape | Vertical lines | Square grid |
| Typical data | 8 to 13 digits | Web address, text, contact, Wi-Fi |
| Maximum data | Tens of characters | Up to 7,089 digits |
| Scan angle | Aligned line of sight | Any angle, 360 degrees |
| Damage tolerance | Low, a scratch can break it | High, error correction rebuilds up to about 30% |
| Read by | Laser or imager scanners | Phone cameras and imagers |
| Main use | Checkout and inventory | Sending people to digital content |
How much each stores
A standard UPC holds 12 digits and an EAN-13 holds 13. That is enough to say which product is being scanned, and nothing else. The number is a key into a database, so everything useful sits on the retailer's system.
A QR code can carry the information itself. At its largest size a code holds up to 2,953 bytes, which is a long web address, a full contact card or a paragraph of text. Most business codes hold a short web address, and the page behind it carries the rest. How QR codes work explains capacity and error correction in detail.
How each is scanned
A shop scanner sweeps a laser or an image across a 1D barcode, and the lines must be roughly aligned and undamaged. A phone camera reads a QR code in a fraction of a second from almost any angle, because three large squares in the corners tell the reader which way is up. Error correction lets a code scan even when part of it is dirty or covered, which is why codes work on stone, metal and outdoor signs. How to scan a QR code covers the steps for a phone.
Where retail is heading
GS1, the organization that manages product barcodes, is pushing a move to 2D barcodes at the checkout. Its target is that stores worldwide can scan them by 2027, a program often called Sunrise 2027. A 2D code, usually a QR code or a Data Matrix, can carry the product number plus extra fields such as batch, expiry date and a web link, using a format called GS1 Digital Link.
For brands that means one printed code can serve the till and the customer. The till reads the number, and a shopper's phone opens a manual, a recipe or a registration page. During the move, products will carry both the old and the new code. See QR codes for packaging for how this plays out on printed packs.
Which to use
- Use a standard 1D barcode for retail checkout, warehouse stock counts and anything a store system must read today.
- Use a QR code when a person with a phone should reach something online: a manual, a menu, a listing, a service record.
- Use both on retail packaging. The barcode serves the till and the QR code serves the customer.
- Use a dynamic QR code when the print will outlast the web page, so the destination can change without reprinting. See static vs dynamic.
If you want to add the customer side to a printed product, Permanent QR Codes sells editable codes for a one-time $49, with unlimited scans and no renewal.
Questions people ask
What is the main difference between a QR code and a barcode?
A traditional barcode is one-dimensional, a row of lines that holds a short number such as a 12-digit product code. A QR code is two-dimensional, a square grid that holds thousands of characters, including a web address, and can be read from any angle.
Is a QR code a type of barcode?
Yes. A QR code is a two-dimensional barcode. People often use 'barcode' to mean the older striped 1D kind, which is why the two are compared.
Can a QR code replace a barcode on products?
Retail is moving that way. GS1, the body behind product barcodes, has set 2027 as the target for stores to be able to scan 2D barcodes at checkout, which lets a single code carry a product number plus batch, expiry or a web link. Until then keep the standard barcode printed as well.
Which is cheaper to print?
Both cost almost nothing to print. A 1D barcode needs a registered product number from GS1 for retail. A QR code has no registration fee, but a dynamic code that you can edit may carry a service charge.
Which is easier to scan?
A QR code, for people. A phone camera reads it from any angle without an app. A 1D barcode needs a straight line of sight and, in a shop, a laser or imager scanner.