Learn · QR codes · Updated 2026-08-14

What is a QR code?

A QR code, short for quick response code, is a two-dimensional barcode that stores data such as a URL, text, or contact details as a grid of black and white squares a camera can decode instantly. It holds far more data than a standard barcode and reads from any angle.

The name comes from "quick response", a nod to how fast a scanner can decode the pattern compared with the single-line barcodes it grew out of. QR codes were developed in Japan in 1994 for tracking parts on car assembly lines, then spent the next two decades mostly unused outside logistics until smartphone cameras made scanning instant and app-free.

How a QR code works

Look closely at any QR code and you will notice three large squares in three of the four corners. Those are finder patterns, and they exist so a camera can identify the code's position and orientation instantly, from any angle, even sideways or slightly upside down. The rest of the grid is made of black and white modules that encode the actual data in binary, using an error correction scheme called Reed-Solomon coding.

That error correction is the part most people never learn, and it is genuinely useful to know. A QR code can still scan correctly even when up to 30 percent of it is damaged, dirty, or covered by a logo, because the code carries redundant data specifically to survive that kind of loss. This is why you can print a brand logo in the middle of a QR code without breaking it, as long as you use a high error correction level when generating it.

QR code vs barcode

A standard barcode, the kind on a can of soup, is one-dimensional: a series of parallel lines that only encode numbers, usually a product ID that a database looks up. A QR code is two-dimensional, reading data both across and down the grid, which is where its much larger capacity comes from.

PropertyStandard barcode (UPC-A)QR code
Data capacityAround 12 to 20 digitsUp to about 7,000 numeric characters or 4,000 letters
Data typesNumbers only, usually a lookup IDURLs, plain text, Wi-Fi credentials, contact cards, and more
Scan directionMust be read straight acrossReadable from any angle, including upside down
Damage toleranceNone, a torn line breaks the scanUp to 30 percent of the code can be missing and still scan, depending on error correction level
Needs a databaseUsually yes, the number means nothing aloneNo, the data can be self contained in the code

What data a QR code can actually hold

Most QR codes you encounter day to day hold a URL, which is why scanning one usually opens a browser. But the format can also hold a piece of plain text, a phone number that dials directly, a pre-filled SMS, Wi-Fi network credentials that connect a phone automatically, or a vCard, a small contact file that adds a name, phone number, and email straight into someone's contacts app. Digital business cards lean on that last one heavily, generating a QR code that both opens a profile page and offers a one-tap vCard download, which is how Raydar's business card links work.

What happens when you scan one

A phone camera or dedicated scanner reads the grid, corrects for any damage using the redundant data built into the pattern, and decodes it back into the original text string. If that string is a URL, the phone's default browser opens it. If it is a vCard, the contacts app opens instead. Nothing is sent back to whoever generated the code unless the destination itself is a page or redirect that logs the visit, which is a separate layer from the QR code format itself.

This is the part that surprises people the first time they think about it carefully. Scanning is entirely one-directional at the code level, the phone reads the pattern and acts on it locally. Any data that flows back, a scan count, a device type, a location, only exists because the destination the code points to is set up to record it. Two QR codes can look identical and decode to the same URL, and one can be fully tracked while the other is completely invisible, purely based on what happens on the server side of that link.

How to generate one

Generating a QR code takes seconds with any of the countless free generators online, or through a link-in-bio tool if the destination is already a page you manage there. The generator needs three things from you: the data to encode, which error correction level to use, and how large to render the final image. Higher error correction levels make the pattern denser and slightly harder to scan at very small sizes, but let you survive more print damage or a logo placed in the middle. For most marketing uses, medium or quartile correction is the reasonable default.

Static or dynamic, and why it matters

A QR code is either static, meaning the exact data is permanently fixed inside the pattern, or dynamic, meaning it encodes a short redirect link that can be repointed to a new destination later. This single distinction decides whether you can update where a printed code leads, or track how many times it gets scanned, without reprinting anything. See dynamic vs static QR codes for the full comparison.

Common uses today

  • Menus and payments. Restaurant tables and checkout counters use QR codes to skip printing and app downloads.
  • Marketing and packaging. A code on a flyer or product box links straight to a landing page, worth tracking properly if you are paying to print it.
  • Digital business cards. A single code opens a profile page and offers a vCard download in one scan.
  • Event and boarding tickets. The scan itself functions as the check, since the code holds a unique identifier the venue looks up.
  • Wi-Fi sharing. A code encoding network credentials connects a guest's phone without anyone typing a password.

Why QR codes took off after 2020

The format existed for over two decades before most people used one regularly. What changed was not the technology, both iPhone and Android built native QR scanning directly into the default camera app years earlier, but the habit. Contactless menus and check-ins during that period gave millions of people a reason to actually use the camera-scan gesture for the first time, and the habit stuck once it was learned. Nothing about the format changed. What changed is that scanning a code stopped feeling like a strange thing to do in public.

Common questions

What does QR stand for?
Quick response, referring to how fast a scanner can decode the pattern compared with a traditional one-dimensional barcode.

Can a QR code contain a virus?
The pattern itself is inert data, usually just a URL, so it cannot carry malware on its own. The risk comes from where that URL leads, which is why it helps to check a link before entering personal information after a scan.

Do QR codes expire?
A static QR code never expires on its own, since the data is fixed permanently in the pattern. A dynamic QR code can effectively stop working if the service hosting its redirect shuts down or the account behind it lapses.

Can you scan a QR code without a separate app?
Yes. Every modern iPhone and Android phone can scan a QR code directly from the built in camera app, with no download required.

How much data can a QR code actually hold?
Up to roughly 7,000 numeric characters or about 4,000 letters in a single code, though most real world codes hold far less, usually just a URL a few dozen characters long.

Related: Dynamic vs static QR codes · How to track QR code scans · What is a vanity URL?