What Is the QR Code Grid?
The "grid" refers to the overall square arrangement of modules that makes up a QR code's visible pattern — the structure a scanner reads row by row and column by column to reconstruct the encoded data.
The grid isn't random noise; every module's position is meaningful, encoding either actual data, error-correction information, or fixed structural elements like the finder patterns and timing patterns (thin alternating lines that help the scanner calibrate module spacing). This is why even a small amount of visual damage to the grid can still be recovered — error correction rebuilds missing pieces from the surrounding structure.
Grid size is always square and always an odd number of modules per side, ranging from 21×21 at version 1 up to 177×177 at version 40, growing by exactly 4 modules per side with each version step. Regardless of size, the same structural elements — three finder patterns, timing patterns, and (from version 2 up) alignment patterns — always occupy fixed, predictable positions relative to the grid's edges.
A scanner reads the grid in a specific zigzag pattern defined by the QR spec, not simply left-to-right like a page of text, weaving through the data region in a way that was designed to keep functional patterns (like timing lines) out of the data-reading path. This detail is invisible in practice, but it explains why a QR code can't be partially read or interpreted by scanning only a portion of the grid — the full pattern needs to be visible for any content to be recovered.
Alignment patterns, the smaller square markers scattered through the grid at higher versions (not present at version 1), exist specifically to help a scanner correct for perspective distortion across a larger grid — a phone held at a slight angle to a big, high-version code needs more reference points than the three corner finder patterns alone can reliably provide.