QR Code Planet
  1. Home
  2. Learn
  3. QR code vs barcode
QR code basics

QR code vs barcode: what’s the difference?

A barcode is a row of lines that stands for a short number. A QR code is a grid of squares that can hold a whole web address. They look related, but they do different jobs, and many products carry both.

Short answerA traditional barcode stores a short number in one row of lines, and a till looks that number up in a database. A QR code stores far more in a square grid, usually a link, and any phone camera can read it. Use a barcode to identify a product at checkout, and a QR code to send a person to information.

Side by side

Barcode (1D)QR code (2D)
Looks likeParallel lines of different widthsA square grid with three corner squares
HoldsA short number or code: 12 digits in a UPC, 13 in an EANUp to a few thousand characters: a link, Wi-Fi details, a contact card
Read byLaser and camera scanners at tills and in warehousesPhone cameras and camera-based scanners
Read fromLined up with the scannerAny angle, even upside down
If damagedA scratch along the bars can still scan; missing bars can’t be rebuiltBuilt-in error correction rebuilds part of a damaged code
Means something on its ownNo. The number has to be looked upYes. The link or text is in the code

How a barcode works

The lines of a barcode spell out a number, read in one direction, which is why it’s called one-dimensional (1D). The number on a tin of tomatoes means nothing by itself. The shop’s till looks it up and finds the product and its price. That works well when everyone who scans it shares the same database, which is why product numbers are issued by GS1, the standards body for retail barcodes, through its national offices.

How a QR code works

A QR code stores data across and down, so it’s two-dimensional (2D) and fits far more into the same space. It was invented in 1994 by DENSO WAVE, a Japanese company, to track car parts faster than barcodes could. Because the data is in the code, a phone needs no database: it reads a web address and offers to open it. The three corner squares tell the camera where the code is and which way up, and error correction lets it survive some dirt and damage.

QR codes aren’t the only 2D codes. Data Matrix is common on small parts and medicine packs, and PDF417 on boarding passes and ID cards. QR is the one phone cameras read without an app.

When to use which

  • Selling through shops: you need a barcode with a registered product number. Retailers’ tills expect it.
  • Telling customers something: use a QR code. Instructions, a menu, a review form, a sign-up page or your contact details all fit, and a phone is the only scanner needed.
  • Tracking stock inside your own business: either works. Barcodes are cheaper to scan in bulk with handheld scanners; QR codes hold more and can be read with a phone.
  • Tickets and passes: a 2D code, because it holds enough to check without a network.

Why products often carry both

The barcode is for the till; the QR code is for the person holding the box. A QR code made in a generator like ours opens a page for your customer. It doesn’t replace the checkout barcode, because the till is looking for a product number in a format it knows.

That is slowly changing. GS1 is working with retailers so that tills can read 2D codes as well, with the end of 2027 as its target for shops to be ready. Until the shops you sell through tell you otherwise, keep the barcode and add the QR code beside it. Ideas for what the QR code can open are in QR codes on product packaging.

Is a QR code a barcode?

Technically yes: a QR code is a kind of 2D barcode, and the trade often calls it one. In everyday speech “barcode” means the striped kind, and that’s how this guide uses the word.

FAQ

Questions people ask

Can’t find yours? A person answers every email within 2 working days.

Email us

Can a QR code replace the barcode on my product?

Not at most shop tills today. Retailers scan a registered product number in a 1D barcode. Use a QR code alongside it for customers.

Can a phone scan a normal barcode?

Not with the camera app alone in most cases. Shopping and price-comparison apps can read them, because they look the number up for you.

Which holds more?

A QR code, by a wide margin: thousands of characters against a dozen or so digits.

Do I have to register a QR code?

No. Anyone can make one, and a static code works for as long as its content does. Product barcode numbers, by contrast, are issued by GS1.

Make your QR code now

Free, no watermark, no expiry. Download PNG, SVG, PDF, JPG or EPS.

Open the generator

More in QR code basics

All 7 articles

Related