Comparison
QR codes and barcodes
They look like relatives and are used for opposite things. A barcode identifies a product against a database; a QR code carries the data itself. That single difference decides which one your job needs.
Side by side
| QR code | Barcode (1D) | |
|---|---|---|
| Holds | Up to ~4,000 characters | Usually 8-14 digits |
| Carries the data itself | Yes | No — it is a lookup key |
| Scanned by | Any phone camera | A scanner, usually |
| Survives damage | Yes, 7-30% recoverable | No |
| Needs orientation | No | Yes |
| Used for | Links, Wi-Fi, UPI, contacts | Retail, inventory, shipping |
The short answer
If a phone needs to read it, or it carries a URL, Wi-Fi credentials or a payment request, it is a QR code. If it identifies stock against your own system, it is a barcode. QR error correction is also why a logo can sit in the middle without breaking the scan.
In more detail
Why a QR code still scans with a logo in the middle
Reed-Solomon error correction is built into the format, and at the highest level roughly thirty per cent of the code can be unreadable and still decode. That is what makes a centred logo safe, and it is also the headroom that lets a printed code survive a crease or a smudge. Pushing a logo past that headroom produces a code that reads on your phone and fails on somebody else's.
The quiet zone people leave out
A QR code needs an empty margin around it, conventionally four modules wide, for a scanner to find its edges. Codes placed tight against other artwork fail inconsistently, which is the hardest kind of failure to diagnose because it works often enough to look fine.
A barcode is a key, a QR code is the data
A retail barcode identifies a product against a database that holds the price and the description; the stripes themselves carry a number and nothing else. A QR code carries whatever you put in it, which is why a Wi-Fi password or a UPI request works without any system behind it. That difference decides which one a job needs far more than any scanning consideration.