Skip to content
QRStitch

QR Code vs Barcode: 7 Differences That Matter

A QR code is a barcode, just a two-dimensional one. What separates it from the striped code on a biscuit packet, and how to pick the right one.

QRStitch Team11 min read

A kraft box with a striped barcode, a QR code card beside it, and a phone scanning the QR code
On this page

A QR code is a barcode, just a two-dimensional one. So the question behind "QR code vs barcode" is how the old striped barcode on a packet of biscuits differs from the square code you scan to pay at a tea stall, and which one your product, shop or campaign needs.

The difference between a barcode and a QR code comes down to this: a barcode holds a short number that a shop's computer looks up, while a QR code can hold the information itself, like a full web address, a Wi-Fi password or a UPI payment request, and almost any phone can read it. Below are the seven differences that matter in practice, plus the change coming to supermarket checkouts around 2027.

The two codes in one minute

A barcode (more precisely a 1D or linear barcode) is the row of black bars and white gaps you see on packaged goods. A scanner reads it along one axis, across the bars. The retail kind, EAN-13 in most of the world and UPC-A in the US and Canada, holds 13 or 12 digits (GS1 US). That number means nothing by itself. The till looks it up in a product database to find the name and price.

A QR code is a square grid of black and white modules with bigger squares in three of its corners. A camera reads it in both directions at once, so it packs far more into the same space. That's the core of 1D vs 2D barcodes: one row of information versus a whole grid. Denso Wave, then a division of the Japanese car parts maker Denso, released the QR code in 1994 after requests from its own factories (QRcode.com).

The barcode is much older. Norman Woodland and Bernard Silver filed their patent in 1949 and got it in 1952 (US patent 2,612,994). The first product scanned at a real checkout was a pack of Wrigley's Juicy Fruit gum, on June 26, 1974, in a supermarket in Troy, Ohio (History.com).

QR code vs barcode at a glance

Barcode (1D) QR code (2D)
1. What it holds A product or item number A link, text, Wi-Fi login, contact, payment
2. How much 12 to 13 digits for retail codes Up to 7,089 digits or 2,953 bytes
3. Scanned by Checkout and warehouse scanners Any modern phone camera, plus 2D scanners
4. Scan angle Must face the scanner Any angle, even upside down
5. Damage tolerance Low Built-in error correction, 7% to 30%
6. Space needed Grows wide Compact square
7. Cost in retail Needs a registered number (GS1) Free to create and use

1. What each code holds

A retail barcode holds an identifier, a GTIN (Global Trade Item Number). Scan a packet of Maggi and the barcode tells the till "this is item 890…", and the store's system answers with the name, pack size and today's price. Change the price and you update the database, not the packet.

A QR code usually holds the content itself. Scan a restaurant table code and the web address of the menu is right there in the pattern, and your phone reads it straight off the code with no database lookup. So a QR code works on a poster or a parcel with no system behind it at all.

2. How much data fits

A QR code can hold up to 7,089 digits, 4,296 uppercase letters and numbers, or 2,953 bytes of binary data in its largest version (QRcode.com). A retail barcode holds 12 or 13 digits. Industrial linear codes such as GS1-128 stretch to 48 characters (GS1 US), but they get very long to do it.

You'll rarely use a QR code's full capacity, and you shouldn't try. Every extra character adds modules, and a denser code has to be printed bigger to scan well. A short link gives you a cleaner code than a long one with tracking parameters.

3. What can scan it

Barcodes were built for dedicated scanners: the red-line laser at a supermarket till or a handheld gun in a warehouse. A laser scanner reads only 1D codes. Reading a 2D code needs an image-based scanner.

QR codes went the other way. The camera app on iPhones and most Android phones reads a QR code on its own, with no extra app. A phone can read a striped barcode too, usually through Google Lens or a scanner app, but all it gets is a product number, so the best it can do is search the web for it.

That gap explains a lot. QR codes caught on with the public, and barcodes stayed behind the counter.

