Online Text Tools Online Text Tools
← Back to Blog • Aug 06, 2026 • 9 min read • Computer Vision

How QR Codes Work: Matrix Geometry, Reed-Solomon Error Correction, and Encoding.

A deep dive into Quick Response (QR) matrix architecture, 2D finder patterns, encoding modes, and Reed-Solomon polynomial math.

1. The Invention of the 2D Matrix

In 1994, Masahiro Hara and a team of engineers at Denso Wave (a subsidiary of Toyota) developed the Quick Response (QR) code. Traditional 1D barcodes can only hold approximately 20 alphanumeric characters along a horizontal axis. As automotive component tracking required higher data density, the 2D matrix was born.

A standard QR code can store over 7,000 numeric digits or 4,200 alphanumeric characters across both vertical and horizontal dimensions.

2. Geometric Anatomy of a QR Code

  • Finder Patterns: The three distinctive square boxes located at the top-left, top-right, and bottom-left corners. They allow scanners to identify code orientation from 360 degrees.
  • Alignment Patterns: Smaller concentric squares embedded in larger QR versions to compensate for curved surfaces or camera distortion.
  • Timing Patterns: Alternating black and white modules connecting the finder patterns, establishing coordinate grids.

3. Reed-Solomon Error Correction

The most powerful feature of QR codes is their resilience against physical damage, dirt, and obstruction through Reed-Solomon error correction:

  • Level L (Low): 7% of data codewords can be recovered.
  • Level M (Medium): 15% of data codewords can be recovered.
  • Level Q (Quartile): 25% of data codewords can be recovered.
  • Level H (High): 30% of data codewords can be restored. This level is used when embedding logos in the center of a QR code!

Generate custom vector QR codes with customized error correction using our free QR Code Generator, or create instant connections with our WiFi QR Code Generator.