how-it-works

What Is a QR Code, and How Does It Work?

A QR code is a square barcode a phone camera can read. Who invented it, what the squares mean, how damaged codes still scan, and static vs dynamic codes.

QRZY Team July 14, 2026 5 min read

A QR code is a square barcode a phone camera can read. The pattern is text, usually a web address, and the phone turns it back into a link you can tap. DENSO WAVE announced it in Japan in 1994, and anyone can use it without a license or fee.

Where it came from

The QR code was developed at DENSO WAVE, then part of the Japanese car parts maker DENSO, by a small team led by Masahiro Hara. DENSO WAVE announced it in 1994. Per the company's history page, the problem was the ordinary barcode: it "can only hold 20 alphanumeric characters or so of information", and factories wanted to encode more, including Japanese characters.

DENSO WAVE kept the patent but declared it would not exercise it, and published the specification so anyone could use it. That's why QR codes are everywhere: no license, no fee. Its FAQ says plainly: "No application is necessary to use a QR Code."

What the squares mean

Look at any QR code and you'll see the same parts:

  • Three large squares in the corners. They tell the camera where the code is and which way up it is, which is why a QR code reads from any angle.
  • The small squares, called modules. Each one is a bit of data, black or white. A version 1 code is 21 x 21 modules. Each version adds 4 modules per side, up to version 40 at 177 x 177. More data means a higher version and smaller squares at the same printed size, which is why how big to print a QR code depends on what's in it.
  • A white border. DENSO WAVE's FAQ says a margin "worth 4 modules is needed around it". Crop it, or print the code on a busy background, and some phones won't find it. If a code you made won't scan, see why a QR code isn't scanning.

Why a scratched code still scans

Part of every QR code is spare data. If a corner is smudged, torn or covered by a sticker, the reader rebuilds what's missing. There are four levels of this error correction, L, M, Q and H. DENSO WAVE says level M, which can restore about 15% of the data, is "most frequently selected", and that higher levels suit dirty environments like factories. The trade-off: more correction means more squares for the same content, so the code gets denser.

This is also why a small logo can sit in the middle of some codes. It covers squares the error correction can rebuild.

How a phone reads it

  1. The camera spots the three corner squares and works out the code's position and angle.
  2. It reads the grid of modules as bits.
  3. Error correction fixes anything damaged.
  4. The bits become text. If the text is a web address, the phone shows it as a link to tap.

The phone doesn't need the internet to read the code. It only needs it to open what the code points to. To try it yourself, see how to scan a QR code on iPhone and Android.

What a QR code can hold

Mostly a web address. But the text can also be a contact card that saves straight to the phone, Wi-Fi details, an email or text message ready to send, or plain text. Our free QR code generator makes all of these with no sign-up.

Static and dynamic QR codes

A static QR code holds the destination itself. The address is in the pattern, so it can never change. If the page moves, the printed code is wrong for good.

A dynamic QR code holds a short link instead, like go.qrzy.co/demodirect. The short link belongs to a QR service, which forwards each scan to wherever you've pointed it today. You can change the destination after printing, and the service can count the scans. The catch is that the code depends on that service staying up and your account staying active. Our page on dynamic QR codes explains how they work, and dynamic vs static QR codes compares the two side by side.

Whether either kind expires is its own question, answered in do QR codes expire?

Common questions

What does QR stand for? Quick response. DENSO WAVE named it for how fast it reads.

Who invented the QR code? A team at DENSO WAVE in Japan led by Masahiro Hara. It was announced in 1994.

Are QR codes free to use? Yes. DENSO WAVE says no application or license is needed, as long as you follow the JIS or ISO standard. Making one with a generator is free too; a dynamic code that you can edit usually costs something, or comes with limits on a free plan.

Is "QR code" a trademark? The word "QR Code" is a registered trademark of DENSO WAVE in Japan and other countries. The pattern itself is not.

Can a QR code contain a virus? A QR code holds text, usually a link. It can't run anything by itself. The risk is the page the link opens, so read the address your phone shows before you tap it.

Make a QR code

Free static codes, no sign-up. For a code you can change after printing, QRZY's Free plan gives one editable code with a 5-second countdown on every scan.

QR Code is registered trademark of DENSO WAVE INCORPORATED.

Related Articles

wedding

How a Wedding Could Run Entirely on One QR Code

A single dynamic QR code can carry a wedding through six destinations, from save-the-date to thank-you photos, without a single reprint. Here's how the mechanism works, phase by phase.

Read More →