How Do QR Codes Work?

Updated 2026-07-04 ยท By the MakeToolz team

Quick answer: A QR code stores data as a grid of black and white squares. Your phone camera reads the pattern, turns the squares back into text or a link, and opens it. The three corner squares help the camera line up and read the code from any angle.

QR codes look like random noise, but every part has a job. Below is a plain guide to what the squares mean, why the corners matter, and how a scuffed code still scans.

What is a QR code?

QR stands for "quick response." It is a square barcode that holds far more data than the old striped kind on a cereal box. A single QR code can store a web link, plain text, a phone number, or Wi-Fi login details. Point a camera at it and your phone acts in about a second.

The old striped barcode only reads in one direction and holds a short number. A QR code reads in two directions, up and across, which is why it can pack in so much more. That two-way design is the whole trick behind the name.

How the squares hold data

Each tiny square in the grid is called a module. A module is either black or white, and that stands for a 1 or a 0. Computers store everything as ones and zeros, so a grid of black and white squares is just data in visual form.

The camera reads the whole grid, turns each square back into a 1 or a 0, and rebuilds the original message from that stream. More data means a bigger grid with more squares. A short link needs a small, simple code. A long paragraph needs a dense one.

How the camera knows black from white

Your camera looks at the light and dark areas and sets a middle point. Anything darker than that point reads as black, and anything lighter reads as white. This is why good contrast matters. A faded print or a code on a shiny surface can confuse that read.

What the three big corners do

You have seen the three large squares in the corners of every QR code. They are called finder patterns. They tell the camera three things: where the code is, how big it is, and which way it is turned.

That is why you can scan a code sideways, upside down, or at a slant and it still works. The camera spots the three corners first, figures out the orientation, and then reads the rest of the grid in the right order. A fourth, smaller square near the corner, called an alignment pattern, keeps big codes straight when the surface bends.

Why a damaged QR code still scans

QR codes build in spare data called error correction. The code stores your real message plus a backup, woven through the grid. If part of the code gets scuffed, smudged, or covered by a logo, the camera uses that backup to fill the gaps.

There are four levels of error correction. At the highest level, a code can lose about 30 percent of itself and still scan. That is how brands print a logo right in the middle of a QR code and it still works. The tradeoff is that stronger error correction makes the grid denser.

What can a QR code hold?

Make your own QR code

Want a code for a link, a menu, or your home Wi-Fi? Use our free QR Code Generator. Type your text, pick a size, and download it as a PNG or SVG. Everything runs in your browser, so your data never leaves your device.

A static code like the one this generator makes holds the data directly in the grid. That means it works forever, with no account and no monthly fee, as long as the link or text still points somewhere real.

People Also Ask

Do QR codes store the whole website?

No. A QR code holds the link, not the page. Your phone reads the short address from the grid, then loads the website over the internet like any other link. This keeps the code small and quick to scan.

Can a QR code contain a virus?

The code itself cannot carry a virus. But it can point to a harmful website that tries to trick you or install something. Only scan codes from sources you trust, and check the link your phone shows before you tap it.

Do QR codes expire?

A static QR code, like the ones our generator makes, never expires. It holds the data directly in the grid, so it works as long as the destination exists. Dynamic codes that redirect through a paid service can stop working if that service shuts down.

How much data can a QR code hold?

Far more than most people need. The largest codes store thousands of characters. In practice, smaller and simpler codes are better, because a short link scans faster and works even in poor light.

Why do some QR codes have a logo in the middle?

Error correction makes it possible. Because the code stores backup data, you can cover the center with a logo and the camera fills in the missing part. Designers use a high error correction level so the code stays readable.

Can I scan a QR code without a special app?

Yes, on most modern phones. The built-in camera on newer iPhones and Android phones scans QR codes automatically. Just open the camera, point it at the code, and tap the link that pops up.

Why won't my QR code scan?

Common causes are poor lighting, low contrast, a blurry print, or holding the camera too close. Move to better light, back up until the whole code fits in frame, and hold steady. Clean the camera lens if the image still looks fuzzy.

What colors can a QR code be?

Dark on light is safest. The camera needs clear contrast between the modules and the background. Black on white always works. Colored codes can work too, but only if the dark parts stay much darker than the light parts.

Now that you know how they work, make one of your own. Open the free QR Code Generator, enter a link or text, and download a clean PNG or SVG in seconds.