A QR code is a square pattern of black and white blocks that your phone camera can read

A QR code is a two-dimensional barcode made up of small black squares arranged on a white background, usually in a square shape. The pattern looks random at first, but it contains encoded information—typically a web address, contact details, or plain text. When you point your phone's camera at it, the camera app or a dedicated scanner app reads the pattern and shows you what it contains.

The code is always square, never rectangular. It's usually between the size of a postage stamp and a few inches across, though the exact size varies depending on where it's printed. You'll find them on product packaging, restaurant menus, event tickets, business cards, posters, and websites.

Key Takeaways

  • QR codes are always square-shaped with a pattern of black and white blocks, and three corner squares that help your phone orient the image correctly.
  • The three corner squares (called position markers) are the most reliable way to identify a QR code at a glance, even if the rest of the pattern looks unfamiliar.
  • QR codes can be any size from thumbnail to poster-sized, but they must maintain their square shape and clear contrast to be readable.
  • The pattern inside a QR code is unique to the information it contains, so no two codes with different data will look identical.

The three corner squares that identify a QR code

The easiest way to spot a QR code is to look for three small squares in three of the four corners—usually the top left, top right, and bottom left. These are called position markers, and they're what tell your phone's camera how to orient and read the code. They're always solid black on the outside with a white ring, then a smaller black square inside.

The fourth corner (bottom right) does not have a position marker. Instead, there's a smaller pattern called the timing pattern—a line of alternating black and white squares that runs along the right edge and bottom edge. This helps the scanner measure the code's size and alignment.

If you see a square pattern with three corner markers and a grid of black and white blocks filling the rest of the space, you're looking at a QR code.

The black and white pattern inside the code

Inside the three corner markers, the rest of the QR code is filled with a seemingly random pattern of black and white squares. This pattern is not random—it's the actual encoded data. The specific arrangement of blocks changes depending on what information the code contains. A code linking to one website will look completely different from a code linking to a different website, even though both follow the same square structure.

The pattern should have high contrast: solid black squares on a pure white background. If the code is faded, blurry, or printed on a colored background, your phone may have trouble reading it. The code doesn't need to be large—even a code the size of a postage stamp can be scanned—but it does need to be clear and undamaged.

Variations in color and design

While traditional QR codes are black and white, some modern versions use color. A code might have colored squares instead of black ones, or a colored background instead of white, as long as there's enough contrast for a camera to distinguish the blocks. However, the three corner position markers are always black and white—they never change color, because the scanner needs them to be when ready recognizable.

Some QR codes also have a logo or image printed in the center. This is called a branded QR code or custom QR code. The logo doesn't interfere with scanning because the data is distributed throughout the entire code, not concentrated in one spot. Even with a logo in the middle, the three corner markers and the surrounding pattern remain unchanged.

Size and where you'll encounter them

QR codes appear in many places and at many sizes. On a product label, they might be half an inch square. On a poster or billboard, they could be several inches across. The size doesn't matter as long as the individual blocks are large enough for a camera to distinguish them. A code that's too small or too blurry will fail to scan.

You'll see QR codes on restaurant menus (linking to the full menu online), event tickets (containing your booking details), business cards (linking to contact information), product packaging (linking to instructions or warranty information), and in advertisements (linking to a website or promotional offer). They're also printed on shipping labels, parking permits, and library materials.

How to tell a QR code from other barcodes

QR codes are square and filled with a grid pattern. Traditional barcodes (the kind you see on grocery items) are rectangular and made of vertical lines of varying widths. A barcode scanner reads the widths of those lines; a QR code scanner reads the position of blocks in a grid. If you see a square pattern with three corner markers, it's a QR code. If you see vertical lines, it's a traditional barcode.

There are other 2D barcodes besides QR codes—such as Data Matrix codes or Aztec codes—but QR codes are by far the most common. The three corner position markers are the defining feature that sets QR codes apart from everything else.

Damaged or partially obscured QR codes

QR codes are designed to remain readable even if part of the pattern is damaged, faded, or covered. This is called error correction. A code with up to 30 percent of its area obscured or damaged can still be scanned successfully, depending on which part is affected. The three corner markers are the most critical—if those are damaged, the code usually won't scan.

If a QR code is printed on a curved surface (like a bottle), it may be harder to scan because your camera needs to see the entire code at once. Holding the code flat and steady in front of your camera usually solves the problem.

Frequently Asked Questions

Can a QR code be any color besides black and white?

Yes. As long as there's enough contrast between the code and the background, colored QR codes work fine. The three corner position markers must remain black and white so your phone can orient the code, but the rest can be any color.

What's the difference between a QR code and a barcode?

A barcode is rectangular with vertical lines; a QR code is square with a grid of blocks. Barcodes hold less information and require a specialized scanner. QR codes hold much more data and can be read by any smartphone camera.

How big does a QR code need to be to scan?

A QR code as small as a postage stamp can scan successfully if it's clear and undamaged. The limiting factor is usually image quality, not size. A blurry large code won't scan; a sharp small code will.

What if part of the QR code is covered or damaged?

QR codes can tolerate up to about 30 percent damage or obstruction and still scan. However, if the three corner position markers are damaged, the code usually won't work. Avoid covering those corners when you print or display a code.

Are all QR codes the same size?

No. QR codes vary in size depending on how much data they contain and where they're printed. A code with a short web address might be smaller than a code containing a long block of text. Size doesn't affect how your phone reads them, as long as the code is clear.