QR code vs barcode: what's the difference, and which one do you need?
A barcode is a line of stripes that holds a short product number. A QR code is a square that holds links, text and more. Here's how they differ and when to use each.
QR Hub team · · 6 min read
Short answer: a barcode is a row of black stripes that holds a short number, usually a product code. A QR code is a square of small black and white squares that can hold much more — a web link, a Wi-Fi login, a contact card or a short text. Both are read by a scanner or camera, but they do different jobs.
This guide shows the difference in one table, explains why QR codes were invented, and helps you pick the right one for your shop, school or event.
The difference in one table
| Barcode (1D) | QR code (2D) | |
|---|---|---|
| Shape | Vertical stripes in a row | A square grid of small squares |
| How it stores data | In one direction, across the stripes | In two directions, across and down |
| How much it holds | About 20 characters | Up to 7,089 digits or 4,296 letters and numbers |
| Typical content | A product or stock number | A link, text, Wi-Fi login, contact card, location |
| Damage | Needs clean stripes | Error correction can rebuild up to about 30% |
| Usual reader | Checkout or warehouse scanner | Any smartphone camera |
The numbers come from the inventor and from a scanner maker: DENSO WAVE says "a barcode can only hold 20 alphanumeric characters or so of information" (DENSO WAVE history), and the largest QR code holds 7,089 numeric or 4,296 alphanumeric characters (Keyence QR basics).
What a barcode is
The classic barcode is called a 1D (one-dimensional) barcode because the information runs in one direction only: across the stripes. The widths of the bars and the gaps stand for digits.
The best-known example is the product barcode on almost everything you buy. In the US it's the 12-digit UPC. The first item marked with a UPC was scanned on 26 June 1974 at a supermarket in Troy, Ohio — a pack of chewing gum (Axios).
A product barcode doesn't hold the price or the product name. It holds a number. The shop's system looks that number up in its own database to find the name and price. That's why a barcode can be so small and simple.
What a QR code is
A QR code is a 2D (two-dimensional) barcode: it stores data both across and down, in a square grid. That's how it fits so much more into a small space.
It was built in Japan by DENSO WAVE and released in 1994. Factories needed more than the 20 or so characters a barcode could carry, including Japanese characters, and they needed it read fast. The name says it: "QR" stands for quick response, because the focus "was placed on high-speed reading" (DENSO WAVE history).
A few things make QR codes easy to use in daily life:
- Any angle. Three big corner squares tell the camera where the code is and which way up it is, so you can scan it sideways or upside down.
- Error correction. A QR code carries backup data. Depending on the level chosen (L, M, Q or H), about 7% to 30% of the code can be damaged and it still scans (Keyence QR basics).
- Free to use. You don't need a licence or pay a fee to make or use QR codes (DENSO WAVE FAQ).
- Your phone reads it. Most phone cameras open a QR code without an extra app. See how to scan a QR code on any phone without an app.
Want the full tour of the corner squares and the white border? Read What is a QR code and how does it work?
Is a QR code a type of barcode?
Yes. "Barcode" is the family name for machine-readable codes. QR codes belong to the 2D barcode branch of that family. In everyday talk, though, "barcode" usually means the striped kind and "QR code" means the square kind — and that's how we use the words in this guide.
In some countries people call QR codes "barcodes" too. In Saudi Arabia, for example, "باركود" is the everyday word for a QR code.
Which one do you need?
Ask one question: who will scan it — a shop's scanner or a person's phone?
Choose a barcode when:
- You sell a product in shops and it must scan at the checkout.
- You track stock in a warehouse with a barcode scanner.
- The code only needs to carry a short number that your own system looks up.
Retail product barcodes are issued through GS1, the organisation behind product numbers, so start with GS1 in your country.
Choose a QR code when:
- You want people to open a link: your menu, website, Google reviews or a form.
- You want guests to join your Wi-Fi without typing the password.
- You want to share contact details, a location, a WhatsApp chat or a file.
- You want to change where the code points later (a dynamic code — see do QR codes expire?).
For most small businesses, teachers and event planners, the answer is a QR code: it's made for phones, and everyone carries one.
Are QR codes replacing barcodes?
On product packs, the two are starting to merge. In a worldwide push called Sunrise 2027, the retail industry is moving from the standard 12-digit barcode to 2D codes (Axios).
GS1 and a long list of big manufacturers and retailers have said that "by the end of 2027, QR Codes with GS1 standards should be widely adopted", with retailers able to scan them at the checkout. The same code would work at the till and also take shoppers to product information on their phone (GS1 endorsement statement). The statement mentions pilots in 48 countries.
In September 2026, the US convenience-store association reported that retailers are still preparing for the shift by the end of 2027 (NACS). So for now, striped barcodes are still everywhere — and both kinds will be around for years.
Note that these retail QR codes carry GS1 product numbers inside, which come from GS1. A QR code you make for your menu or Wi-Fi is not a product barcode and won't ring up at a supermarket till.
Tips if you choose a QR code
- Keep the content short. A short link gives fewer, bigger squares that scan faster.
- Print it big enough. Our QR code size guide has a table from business cards to banners.
- Keep contrast high. Dark squares on a light background scan best.
- Leave the white border. Don't let text or pictures touch the code.
- Test before you print with two different phones.
The bottom line
A barcode is a short number for machines at a checkout or a warehouse. A QR code is a small square that takes people somewhere on their phone. If your goal is to connect customers, students or guests to a link, a menu, your Wi-Fi or your contact details, make a QR code. You can make one for free on QR Hub, with no sign-up.
Make your QR code now
Free static QR codes with no sign-up and no expiry. Editable codes with scan stats when you need them.
Make this QR now