QR Code vs. Barcode — When to Use Which (and What Your Phone Can Read)
A QR code is a barcode. So are the stripes on a soup can. "Barcode" is the family; QR is one member of it. The practical question is which format to use for what — and which ones your phone can read without installing anything.
What "1D" and "2D" actually mean
The striped codes on packaging are one-dimensional. They encode data in the widths and spacings of parallel bars, and they're meant to be swept by a laser beam. Common 1D formats include UPC-A and EAN-13 on retail products, Code 128 on shipping labels, Code 39 on industrial labels, ITF on cartons, and Codabar on library books and blood bags. The 1D barcode was patented in 1952 by Norman Joseph Woodland and Bernard Silver.
The square codes — QR, Data Matrix, PDF417, Aztec — are two-dimensional. They encode data in a grid of dark and light modules, and any camera can read them from any angle. No laser. QR was invented in 1994 by Masahiro Hara at Denso Wave for tracking automotive parts. It went mainstream when smartphone cameras started recognizing it natively.
How much data each format holds
A UPC-A holds 12 digits. EAN-13 holds 13. Code 128 fits roughly 80 characters at a printable size. These were designed as identifiers that point to a row in a database — not as data carriers.
QR is in a different category. At Version 40 with the lowest error-correction level, a single QR code can hold up to 7,089 numeric characters, 4,296 alphanumeric, 2,953 bytes of binary data, or 1,817 kanji characters. The versions scale predictably: Version 1 is 21×21 modules, each step adds 4 modules per side, Version 40 is 177×177. That's why a QR can fit a full URL, a vCard, or a Wi-Fi credential string — and a UPC can't. For a friendly walkthrough of the underlying encoding, see how QR codes actually work.
What your phone can actually read
This is where the line is sharpest. The iPhone Camera app reads QR codes natively in any orientation — point, then tap the notification to open the URL, join the Wi-Fi, or save the contact. Most Android phones on Android 8 or later do the same, either through Camera or through Google Lens.
Neither native camera reads 1D retail barcodes. For a UPC or EAN you need an app. The most common SDK behind those apps, Google's ML Kit, reads nine linear formats — Codabar, Code 39, Code 93, Code 128, EAN-8, EAN-13, ITF, UPC-A, UPC-E — and four 2D formats — Aztec, Data Matrix, PDF417, and QR. QRDock reads all of these from a single scanner, on-device, with no account and no tracking.
When to pick a 1D barcode
Pick 1D when the data is short and the reader is a fixed scanner. Retail checkout uses UPC and EAN. Shipping uses Code 128 and ITF. Libraries use Code 39 and Codabar. The infrastructure is decades old, the scanners are everywhere, and the codes only need to carry a numeric ID that the back-end resolves.
When to pick a QR code
Pick QR when the reader is a phone (or any general-purpose camera) and the data is richer than a number. A URL on a printable menu. A Wi-Fi credential string so guests connect without typing the password. A vCard handed off at a conference. A payment link. A calendar event for a meetup. Anywhere the reader is software, QR is the right call — capacity is generous, error correction tolerates damage and logos, and almost every phone alive today reads it without an app.
Other 2D formats worth knowing
Data Matrix is tiny and dense — you'll see it on circuit boards, electronic components, and pharmaceutical packaging. PDF417 is rectangular and high-capacity — it's on airline boarding passes and the back of US driver's licenses. Aztec is a square with a bullseye in the middle — it's the format European rail tickets and a lot of concert tickets use. All three are read by ML Kit and by full-featured scanner apps like QRDock.
Frequently Asked Questions
Is a QR code a barcode?
Yes — QR is a kind of barcode, specifically a two-dimensional matrix barcode. The word "barcode" used to mean only the striped 1D format on grocery items, but the broader definition covers any visual, machine-readable encoding. So every QR code is a barcode, but most barcodes you see on packaging are not QR codes.
Can my phone read a regular UPC barcode?
Not with the default camera app on either iPhone or Android — those are tuned for QR codes. To scan a UPC, EAN, or other 1D retail barcode you need a separate app, usually a price-check tool or a scanner that uses Google's ML Kit. The QRDock app reads all common 1D and 2D formats from the same scanner.
Why are QR codes everywhere instead of regular barcodes now?
Two reasons. First, QR codes can hold thousands of characters where a UPC holds only twelve digits, so a QR can carry a full URL, Wi-Fi credentials, or a contact card. Second, modern phone cameras read QR codes natively and at any angle — which made them the obvious choice for menus, payments, and event tickets after 2020.
What's the difference between QR, Data Matrix, PDF417, and Aztec?
They're all 2D matrix codes but with different histories and strengths. Data Matrix is tiny and dense, used on circuit boards and pharmaceutical packaging. PDF417 is wide and rectangular, used on airline boarding passes and US driver's licenses. Aztec is square with a bullseye in the middle, used on rail tickets and concert tickets. QR is the general-purpose 2D format that won the consumer market.
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [ {"@type": "Question", "name": "Is a QR code a barcode?", "acceptedAnswer": {"@type": "Answer", "text": "Yes — QR is a kind of barcode, specifically a two-dimensional matrix barcode. Every QR code is a barcode, but most barcodes on packaging are not QR codes."}}, {"@type": "Question", "name": "Can my phone read a regular UPC barcode?", "acceptedAnswer": {"@type": "Answer", "text": "Not with the default camera on iPhone or Android — those are tuned for QR. For UPC or EAN you need a separate app, often one built on Google's ML Kit. QRDock reads all common 1D and 2D formats from one scanner."}}, {"@type": "Question", "name": "Why are QR codes everywhere instead of regular barcodes now?", "acceptedAnswer": {"@type": "Answer", "text": "QR codes can hold thousands of characters where a UPC holds only twelve digits, and modern phone cameras read QR natively at any angle. That combination made QR the obvious choice for menus, payments, and event tickets after 2020."}}, {"@type": "Question", "name": "What's the difference between QR, Data Matrix, PDF417, and Aztec?", "acceptedAnswer": {"@type": "Answer", "text": "Data Matrix is tiny and dense — circuit boards and pharma. PDF417 is rectangular and high-capacity — boarding passes and US driver's licenses. Aztec is square with a bullseye — rail and event tickets. QR is the general-purpose 2D format that won the consumer market."}} ] } </script>The short answer
Pick 1D when you need a short product ID and the reader is a laser scanner. Pick QR when the reader is a phone and the data is richer than a number. If you're unsure whether scanning a particular QR is safe — say, one taped to a parking meter — read is it safe to scan a QR code before tapping through. When you do want to scan, QRDock reads every format mentioned here from the same on-device scanner, with no account and no tracking.