BLOG · BARCODES

Barcode vs QR Code: Differences and When to Use Each

Barcodes and QR codes compared on data capacity, scanners, size and use cases, with a clear answer for IDs, products, tickets and labels.

CardDeck teamUpdated 10 min read
Short answer

Barcode vs QR code: a barcode is a one-dimensional row of bars that stores a short number or code, read by laser or image scanners. A QR code is a two-dimensional grid that stores far more data, such as a web link, and phone cameras read it. Use barcodes for retail and existing scanners; QR codes for phones.

  • Barcodes (1D) store a short ID; QR codes (2D) store links, text and contact data
  • Retail checkouts need EAN-13 or UPC-A with GS1-issued numbers, not QR codes
  • Phone cameras read QR codes natively; 1D barcodes usually need a dedicated scanner or app
  • QR codes tolerate damage through error correction; 1D barcodes rely on a check digit
  • Many cards benefit from both: a barcode for legacy readers and a QR code for phones

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

A traditional barcode stores data in one dimension: the widths of vertical bars and spaces, read from left to right. A QR code stores data in two dimensions: a grid of square modules read both horizontally and vertically. That second dimension is why a QR code can hold hundreds of times more information in a similar space.

In practice the difference shows up in three places:

  • What they hold. A barcode usually holds a short identifier, such as a 13-digit product number or an employee number. A QR code can hold a full web address, WiFi credentials or a contact card.
  • What reads them. Barcodes are read by checkout scanners, handheld laser or imaging scanners, and access-control readers. QR codes are read by any modern smartphone camera, as well as 2D imaging scanners.
  • What happens next. A barcode returns a number that a system looks up in its own database. A QR code often contains the destination itself, like a link the phone opens immediately.

Strictly speaking, a QR code is a type of barcode: a 2D matrix barcode. In everyday language, "barcode" means the familiar 1D bars and "QR code" means the square pattern, and that is how this article uses the terms.

How does a 1D barcode work?

A 1D barcode encodes characters as a pattern of bars and spaces of different widths. A scanner measures those widths across one line and translates them back into characters.

Common 1D formats

  • EAN-13: 13 digits (12 data digits plus a check digit). The global retail standard managed by GS1.
  • UPC-A: 12 digits, used on retail products in the US and Canada. A UPC-A number is equivalent to an EAN-13 number with a leading zero.
  • Code 128: encodes all 128 ASCII characters, so it handles letters, numbers and symbols. Common for employee IDs, asset tags, tickets and shipping labels.
  • Code 39: an older alphanumeric format still used in some industrial and government systems.
  • ITF-14: 14 digits, used on outer cartons and cases in the supply chain.

Check digits catch errors

Most 1D formats include a check value calculated from the data. EAN-13 and UPC-A add a check digit using a weighted sum; Code 128 adds a modulo-103 check character. If a bar is misread, the check fails and the scanner rejects the read instead of returning the wrong number. You can see a worked check-digit example in our Code 128 vs EAN-13 guide.

The limitation

A 1D barcode gets wider with every character. That is fine for a 13-digit product number, but a web address would make it impractically long, and a damaged section usually makes the whole code unreadable.

How does a QR code work?

A QR code arranges data in a square grid of modules, with three large finder patterns in the corners that let a camera locate and straighten the code from any angle. It is defined by ISO/IEC 18004 and was invented by Denso Wave in 1994.

Capacity

A QR code can be anything from version 1 (21 × 21 modules) to version 40 (177 × 177 modules). At its largest, with the lowest error correction, the standard allows up to 7,089 numeric digits, 4,296 alphanumeric characters or 2,953 bytes of binary data. Most real-world codes hold far less: a short URL fits comfortably in a small, easy-to-scan code.

Error correction

QR codes use Reed-Solomon error correction at four levels:

  • L: recovers about 7% of the data.
  • M: about 15%.
  • Q: about 25%.
  • H: about 30%.

Higher levels let a code survive scratches, dirt or a small logo in the center, at the cost of a denser pattern.

Static and dynamic QR codes

A QR code can store its content directly (static) or store a short link that redirects to an editable destination (dynamic). Dynamic codes can be changed after printing and tracked. Our guide to static vs dynamic QR codes covers that choice in depth.

Barcode vs QR code: how do they compare?

