QR code glossary · Anatomy of a QR code
Timing pattern
Definition
A timing pattern is one of two lines of alternating dark and light modules, one horizontal and one vertical, that run between a QR code’s finder patterns and let a scanner count the rows and columns and find the center of each module.
How it works
The horizontal timing pattern runs along the seventh row from the top, between the top-left and top-right finder patterns; the vertical one runs down the seventh column, between the top-left and bottom-left ones. Both start and end with a dark module and alternate one module at a time, so each is 16 modules shorter than the code is wide: 5 modules in a version 1 code, 161 in version 40.
- Timing patterns
The finder patterns tell a scanner roughly how big a module is, but print size, perspective and lens distortion make that estimate drift across a large code. The timing patterns act as a ruler: each alternation marks one module, so the decoder can place the grid of module centers accurately and confirm how many modules the code has. In a Micro QR code the timing patterns run along the top and left edges instead.
Why it matters
You never set the timing patterns yourself; the encoder always draws them. They matter when a design interferes with them. Module styles that join neighboring modules into continuous shapes can blur the alternation, and a graphic, crease or fold running along the seventh row or column of a code damages a structure that error correction does not protect.
If a heavily styled code scans on one phone but not another, the decoder’s ability to recover the grid is a likely difference. Test styled codes on several phones and apps before printing.
Example
Count across the seventh row of a version 1 code and the whole layout adds up: 7 modules of finder pattern, 1 light separator, 5 timing modules (dark, light, dark, light, dark), another separator and the second finder pattern’s 7 modules make 21. In a version 7 code (45 across) the same row holds 29 timing modules, which is how a decoder can confirm the size it estimated from the finder patterns.
Related terms
- Finder patternA finder pattern is one of the three large concentric squares in the top-left, top-right and bottom-left corners of a QR code, which a scanner uses to detect the code, measure its size and angle, and work out which way up it is.
- Alignment patternAn alignment pattern is a small 5 × 5 module square, a dark ring around a light ring around a single dark module, placed at regular intervals inside QR codes of version 2 and above so a scanner can correct for tilt, perspective and curved surfaces.
- ModuleA module is a single square cell of a QR code, either dark or light, and the basic unit of the symbol: each one is a bit of data or part of a fixed pattern, and the printed width of one module decides how far away the code can be read.
- QR code versionA QR code’s version is its size on a scale from 1 to 40: version 1 is 21 × 21 modules and each version adds 4 modules per side, up to 177 × 177 at version 40, so a version V code is 17 + 4V modules across.
- Micro QR codeA Micro QR code is a smaller variant of the QR code, defined in the same standard (ISO/IEC 18004), that uses a single finder pattern and a 2-module quiet zone to fit up to 35 digits in a symbol of 11 × 11 to 17 × 17 modules.
Learn more
- QR code design: Module styles and how to keep them readable.
- QR code size guide: Print checks before a full run.
Sources
Last updated . Written by the CirculateQR team; technical facts follow the sources listed above. Example codes and sizes are computed with the open-source qrcode encoder that CirculateQR uses. Spotted something wrong? Email support@circulateqr.com. QR Code is a registered trademark of DENSO WAVE INCORPORATED.
← Browse the full glossary