Barcode vs QR Code: The Short Answer

A traditional barcode (1D) stores a short number or code in a row of vertical lines and is read along one line. A QR code (2D) stores data in a square grid, so it holds far more (up to 7,089 digits against 12 or 13 on a retail barcode), recovers from damage and scans from any angle with a phone camera. Barcodes still win for retail checkout and warehouse labels because every till and scanner already reads them. A QR code is technically a barcode too: a two-dimensional, or matrix, barcode.

QR code vs barcode: a 1D barcode of vertical lines next to a 2D QR code grid of squares
The key difference is dimensionality: a barcode stores data in 1D lines, a QR code in a 2D grid of squares.
Side-by-side visual comparison of a traditional 1D barcode and a 2D QR code showing their structural differences
Left: a traditional 1D barcode stores data in parallel lines. Right: a QR code stores data in a 2D matrix of squares.

Barcodes have been on products since the 1970s, and the first UPC scan at a supermarket checkout took place in 1974. The QR code was created in 1994 by Denso Wave, a Toyota group company, to track vehicle parts in factories. Both are now open, standardised ways to turn data into a pattern a machine can read. This page compares them; for the QR code internals see the QR code specification guide, and for the 16 QR formats see types of QR codes.

1D Barcodes vs 2D Barcodes: What Each Family Includes

“Barcode” is a family name. People searching for “2D barcode vs QR code” usually want to know where QR sits in that family and what the other 2D symbols are.

FamilySymbologyTypical useData it holds
1D (linear)UPC-A / UPC-ERetail products in North America12 digits (UPC-A)
1D (linear)EAN-13 / EAN-8Retail products worldwide13 or 8 digits
1D (linear)Code 128Shipping labels, logistics, asset tagsLetters, digits and symbols; length varies, short in practice
1D (linear)Code 39Industrial and defence labelsDigits, capital letters and a few symbols
2D (matrix)QR Code (ISO/IEC 18004)Marketing, menus, payments, tickets, Wi-FiUp to 7,089 digits
2D (matrix)Data Matrix (ISO/IEC 16022)Tiny parts, electronics, medicines, healthcareUp to 3,116 digits
2D (matrix)Aztec (ISO/IEC 24778)Boarding passes, rail and event ticketsUp to about 3,800 digits
2D (stacked)PDF417 (ISO/IEC 15438)ID cards, driving licences, boarding passesUp to about 1,800 characters

A 1D barcode is usually just an identifier: the number is looked up in a database to find the price or product. A 2D code can carry the information itself or a full web address. That is the practical split: 1D codes point to a record in a system you already have; 2D codes can be self-contained or point to the open web.

QR Code vs Barcode: Comparison Table

QR code vs barcode comparison of capacity, error correction, scanning angle and phone camera support
Side by side: QR codes win on capacity, error correction, scan angle and native phone-camera support.
Feature1D barcode (UPC/EAN, Code 128)QR code
DimensionsOne: lines read along a single rowTwo: a square grid read in both directions
Typical capacity12 digits (UPC-A), 13 (EAN-13); Code 128 labels often 20 to 25 charactersUp to 7,089 digits, 4,296 alphanumeric or 2,953 bytes (version 40, level L)
Data typesDigits only for UPC/EAN; text for Code 128Numbers, text, URLs, Wi-Fi, contacts, even Kanji
Error correctionNone built in; a check digit detects a misreadReed-Solomon, four levels: about 7%, 15%, 25% or 30% recoverable
Scan directionNeeds the scan line to cross the barsAny angle, even rotated or mirrored
ReadersLaser or camera scanners; no phone support by defaultAny phone camera, plus 2D imagers
SizeWide and short; height matters to laser scannersSquare; scales down well with a small payload
Best atRetail checkout, inventory, library and shipping lookupsLinking people to a web page, Wi-Fi, payments, tickets

Data Capacity: Why QR Holds So Much More

A UPC-A barcode carries 12 digits and EAN-13 carries 13. Code 128 can encode more, but every extra character widens the bars, so practical labels stay short. A QR code grows in two dimensions instead: it comes in 40 versions from 21 × 21 modules up to 177 × 177, and the largest holds the figures below at the lowest error-correction level (L).

Barcode vs QR code data capacity chart: UPC-A 12 digits, EAN-13 13 digits, Code 128 about 20-25 characters, QR Version 40 7,089 digits
On a log scale: UPC-A holds 12 digits and EAN-13 13, while a Version 40 QR code holds 7,089 numeric characters.
QR data modeMaximum at version 40, level L
Numeric (0 to 9)7,089 characters
Alphanumeric (0-9, A-Z, space and $ % * + - . / :)4,296 characters
Binary / bytes (most text and URLs)2,953 bytes
Kanji1,817 characters

Capacity falls as you raise error correction: at level H the same version holds roughly 1,273 bytes. Dense codes also need to be printed larger, because each module must stay big enough for a phone to resolve. Most real-world QR codes carry a short URL and are nowhere near the limit. For the full version-by-version table see QR code data capacity.

Data capacity comparison showing barcodes hold 20 characters versus QR codes holding 4,296 alphanumeric characters
QR codes hold over 200x more data than traditional barcodes.
Rule of Thumb

If all you need is to identify a product with a number that a till will look up, a barcode is enough. If you need to carry a URL, text, contact details or Wi-Fi credentials, you need a 2D code.

Download

QR Code Apps for Mac & Safari

Prefer generating codes without opening a browser tab? These two native Apple apps cover both habits — a full generator on the desktop, and a one-click share button inside Safari.

