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.
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.
| Family | Symbology | Typical use | Data it holds |
|---|---|---|---|
| 1D (linear) | UPC-A / UPC-E | Retail products in North America | 12 digits (UPC-A) |
| 1D (linear) | EAN-13 / EAN-8 | Retail products worldwide | 13 or 8 digits |
| 1D (linear) | Code 128 | Shipping labels, logistics, asset tags | Letters, digits and symbols; length varies, short in practice |
| 1D (linear) | Code 39 | Industrial and defence labels | Digits, capital letters and a few symbols |
| 2D (matrix) | QR Code (ISO/IEC 18004) | Marketing, menus, payments, tickets, Wi-Fi | Up to 7,089 digits |
| 2D (matrix) | Data Matrix (ISO/IEC 16022) | Tiny parts, electronics, medicines, healthcare | Up to 3,116 digits |
| 2D (matrix) | Aztec (ISO/IEC 24778) | Boarding passes, rail and event tickets | Up to about 3,800 digits |
| 2D (stacked) | PDF417 (ISO/IEC 15438) | ID cards, driving licences, boarding passes | Up 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
| Feature | 1D barcode (UPC/EAN, Code 128) | QR code |
|---|---|---|
| Dimensions | One: lines read along a single row | Two: a square grid read in both directions |
| Typical capacity | 12 digits (UPC-A), 13 (EAN-13); Code 128 labels often 20 to 25 characters | Up to 7,089 digits, 4,296 alphanumeric or 2,953 bytes (version 40, level L) |
| Data types | Digits only for UPC/EAN; text for Code 128 | Numbers, text, URLs, Wi-Fi, contacts, even Kanji |
| Error correction | None built in; a check digit detects a misread | Reed-Solomon, four levels: about 7%, 15%, 25% or 30% recoverable |
| Scan direction | Needs the scan line to cross the bars | Any angle, even rotated or mirrored |
| Readers | Laser or camera scanners; no phone support by default | Any phone camera, plus 2D imagers |
| Size | Wide and short; height matters to laser scanners | Square; scales down well with a small payload |
| Best at | Retail checkout, inventory, library and shipping lookups | Linking 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).
| QR data mode | Maximum 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 |
| Kanji | 1,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.
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.
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.
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:
| Level | Approx. damage recoverable | Use it for |
|---|---|---|
| L | 7% | Clean screens, small codes with long data |
| M | 15% | General printing (the common default) |
| Q | 25% | Labels that may scuff |
| H | 30% | Outdoor, industrial or codes with a logo |
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.
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:
- QR Code: best when people scan with phones. Large finder patterns, wide support, URLs and text.
- Data Matrix: tiny and square, with a distinctive solid L-shaped border. Used to mark small components and medicines, where space is tight and printing is direct on the part.
- PDF417: a stacked barcode, rows of 1D-like columns. Common on ID cards and driving licences and some boarding passes. It is wide and short rather than square.
- Aztec: has a bullseye in the centre and does not need a blank border around it. Common on tickets shown on phone screens.
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
- Retail checkout today. Every point-of-sale system reads UPC and EAN. A product needs a registered number from GS1, the standards body behind them; our tools do not create these.
- Inventory and library lookups where a short ID is matched to a record and the scanner is a cheap laser gun.
- Shipping and logistics labels that use Code 128 and similar formats mandated by carriers.
- Anywhere an existing scanner fleet reads only 1D symbols.
When to Use a QR Code
- Linking from paper to the web: menus, posters, packaging, business cards, flyers.
- Sharing small bits of data: Wi-Fi sign-in, a phone number, an email address or plain text.
- Tickets and boarding passes shown on a phone or printed.
- Small or awkward spaces, since a QR code can be read at an angle and from a photo.
- Anything customers scan with their own phone.
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.
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.