QR code vs barcode: learn the difference, how much data each holds, how they are scanned, and when to use a QR code or a barcode.
QR Code vs Barcode: What Is the Difference?
QR codes and barcodes both store information in a pattern that a machine can read, but they work in different ways and they are used for different jobs. This guide explains the difference, how much data each one holds, how they are scanned, and when you should use each one.
What is a QR code?
A QR code is a square pattern of black and white blocks. It was invented to hold more information than a barcode, and to be read quickly from any angle. A phone camera can read a QR code, and almost every modern phone can do it without a special app. A QR code can hold a link, a piece of text, a phone number, a WiFi password, an event, a contact card, or a payment detail. Some QR codes can hold more than 4,000 characters of text.
QR codes can also be read when they are partly damaged or dirty, because they store extra information that lets the reader fill in the missing parts. That is why you often see QR codes on posters, tables, and packaging, where they can get scratched or wet.
What is a barcode?
A barcode is a set of vertical lines of different widths, with a number printed underneath. It was invented for shops and warehouses, to identify products quickly at a checkout or in stock control. A barcode usually holds only a short number, such as a product code, and the rest of the information about that product is stored in a computer system, not in the barcode itself.
The most common barcode formats are EAN-13, which is used on products in shops in most of the world, UPC-A, which is used in North America, Code 128, which is used for labels and logistics, and Code 39, which is used in industry. You can create all of these with our Barcode Generator.
How much data can each one hold?
This is the biggest difference. A QR code can hold thousands of characters, including a full web address, a message, or a contact card. A barcode can hold only a short string, usually 20 characters or fewer, and most barcodes hold just a number. If you need to store a link or a message inside the code itself, you need a QR code. If you only need to store a product number, a barcode is enough.
How are they scanned?
A QR code is read by a camera, usually a phone camera, and it can be read from any angle, even upside down. A barcode is read by a laser scanner or a camera, and it usually has to be held straight and close to the scanner. A phone can read a barcode too, with our Barcode Reader or a similar app, but it is slower than reading a QR code, because the lines have to be lined up correctly.
QR codes are also easier to read when they are printed small, on a screen, or on a curved surface, because the reader can find the three square markers in the corners and work out which way up the code is. A barcode has no markers like that, so it is harder to read when it is bent or partly covered.
When should you use a QR code?
Use a QR code when you want people to do something with their phone. Put one on a menu so customers can read it, on a poster so people can buy a ticket, on a business card so people can save your number, or on a table so guests can join the WiFi. Use a QR code when the information inside the code is the point, for example a link or a message. Use a dynamic QR code when the link might change, or when you want to see how many people scanned it. Read our guide on QR codes for business for more examples.
When should you use a barcode?
Use a barcode when you need to identify a thing, not to share information with a person. Shops use barcodes on products so the checkout can find the price. Warehouses use them on boxes so stock can be counted. Libraries use them on books so loans can be tracked. In all of these cases, the barcode is read by a scanner connected to a computer system, and the number inside the barcode is a key that looks up the product in that system.
Use a barcode when a shop or a warehouse expects one. Products sold in shops usually need an EAN-13 or UPC-A barcode, and the number has to come from the official numbering organisation for your country. You cannot just invent a product number and expect shops to accept it.
Can a QR code replace a barcode?
Sometimes, but not always. A QR code can hold a product number just as well as a barcode, and some shops are starting to use QR codes on products. But most checkouts and warehouse scanners are built for barcodes, and changing them costs money. For now, if you are selling a product in a shop, use the barcode format the shop asks for. If you are sharing information with a customer, use a QR code.
Some products now carry both: a barcode for the checkout, and a QR code for the customer, which opens instructions, ingredients, or a warranty page. That is a good solution when you need both.
Which one is cheaper?
Both are free to create with I QR U. The cost is in printing and in the equipment to read them. A QR code costs nothing to print on a poster or a card, and it is read by phones that people already have. A barcode also costs nothing to print, but reading it at a checkout needs a scanner, which the shop already has. For a small business, the QR code is usually the cheaper option, because there is no extra equipment to buy.
Quick comparison
Data: a QR code holds thousands of characters, a barcode holds a short number. Reading: a QR code is read by a phone camera from any angle, a barcode is read by a scanner held straight. Damage: a QR code still works when it is partly damaged, a barcode often does not. Use: a QR code is for people, a barcode is for stock and checkouts. Cost: both are free to create.
Frequently asked questions
Can a phone read a barcode? Yes, with a barcode reader app or with our Barcode Reader, but it is slower than reading a QR code.
Can a QR code hold a product number? Yes, but shops usually expect a barcode for products, so use the format the shop asks for.
Which one should I put on my business card? A QR code. A barcode on a business card would only store a number, which is not useful to the person who receives the card.
Can I create both for free? Yes. Use the QR Code Generator for QR codes and the Barcode Generator for barcodes.