4. Scanning angle and speed

A single-line scanner needs its beam to cross every bar. Checkout scanners use several crossing beams to make this easier, but the barcode still has to face them. The three corner squares of a QR code tell the camera where the code is and which way up it sits, so you can scan it upside down or at a slant.

Which is faster depends on who's scanning. A cashier with a checkout scanner and a practised wrist gets through 1D barcodes very quickly. For a customer holding a phone, the QR code wins, because there's nothing to line up.

5. What happens when it gets damaged

A scratch or crease running down through the bars often stops a barcode from scanning. Shop staff then type the number printed under it by hand.

QR codes have error correction built in. Depending on the level chosen when the code is made, it can still be read with roughly 7% (level L), 15% (M), 25% (Q) or 30% (H) of it damaged or covered (QRcode.com). That same margin is what lets designers put a logo in the middle of a QR code. The logo covers part of the pattern and error correction fills the gap.

6. Size and space on the pack

Because a QR code stores data in both directions, it holds more in less space. A short link fits comfortably in a code 2 cm wide. A barcode needs width instead. With Code 128, every extra character adds bars, and even fixed-length retail codes have a minimum printed size that tills need.

Both codes need a clear margin around them. For a QR code that's four modules wide on every side (QRcode.com). Text or a border inside that margin is one of the most common reasons a printed code fails.

7. Cost and who controls the number

Making either code costs nothing. A barcode generator draws an EAN-13 or a Code 128 image in seconds, and a QR code generator does the same for QR codes.

Using a barcode in retail is another matter, and it usually costs money. Supermarkets and most marketplace categories want a GTIN that belongs to your company, which you get by licensing a company prefix from GS1 (GS1 India here, GS1 US in America, and so on). Making up a 13-digit number, or buying a cheap one from a reseller, can clash with another company's product and get your listing rejected.

QR codes need no registration. Denso Wave patented the QR code but chose never to enforce the patent, so anyone can use it free (Denso Wave). "QR Code" itself is still Denso Wave's registered trademark.

Then there's what happens after printing. A static QR code, like a barcode, stays fixed once it's on paper.

A retail barcode gets around this for price, because the store edits its database while the packet stays the same. It still can't send a shopper somewhere new. A dynamic QR code can. The printed code points to a short link, and you change where that link goes whenever you like.

Sunrise 2027: will QR codes replace barcodes at checkout?

Partly, and slowly. GS1, the body that runs the barcode numbering system, has a project called Sunrise 2027. It's led from the US, where retailers are working toward checkout scanners that can read 2D codes by 2027. GS1 wants other countries to follow, but the timing varies, so don't expect every Indian billing counter to change in 2027.

The idea is that one 2D code on the pack carries the product number for the till plus extras like batch number, expiry date or a link for shoppers. The piece that makes this work is GS1 Digital Link, a web address with the product's GTIN built into it. Put that address in a QR code and the same code works at the till and on a customer's phone (GS1 US).

Nothing in Sunrise 2027 bans barcodes. GS1 US says "the UPC barcode isn't going away," and that shoppers may see a 2D code and a standard barcode on the same pack during the transition (GS1 US). Some articles say barcodes are "being phased out" by 2027. GS1 doesn't say that.

For a small brand, the advice is simple. Keep your registered barcode. If you're redesigning packaging anyway, consider adding a QR code next to it. If you sell through big retailers abroad, ask whether they want that QR code built with GS1 Digital Link.

What about Data Matrix and other 2D codes?

The QR code is one 2D barcode among several, and you'll run into two others.

Data Matrix is the small square code on medicine strips, electronic parts and surgical tools. It fits up to 2,335 characters into a tiny space (GS1 US), and GS1 calls its version, GS1 DataMatrix, the preferred 2D code for pharmaceuticals, aerospace and electronics (GS1 US). Some phones need a separate app to read it, which makes it a poor fit for shoppers.

PDF417 is the wide, stacked code on many driving licences and airline boarding passes.