The two are not competitors so much as tools for different jobs. Here is how they compare on the factors that usually decide the choice.

  • Data capacity: a 1D barcode holds a short ID (often 8 to 20 characters in practice); a QR code holds up to several thousand characters.
  • Data types: barcodes hold numbers or simple text; QR codes hold links, WiFi details, contact cards and text in many scripts.
  • Readers: barcodes need a 1D laser or imaging scanner, or a scanning app; QR codes open in the native camera on modern iPhone and Android phones, and in 2D imaging scanners.
  • Retail checkout: barcodes are the standard (EAN-13 or UPC-A with GS1 numbers); QR codes are not accepted for standard checkout scanning in most stores.
  • Orientation: barcodes are usually scanned roughly along the bars; QR codes can be read at any rotation.
  • Damage tolerance: a barcode relies on a check digit, so damage usually means no read; a QR code can rebuild 7% to 30% of the data.
  • Space: barcodes are long and short; QR codes are square and compact for the data they carry.
  • Editability: a printed barcode's number is fixed (the database it points to can change); a dynamic QR code's destination can be changed directly.

The short version

Choose a barcode when an existing scanner or retail system expects one. Choose a QR code when a person with a phone is the one scanning.

When should you use a barcode?

Use a 1D barcode when the code will be read by a dedicated scanner that is already in place, or when an industry standard requires it.

Typical barcode uses

  • Retail products sold through shops and online marketplaces that require GS1 identifiers. Use EAN-13 or UPC-A with numbers issued by GS1; you cannot invent your own for products sold in stores. Our EAN-13 barcode generator calculates the check digit for you.
  • Inventory and asset tags read by handheld scanners. Code 128 is the usual choice because it handles letters and numbers. See barcode labels for retail and inventory.
  • Employee and student IDs where the building's access readers or library system already read barcodes. Encode the employee or student number in Code 128.
  • Membership cards at front desks with existing barcode scanners.
  • Shipping and logistics labels, where formats like GS1-128 (built on Code 128) and ITF-14 are expected.

Tips for barcodes that scan first time

  • Print dark bars on a light background. Black on white is safest.
  • Keep a clear quiet zone on both sides. For Code 128 that is at least 10 times the width of the narrowest bar.
  • Do not shrink retail barcodes far below their nominal size. EAN-13 is specified at 80% to 200% of its nominal size.
  • Do not squash the height to fit a design. Short bars are harder to scan at an angle.
  • Test with the scanner people will actually use.

When should you use a QR code?

Use a QR code when the person scanning has a smartphone and you want them to do something: open a page, save a contact, join WiFi or start a chat.

Typical QR code uses

  • Business cards and name badges, where the code opens a digital business card with a save-contact button.
  • Marketing materials: flyers, posters, packaging, menus and signs.
  • WiFi access for guests in cafes, offices and rentals.
  • Event check-in and networking, where the same code on a badge identifies the attendee at the door and opens their profile for other attendees.
  • ID verification, where scanning an employee or student ID opens a page showing whether the card is active.
  • Payments and tickets, where apps generate a QR for the reader at the gate or till.

Why phones changed the balance

For years, reading any code needed a dedicated scanner or app. Today, the standard camera apps on iPhone and Android recognize QR codes automatically. That means a QR code can reach anyone, while a 1D barcode still mostly reaches people with scanners.

Make QR codes easy to use

Add a short call to action ("Scan to save my contact"), keep strong contrast and a quiet zone of four modules, and size the code for the distance. Start with the free QR code generator and use a dynamic code for anything printed in volume.

Which should you put on IDs, products and tickets?

The right code depends on who or what reads it. Here is a quick decision guide for the most common items.

Employee and student ID cards

Use a QR code for verification: anyone with a phone can scan it and see whether the ID is active. Add a Code 128 barcode too if your door readers, canteen tills or library system already read barcodes. Many organizations print both: QR on the front for visual checks, barcode on the back for existing readers. The employee ID card maker supports both on one template.

Retail products

Use EAN-13 (or UPC-A for the US and Canada) with GS1-issued numbers for checkout. If you want customers to reach instructions, recipes or reorder pages, add a QR code as well, ideally dynamic, in a separate spot on the pack.

Event tickets and badges

Use a QR code. Check-in apps and phones read it, it holds a unique attendee reference, and it can double as a networking link.

Asset tags and warehouse labels

Use Code 128 if your team uses handheld 1D scanners. Use a QR code if staff scan with phones or need to open a maintenance page.