Gen QR Fast QR code generator for links, text, Wi-Fi and vCards. Works fully offline, exports PNG and SVG.
Mac App Get
Tab to QR Turn the current tab into a QR code to scan or share, straight from the Safari toolbar.
Safari Extension Get

Error Correction: Scratched Labels and Smudged Print

A 1D barcode has no error correction. UPC and EAN include a check digit, which lets the scanner detect that it misread, but it cannot repair the data, so a torn or smudged barcode simply fails and the cashier types the number in. QR codes add Reed-Solomon error-correction codewords, so a scanner can rebuild missing parts. You choose the level when you make the code:

LevelApprox. damage recoverableUse it for
L7%Clean screens, small codes with long data
M15%General printing (the common default)
Q25%Labels that may scuff
H30%Outdoor, industrial or codes with a logo
Scratched barcode that fails to scan next to a damaged QR code that still scans thanks to Reed-Solomon error correction
1D barcodes at most carry a check digit; QR codes use Reed-Solomon error correction and recover up to 30% damage at level H.

Higher levels make the code denser, so there is a trade-off between damage tolerance and size. Our error-correction guide explains how to pick a level, and the Gen QR Mac app lets you choose L, M, Q or H and add a logo while it adjusts the level for you. Data Matrix and Aztec also use Reed-Solomon error correction, so QR is not unique among 2D codes in this respect.

Scanning: Angle, Hardware and Speed

Retail laser scanners sweep a beam across a barcode, so the beam has to cross every bar in line. Hold the label sideways and it will not read. A QR code has three large square finder patterns in its corners that tell the reader its position and orientation, so a camera can decode it rotated, tilted or even mirrored. Phone cameras read QR codes natively: current iPhones and most Android phones scan them straight from the Camera app, which is why QR codes took over marketing and menus. A phone can also read a UPC or EAN barcode in a shopping or inventory app, but there is no built-in action for it, and many laser-only scanners cannot read QR codes at all, so check the scanner before choosing.

Barcode requiring straight horizontal scan line versus QR code scannable from any angle
QR codes can be scanned from any direction; barcodes need a straight line.

2D Barcode vs QR Code: Data Matrix, PDF417 and Aztec

If you are choosing between 2D symbols rather than between 1D and 2D, the differences are mostly about where each one is already standard:

For a general reader, “2D barcode” and “QR code” are often used as synonyms because QR is by far the most common 2D barcode.

When to Use a Barcode

When to use a barcode vs a QR code: barcodes for retail POS and inventory, QR codes for marketing, menus, payments and phone scanning
Match the code to the job: barcodes for retail checkout and logistics, QR codes for marketing and phone scanning.

When to Use a QR Code

You can make a QR code right now in the free generator. It creates URL, Text, Wi-Fi, Email and Phone codes and downloads them as PNG or SVG with no sign-up. It does not make UPC or EAN barcodes. For custom colours, a logo or a contact card, Gen QR for Mac adds those options. For sizing and printing, see the QR code size guide.

Barcode vs QR Code for Tracking

Both can track things, in different senses. A barcode identifies an item, and tracking means scanning it at each step and recording the scan in your own system, which is how warehouses and parcels work. A QR code can do the same, and it can also send a person to a web page, where you can measure visits. Our free generator makes static QR codes, so it has no built-in scan counter. The do-it-yourself route is to point the code at a page on your own domain with UTM parameters and read the results in your analytics tool; see how to track QR code scans and static vs dynamic QR codes for the options.

Can QR Codes and Barcodes Work Together? GS1 Sunrise 2027

Yes, and the retail industry is moving that way. GS1, the organisation that manages UPC and EAN numbers, launched an initiative called Sunrise 2027 with the goal that retail point-of-sale systems worldwide can scan 2D barcodes, including QR codes carrying a GS1 Digital Link, by the end of 2027. The idea is that one code on a pack can serve the checkout and also open product information, ingredients, recycling guidance or a recall notice for shoppers. During the transition, a pack may carry both the familiar linear barcode and a 2D code. See GS1 Digital Link QR codes and QR codes on product packaging.

Takeaway

Barcodes are not obsolete: they are the language of today’s checkouts and warehouses. QR codes are the better choice whenever a person scans with a phone or the code must carry real data. For many products, both will appear on the same pack.

Frequently Asked Questions

A barcode is one-dimensional: lines read along a single row, usually holding 12 or 13 digits. A QR code is two-dimensional: a grid of squares holding up to 7,089 digits, with error correction, readable from any angle by a phone camera. A QR code is itself a type of 2D barcode.

Yes. A QR code is a two-dimensional, or matrix, barcode. People often use the word barcode only for the traditional 1D lines on products, which is why the two are compared.

QR is one kind of 2D barcode. Others include Data Matrix (small parts and medicines), PDF417 (ID cards and some boarding passes) and Aztec (tickets). They all store data in two dimensions, but differ in shape, capacity and where they are standard.

A UPC-A barcode holds 12 digits and EAN-13 holds 13. A QR code at version 40 and level L holds up to 7,089 numeric characters, 4,296 alphanumeric characters or 2,953 bytes.

Phone cameras read QR codes natively through the Camera app on current iPhones and most Android phones. Reading a UPC or EAN barcode usually needs a shopping, price-check or inventory app.

Not overnight. GS1 Sunrise 2027 is a goal for retail systems to scan 2D barcodes, including GS1 QR codes, by the end of 2027, so packs may carry both a linear barcode and a 2D code for a while.

Both can be scanned and logged in your own system. A QR code can also lead to a web page you can measure. Free static QR codes have no built-in counter, so use a page on your own domain with UTM tags and your analytics tool.