QR Code vs. Barcode: Which One Does Your Product Need?

Should I put a QR code or a regular barcode on my product?

Short answer

If the item has to ring up at a store register, it needs a UPC or EAN barcode today; a QR code is for sending phones to a web page. Retail is moving toward 2D codes at checkout through GS1 Digital Link, but during the transition the linear barcode stays on the package.

On this page
  1. The short version
  2. Capacity: a lookup number vs. the content itself
  3. Scanners: 1D readers vs. 2D imagers
  4. Checkout vs. marketing: different jobs
  5. GS1 Digital Link: one QR code for both jobs
  6. Which one should you use?
  7. Next step

You have room on a label or a box for one code, maybe two, and you're not sure whether it should be the striped kind or the square kind. Both are barcodes in the broad sense. They differ in how much they hold, what can read them, and where people expect to find them.

This guide compares the two side by side, then covers the one place they're starting to overlap: retail checkout.

The short version

A linear (1D) barcode, such as UPC-A, EAN-13 or Code 128, stores a short string in bars that run in one direction. A QR Code stores data in a square grid of dark and light squares called modules, read in two directions at once.

Linear barcode (UPC-A, EAN-13, Code 128)QR Code
LayoutBars and spaces in one directionSquare grid of modules
What it holdsA short number or code, such as the 12 digits of a UPC-AUp to 7,089 digits or 2,953 bytes in the largest version
Typical contentA GTIN, SKU or serial number that a system looks upA web address, text, or contact details
What reads itLaser scanners, linear imagers, 2D imagers2D imagers and phone cameras
If part is damagedA check digit or check character catches misreads, but nothing is rebuiltError correction can recover roughly 7% to 30% of the codewords, depending on level
Where it's expectedStore checkout, warehouses, shippingPackaging, signs, menus, manuals, tickets

Capacity: a lookup number vs. the content itself

A retail barcode carries an identifier and nothing else. When a cashier scans a UPC-A, the register receives 12 digits and looks up the price and description in its own database. DENSO WAVE, the company that invented the QR Code, puts the ceiling for conventional barcodes at roughly 20 digits (What is a QR Code?).

A QR Code carries the content directly, which is why it can hold a full web address. Capacity depends on the version, from Version 1 (21 × 21 modules) up to Version 40 (177 × 177 modules). DENSO WAVE's capacity tables list 17 bytes for Version 1 at the lowest error correction level, and 2,953 bytes or 7,089 digits for Version 40.

More data means more modules, so a long URL produces a denser code that has to be printed larger to scan well. The QR code size guide covers that trade-off.

Scanners: 1D readers vs. 2D imagers

This difference matters most in practice. A laser scanner reads by sweeping a line of light across the bars, which works for linear barcodes but can't capture a two-dimensional grid. A QR Code needs an imager, essentially a camera, that captures the whole square.

Camera-based 2D imagers read both kinds. Phones read QR codes too; Apple's iPhone guide has you point the Camera app at the code and tap the link that appears.

So before you print QR labels for your stockroom, check what your handheld scanners are. A laser gun that reads your UPCs perfectly will ignore a QR Code. The guide to how barcode scanners work explains how to tell which type you have.

Checkout vs. marketing: different jobs

A store register needs a GTIN, the product number behind a UPC or EAN, in a form its scanner and software expect. A typical marketing QR code holds only a web address, so a register has nothing to ring up. In the other direction, a UPC holds only a number, so a phone has nothing to open unless an app looks that number up.

So a retail package that needs to do both jobs today carries two codes. The UPC or EAN handles checkout and inventory, and the QR code, if there is one, sends shoppers to instructions, recipes or a product page.

GS1, the organization that manages UPC and EAN numbers, created GS1 Digital Link to merge the two roles. It is a standard way to write GS1 identifiers, such as a GTIN plus optional batch or expiry data, inside a web address. The result works as an ordinary link for a phone, while a scanner can pull the GTIN out of the same code without going online.

A Digital Link address looks like a normal URL with the identifier in the path, for example https://example.com/01/09506000134352, where 01 marks the GTIN that follows. GS1 notes that the brand owner can change where that address redirects without reprinting the package. GS1 US advises brands with existing QR codes to update them to Digital Link syntax and include the product's GTIN (What is GS1 Sunrise 2027?).

The move to 2D at checkout

GS1 is backing an industry goal, called Ambition 2027 globally and Sunrise 2027 by GS1 US, for retail registers everywhere to read 2D barcodes by the end of 2027 (GS1). [VERIFY] GS1's retail implementation guideline names three 2D options for checkout: GS1 DataMatrix, Data Matrix with a Digital Link URI, and QR Code with a Digital Link URI. It also notes that getting there takes software upgrades, plus new hardware wherever a register's scanner isn't an imager.

Linear barcodes aren't going away. The same guideline says products carrying a retail 2D barcode still need a linear barcode alongside it until 90% of point-of-sale scanning systems can handle the 2D codes. GS1 expects 1D, QR and DataMatrix codes to coexist in retail.

For a small brand, the practical reading is simple. Keep your UPC or EAN, and if you add a QR code, consider building it as a Digital Link on your own domain so the same code can work at checkout as registers catch up.

Which one should you use?

Match the code to the job and to the device that will read it:

  • Selling through stores: a UPC-A (common in the U.S.) or EAN-13 carrying a GTIN assigned to you. See how to get UPC barcodes.
  • Sending customers to a web page: a QR Code. Keep the URL short and on a domain you control.
  • Internal inventory with laser scanners: a linear code such as Code 128.
  • Internal labels that need lots of data in a small space: a 2D code, but only after confirming every scanner in the workflow is an imager.
  • Retail items where you want one code for checkout and phones: a QR Code with a GS1 Digital Link URI, printed next to the existing UPC or EAN during the transition.

If you're still unsure which symbology fits your situation, the barcode type decision guide walks through each job.

Next step

Decide what the code must do first: ring up at a register, open a page, or both. Then make it in the Plain Barcode generator, which creates UPC-A, EAN-13, Code 128 and QR Code and exports SVG or PNG. Print a test copy and scan it with the device your customers or staff will actually use.

Sources

  1. DENSO WAVE: What is a QR Code?
  2. DENSO WAVE: Information capacity and versions of QR Code
  3. GS1: GS1 Digital Link
  4. GS1: 2D Barcodes at Retail Point-of-Sale Implementation Guideline
  5. GS1: Paving the way for a global migration to 2D barcodes
  6. GS1 US: What is GS1 Sunrise 2027?
  7. Apple: Scan a QR code with your iPhone camera

Written by Toma Tomov, editor of Plain Barcode.

How guides are researched and corrected: Editorial Policy. Spotted an error? Email [email protected].