Membership cards

Use whichever your front-desk scanner reads. Many modern desk scanners are 2D imagers that read both.

Business cards

Use a QR code. A barcode on a business card would mean nothing to a phone camera.

Can you use both a barcode and a QR code on the same card?

Yes, and it is often the best answer. Each code serves a different reader, so including both covers legacy systems and phones at once.

How to combine them well

  • Give each code its own space. Do not place them touching. Each needs its own quiet zone.
  • Encode the same identifier. For example, an employee number such as NWL-0428 in a Code 128 barcode, and a verification link containing the same reference in the QR code. That keeps records consistent.
  • Put the code people scan most on the front. On an employee ID that is usually the QR code for visual checks; the barcode can go on the back for readers.
  • Label them if it helps. "Scan to verify" under a QR code tells security staff what it does.

Generating them in bulk

If you are making codes for hundreds of people or products, generate them from a spreadsheet. The bulk barcode generator creates one barcode per row, and the batch generator places a unique QR code and barcode on every card in one job.

Common mistakes

  • Using a QR code on a product that must scan at checkout. Most retail point-of-sale systems expect EAN or UPC.
  • Inventing EAN-13 numbers for retail products. Register with GS1 instead.
  • Encoding a long URL in a 1D barcode. Use a QR code for links.
  • Shrinking either code below a reliable size to fit a crowded layout.

How do you create barcodes and QR codes for free?

You can create both in a browser in a few minutes. Choose the format, enter the value, check the preview and export a vector file for print. With CardDeck, static QR codes and barcodes are unlimited on every plan, including Free.

Making a barcode

  1. Open the free barcode generator and choose the format: Code 128 for internal IDs and labels, EAN-13 or UPC-A for retail products.
  2. Enter the value. For EAN-13, enter your 12-digit GS1 number and the check digit is calculated for you.
  3. Preview the barcode and check the human-readable digits underneath.
  4. Export SVG for print or PNG for documents and screens.
  5. Print a sample and scan it with the scanner that will be used in practice.

Making a QR code

  1. Choose the content: a web link, digital business card, WiFi network, contact card or text.
  2. Decide static or dynamic. Static is fixed and free forever; dynamic can be edited and tracked.
  3. Add colors and a logo if you want, keeping strong contrast.
  4. Export SVG for print or PNG for screens, and test on an iPhone and an Android phone.

Making hundreds at once

For product ranges, asset registers or staff lists, put the values in a spreadsheet column and generate one code per row instead of creating them one by one. The output is a ZIP of individual files or a print-ready label sheet, which saves hours and avoids typing errors.

Which plan you need

None, for static codes: they are unlimited on Free. Dynamic QR codes are included by plan, from 2 on Free to unlimited on Business.

Try Barcode Generator freeFree plan · no credit card required
Create your Card

FAQ

Is a QR code a type of barcode?

Yes. A QR code is a two-dimensional (matrix) barcode. In everyday use, "barcode" usually means the traditional one-dimensional bars, which is why the two are compared as separate things.

Can a phone camera read a normal barcode?

The built-in camera apps on iPhone and Android are designed around QR codes and generally do not act on 1D product barcodes. Many free scanning apps, and some shopping apps, can read 1D barcodes using the camera.

Can I replace product barcodes with QR codes?

Not for standard retail checkout today. Retailers expect EAN-13 or UPC-A barcodes with GS1-issued numbers. You can add a QR code alongside the barcode for consumer information.

Which holds more data, a barcode or a QR code?

A QR code. A 1D barcode typically holds a short identifier, while a QR code can hold up to 7,089 digits or 4,296 alphanumeric characters at its largest size.

Which is more reliable if the code gets damaged?

QR codes are more tolerant because they include error correction that can rebuild 7% to 30% of the data, depending on the level. A 1D barcode with a damaged section often cannot be read at all.

Can CardDeck generate both?

Yes. CardDeck generates QR codes and barcodes including Code 128, EAN-13 and UPC-A, and can place both on ID cards, badges and membership cards. Static QR codes and barcodes are unlimited on every plan.

Keep reading

BARCODES · 8 MIN

Code 128 vs EAN-13: Choosing the Right Barcode Format

SHARING · 7 MIN

NFC Business Cards Explained: How Tap-to-Share Works (and When It Does Not)

EVENTS · 7 MIN

Turning Event Badges into Networking Cards with QR Codes