Glossary Term

QR Code Finder Pattern

glossary qr code finder pattern featured

A QR code finder pattern is the large 7 x 7 module square in three corners of a QR code (top-left, top-right and bottom-left). It lets a scanner locate the code in an image and work out which way it is rotated. Each finder pattern is a dark outer ring, a light ring and a dark 3 x 3 centre. Denso Wave, the inventor of the QR code, calls it a position detection pattern.

Why the Finder Pattern Matters

A scanner must find a QR code before it can read it. Of everything in the QR code pattern, the QR finder pattern is the part it searches for first. Without it, nothing else in the code is read.

Three squares are enough to fix the code’s position, size and orientation. The empty fourth corner (bottom-right) tells the scanner which way is up, so a code can be scanned upside down or sideways. Finder patterns are also not protected by error correction. Error correction repairs data modules only, so damage to a finder cannot be repaired.

Structure of a Finder Pattern

A finder pattern is always 7 x 7 modules, in every version from 21 x 21 to 177 x 177. A module is one square cell of the code.

Layer Size Color
Outer ring 7 x 7 modules, 1 module thick Dark
Middle ring 5 x 5 modules, 1 module thick Light
Center 3 x 3 modules, solid Dark
Separator 1 module wide, on the inner sides Light

Each finder uses 49 modules, or 147 for all three. Counting the light separators, the three finders take up 192 modules in a Version 3 code (29 x 29, 841 modules in total). Quiet zone margins add 4 more light modules around the whole code.

How Scanners Find a Finder Pattern

Scanners look for a fixed ratio. Any straight line through the center of a finder crosses dark, light, dark, light, dark modules in the ratio 1:1:3:1:1.

Line through the center: dark 1, light 1, dark 3, light 1, dark 1

Denso Wave, the company that invented the QR code, chose this ratio because it rarely appears by accident in printed material. The ratio holds along every direction through the center, so detection works at any angle. It is also unchanged by scale, so it works at any print size.

After finding candidate squares, the decoder checks that three of them form a right-angled triangle. It then uses their positions to map the grid, even if the photo is tilted or skewed.

Finder Pattern vs Alignment Pattern

The two are often confused. A finder pattern locates the code. An alignment pattern corrects distortion after the code is found.

Finder pattern Alignment pattern
Size 7 x 7 modules 5 x 5 modules
Count Always 3 0 in Version 1, more in larger versions
Job Find the code and its orientation Straighten warped or curved codes
Needed to scan Yes Often not on small codes

Other formats differ. Micro QR codes have a single finder pattern in the top-left corner and hold much less data.

What Breaks a Finder Pattern

In a decode test of a Version 3 code (40 trials per setting, simulated camera capture, zxing-cpp 3.1.1 and OpenCV 5.0.0), any damage to a finder pattern was costly:

Condition zxing-cpp OpenCV
Baseline 40 of 40 40 of 40
Blank any one finder (tested all three) 0 of 40 0 of 40
Blank only the 3 x 3 center 0 of 40 0 of 40
Blank only the outer ring 0 of 40 0 of 40
Flip 1 random module in a finder 21 of 40 29 of 40
Flip 2 random modules 8 of 40 27 of 40
Flip 5 random modules 0 of 40 7 of 40
Rotate 90, 180 or 270 degrees 40 of 40 40 of 40
Stretch 1.5x wider 40 of 40 40 of 40
Stretch 2x wider 40 of 40 0 of 40

A single wrong module in a finder cost roughly half of the scans. Rotation never mattered, which is the finder pattern doing its job. Phones use their own decoders, so treat these figures as directional.

Finder Pattern Design Rules

Keep all three finders intact, and keep the light separators and the 4-module quiet zone clear. Never place a logo, sticker or fold over a corner. A logo belongs in the center of the data area, where error correction can cover it.

Custom finder shapes (rounded corners, colored eyes) are common in design tools. This test did not cover styled shapes, so check any custom design on several phones. Keep strong contrast between the dark and light layers so the 1:1:3:1:1 ratio stays visible.

Frequently Asked Questions

What is a finder pattern in a QR code?

A finder pattern is a 7 x 7 module square in the top-left, top-right and bottom-left corners of a QR code. It lets a scanner find the code and its orientation. Each one is a dark ring, a light ring and a dark 3 x 3 center.

Why does a QR code have three corners with squares instead of four?

Three squares are enough to fix position and size, and the missing fourth corner shows orientation. If all four corners matched, a scanner could not tell the code’s rotation. The bottom-right corner holds data and, in larger versions, a smaller alignment pattern.

What is the 1:1:3:1:1 ratio in a QR code?

It is the dark-to-light proportion along any line through the center of a finder pattern: 1 dark, 1 light, 3 dark, 1 light, 1 dark. Scanners search for this ratio to find the code. It rarely occurs by accident in printed material, so false detections are uncommon.

Can a QR code scan with a damaged finder pattern?

Rarely. In testing, blanking any finder pattern gave 0 of 40 successful scans on both decoders, and one flipped module cut results to about half. Error correction does not protect finders, so keep them clean and uncovered.

Do all QR codes have three finder patterns?

Standard QR codes do, in every version. Micro QR codes have only one, in the top-left corner. The finder pattern is always 7 x 7 modules regardless of the code’s version.

To keep every corner clean and every module readable, create a short-link QR code with linkutm.