So for Data Matrix vs QR code, think about the reader. Data Matrix suits tiny parts and industrial systems. QR suits anything a person scans with a phone.

So which one do you need?

Match the code to who scans it.

  • Selling a product in shops or on Amazon or Flipkart? In most cases you need a GS1-registered barcode (EAN-13 in India). Marketplaces make exceptions only in narrow cases, such as some handmade or unbranded goods. A QR code can sit next to the barcode for instructions, warranty registration or reorders.
  • If you want customers to open something on their phone (a menu, your Google review page, Instagram, a Wi-Fi password, a payment), use a QR code. For payments in India that means a UPI QR code.
  • For tracking stock inside your own business, either works. Code 128 barcodes are cheap and every warehouse scanner reads them. QR codes hold more (item, batch, location), and staff can scan them with their phones instead of buying scanners.
  • Labelling something very small, like a component or a vial? Look at Data Matrix.
  • When the printed thing might need to change later, use a dynamic QR code so you can update the destination after the labels go out.

Plenty of products carry both. Turn over a biscuit pack or a phone box and you'll often find a barcode for the till next to a QR code for the customer.

Common mistakes

The most common one is putting a QR code where a barcode is required. A retailer's till won't accept a QR code with your website in it as a product code. When a buyer asks for a barcode, they mean a GTIN.

Close behind is making up a barcode number. A free generator will happily draw any 13 digits, but the number still belongs to whoever registered it. For retail, get yours from GS1.

People also stuff too much into a QR code. A full vCard with an address, or a long URL with tracking tags, produces a dense code that struggles when printed small. A short link fixes that.

Light codes on dark backgrounds cause trouble too, since many scanner apps fail on inverted QR codes. Dark on light is the safe choice for both code types.

And test before you commit. Print one copy at the real size, on the real material, and scan it with an iPhone and an Android phone before you print a thousand.

Frequently asked questions

Is a QR code a type of barcode?

A QR code is a type of barcode, specifically a two-dimensional (matrix) one. When people say "barcode" they usually mean the older one-dimensional kind with vertical bars, which is why the two get compared.

What is the difference between a barcode and a QR code?

A barcode stores data in one direction and usually holds a product number of 12 or 13 digits. A QR code stores data in two directions, holds up to a few thousand characters, and can be read by any modern phone camera.

Can my phone scan a normal barcode?

Most phones can, using Google Lens or a scanner app. A retail barcode only contains a product number, so the phone shows that number or searches the web for it. A QR code can open a link or action directly.

Can I use a QR code instead of a barcode on my product?

If you sell through retailers today, you still need a GS1 barcode for their checkouts. GS1's Sunrise 2027 plan lets 2D codes carry the product number too, but the standard barcode stays in use during the transition, so most brands print both.

Which is cheaper, a barcode or a QR code?

Creating either image is free. Using barcodes in retail needs a GS1 membership, which has a fee. QR codes have no licence or registration cost. Dynamic QR codes, which you can edit later, are usually part of a paid plan, though some generators offer them free.

Which is more secure?

Neither is encrypted by default. A barcode only reveals a product number, so there's little to abuse. A QR code can send someone to any website, so scammers sometimes stick fake codes over real ones on parking meters or posters. If you put QR codes in public places, check them now and then, and use a domain your customers recognise.

Create a barcode or QR code

If your product will be sold in shops, start with a GS1 number, then generate the image with the barcode generator. If you want people to scan with their phones, make a QR code in the QR code generator. It's free, downloads as SVG or PNG for print, and checks that the code scans before you download it.

#barcodes#qr code basics#retail#packaging

More from the blog

Embroidered QR code patch next to a cream baseball cap, thread spool and embroidery hoop
Guides

How to Embroider a QR Code That Actually Scans

Embroidered QR codes work on hats, patches, aprons and shirts if you get four things right: size, contrast, a short link, and a test scan before the full run.

QRStitch Team9 min read