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. It always appears as a square, never a rectangle or circle. The pattern looks random at first, but it holds encoded information — usually a website link, contact details, or payment information — that a smartphone camera can decode in seconds.

The most recognizable feature is the three larger squares positioned at three corners of the code (top left, top right, and bottom left). These are called position markers, and they help your phone's camera orient and read the code correctly. The rest of the square fills with smaller black and white blocks in a seemingly chaotic pattern, but that pattern is precisely calculated to store data.

QR codes range in size from about one inch across to several feet wide, depending on how much information they contain and how far away someone needs to scan them. A straightforward link might be a small code; a detailed contact card or event ticket might be larger. The code itself does not change appearance based on what it contains — only the density and arrangement of the blocks differ.

Key Takeaways

  • QR codes are always square, with three larger position markers at three corners and a grid of black and white blocks filling the rest.
  • The three corner squares help your phone camera recognize and orient the code before reading it.
  • QR codes can be any size from one inch to several feet across, but the pattern stays proportionally the same.
  • A QR code's appearance does not reveal what information it contains — you must scan it to see the link, contact, or data inside.
  • Most QR codes are printed in black on white, but some use other color combinations as long as there is enough contrast for a camera to read.

The three corner position markers that make QR codes recognizable

Each of the three corner squares is made up of a thick black border, a white ring inside it, and a smaller black square in the center. This pattern is unique to QR codes and does not appear in other barcode types. Your phone's camera looks for these three markers first to confirm it is looking at a QR code and to figure out which direction the code is facing.

Because these markers sit at three corners, a QR code can be scanned from any angle or orientation. You do not have to hold your phone at a specific angle or turn the code right-side up. The camera finds the position markers, calculates the code's orientation, and reads the data regardless of how the code is tilted or rotated.

The fourth corner (bottom right) has no marker. This empty corner is intentional and helps your phone distinguish a QR code from other square patterns or images that might appear nearby.

The data area and timing patterns that fill the rest of the code

Between the three position markers and around the edges of the code, you will see a thin line of alternating black and white blocks. These are called timing patterns, and they help the camera measure the size and spacing of each individual block in the code. Without these lines, the camera would not know how many blocks wide the code is or where one block ends and another begins.

The rest of the square — usually the center and lower right area — contains the actual encoded data. This section looks like a random scatter of black and white blocks, but each block represents a piece of information. The more data the code holds, the more blocks it needs, which is why larger codes contain more information than smaller ones.

Some QR codes also include a small white square near the bottom right corner. This is called the format information area, and it tells your phone what error-correction level the code uses. This allows the camera to read the code even if part of it is damaged, faded, or partially covered.

Color variations and what makes a QR code readable

Most QR codes are black on white, but they do not have to be. A code can use dark blue on light gray, dark green on white, or any other color combination as long as there is enough contrast for a camera to see the difference. The key requirement is that the dark blocks must be significantly darker than the light background.

Some businesses print colored QR codes with logos or images in the center. These codes still work as long as the three corner position markers remain clear and the data area has enough contrast. However, adding a logo or image to the center does reduce the code's reliability — if the logo covers too much of the data area, the code may fail to scan.

A QR code printed too small, too faded, or with too little contrast will not scan. Your phone's camera needs to see each individual block clearly. If the code is printed on a textured or reflective surface, or if the lighting is very poor, scanning may also fail.

How QR code size relates to the amount of information stored

QR codes come in 40 different official sizes, ranging from 21 blocks by 21 blocks (the smallest) to 177 blocks by 177 blocks (the largest). A straightforward URL might fit in a small code about one inch square. A detailed contact card, event ticket, or payment instruction might need a code two or three inches across.

The version number of a QR code (Version 1, Version 2, and so on) determines its size and capacity. Version 1 is the smallest and holds the least data. Each higher version adds more blocks and can store more information. However, a larger code does not look fundamentally different — it straightforward has more blocks arranged in the same square pattern.

When you see a QR code in the wild, you cannot tell from its appearance alone how much data it holds or what type of information it contains. A small code and a large code look similar; only the density of blocks differs. You must scan the code to learn what it links to or what information it contains.

Where you will encounter QR codes in daily life

QR codes appear on product packaging, restaurant menus, event tickets, business cards, billboards, and payment terminals. During the COVID-19 pandemic, they became common on restaurant tables as a way to access digital menus without touching a physical one. Today, they are used for contactless payments, event check-ins, WiFi login, and sharing contact information.

In retail, QR codes link to product reviews, nutritional information, or promotional offers. In healthcare, they may appear on prescription labels or appointment reminders. In real estate, they might link to property photos or virtual tours. The code itself always looks the same — a square pattern of black and white blocks — regardless of what information it contains.

Because QR codes are free to generate and straightforward to print, they have become a standard way to bridge physical and digital information. Any business or individual can create a QR code using free online generators, which is why you encounter them so frequently.

Frequently Asked Questions

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

Yes. A QR code can use any colors as long as the dark blocks contrast sharply with the light background. Dark blue on light yellow, dark green on white, or even dark red on light pink can work. The camera needs to distinguish each block clearly, so low-contrast combinations like dark gray on light gray will fail to scan.

What are the three squares in the corners of a QR code for?

Those three squares are position markers that help your phone's camera recognize the code and figure out which direction it is facing. The camera looks for these markers first, then uses them to orient and read the rest of the code. This is why QR codes can be scanned from any angle.

Does a bigger QR code always contain more information?

Usually, yes. A larger code has more blocks and can store more data. However, the same information can sometimes be encoded in different sizes depending on the error-correction level used. A small code with high error correction might hold the same data as a larger code with low error correction.

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

Logos are added for branding purposes, but they reduce the code's reliability. The logo covers part of the data area, so the code depends more heavily on error correction to remain readable. If the logo is too large or the code is damaged, it may fail to scan. Most QR codes work better without a logo.

Can you tell what a QR code links to just by looking at it?

No. The pattern of black and white blocks does not reveal the content. A code linking to a website looks identical to a code containing contact information or a payment instruction. You must scan the code with your phone to see what it contains.