Features

You point your phone at a square of black-and-white static on a menu, a ticket, or a poster, and a link appears as if the phone read your mind. It didn’t. It read the square. Everything that happens next was already printed there, waiting.

Features — 81

What happens when you scan a QR code

Filed UnderQR Codes, How It Works
Read Time~3 minutes
PublishedNovember 13, 2026 at 3:56 PM
A hand holding a phone over a payment terminal showing a QR code
Photo: iMin Technology / Pexels

          A QR code is a picture of information. Where a barcode is a row of bars that holds a short number, a QR code is a grid of little black and white squares that can hold a whole web address, a Wi-Fi password, or a block of text. Your camera sees the pattern, your phone decodes it, and the result pops up on your screen — usually in less than a second.
          The letters stand for Quick Response, and the idea dates back to 1994, when a Japanese car-parts company needed a faster way to track components on a factory floor. Barcodes were too slow and held too little. The square grid they invented could be read from any angle and held far more. It took a decade of camera phones before the rest of us started pointing at squares everywhere.

Three big squares do the finding
          Look at any QR code and you'll see three large squares, one in each of three corners. Those are finder patterns, and they're the first thing your phone looks for. No matter how you hold the phone — tilted, upside down, at an angle — those three squares tell the camera where the code is, how big it is, and which way is up.
          Once it has its bearings, the phone divides the grid into rows and columns and reads each little square as a one or a zero: black means one, white means zero. The pattern also contains timing marks, little alternating squares running between the finders, that help the phone keep its place as it reads across the grid. A code printed on a curve, like on a bottle, can still be read, because smaller alignment squares scattered through the grid let the phone correct for the bend.

“ Your phone isn’t reading your mind. It’s reading a picture of a message, with the spare parts built in.”

Built to survive damage
          A QR code doesn't just hold your data once. It holds it with room to spare, using a technique called error correction: extra squares woven through the grid that let the phone reconstruct missing pieces. That's why a code still scans when part of it is scratched, dirty, or covered by a logo in the middle. The toughest versions can lose up to 30 percent of their squares and still be read.
          There's a trade-off. More error correction means fewer squares left for the actual message, so a code holding a long web address with heavy protection has to be printed bigger or denser. The little codes on receipts and tickets usually carry short links and light protection. The big dense ones on posters can hold paragraphs — but they need a steady hand and decent light.

The link is just the start
          Most of the time, what the code contains is a web address, and your phone offers to open it. But a QR code can hold other instructions too: the name and password of a Wi-Fi network, so you join without typing; a payment address, so your banking app knows where to send the money; a contact card, so a new acquaintance lands straight in your address book. The code doesn't know which of these it is — it's just text. Your phone figures out the type and offers the right next step.
          That simplicity is also the risk. A QR code can point anywhere, and you can't tell where by looking at the squares. Your phone shows you the address before it opens it, and that's the moment to pay attention: if the address looks wrong, or the code is a sticker pasted over another code, walk away. The square itself is harmless. What it points to is what matters.

A square that does one job well
          QR codes caught on because they ask almost nothing of anyone. Printing one costs nothing. Reading one needs nothing but a camera. And the whole exchange — point, read, act — takes about as long as reading this sentence. For a technology invented to track car parts, it has turned out to be a remarkably good way to hand a stranger a link, a password, or a menu without typing a thing.

Enjoying the magazine?

A new story goes up every night at midnight. Find your next one by section.

Browse the sections