Decode the Square: Inside QR Codes
Those random-looking squares have a beautiful hidden structure
Those random-looking squares have a beautiful hidden structure
At first glance, a QR code looks like random noise. But every single square has a purpose. Click on the regions below to explore!
Each part of a QR code has a specific job. Discover what makes these squares so smart!
Those three big squares in the corners? They're called "finder patterns" - and they're the reason your phone can scan QR codes at any angle!
The finder pattern has a unique ratio that scanners look for: 1 black : 1 white : 3 black : 1 white : 1 black
No matter what angle you scan from, or what size the QR code is, the scanner finds these patterns first to locate and orient the code.
Three corners let the scanner know the orientation. The fourth corner is left open for other data.
Rotate your phone 90°, 180°, upside down - the scanner still finds the patterns!
Scanners look for the 1:1:3:1:1 ratio in any direction - horizontal, vertical, or diagonal.
Between the finder patterns, there's an alternating black-white line. This tells the scanner exactly how big each module (square) should be.
The timing pattern defines the grid. Each alternation = one module width.
Even if the QR code is printed at an angle or on a curved surface, timing patterns help the scanner adapt.
What if part of a QR code gets scratched, covered by dirt, or torn? Amazingly, it can STILL work. Here's how:
QR codes store your message plus extra "backup" data calculated using special math (Reed-Solomon codes). If some squares get damaged, the backup data can figure out what was lost - like solving a puzzle with missing pieces!
More backup = survives more damage, but needs a bigger QR code
This is a real QR code that says "MYTEKOS" - try scanning it with your phone! Then damage it and see if it still works.
📱 Try scanning this with your phone's camera!
Watch how your message transforms into the pattern of black and white squares!
QR codes can encode numbers, letters, or raw bytes - each mode uses different encoding rules.
The final QR adds error correction data, format info, and applies a mask pattern for readability!
Before a QR code is complete, a "mask" is applied to break up patterns that might confuse scanners. There are 8 possible masks!
Large areas of same color can look like finder patterns. Masks break them up!
QR generators try all 8 masks and pick the one with the best "score" for readability.
You've discovered the hidden structure inside QR codes. Those "random" patterns aren't random at all - they're a brilliant encoding system that can survive damage!
The three big squares help scanners locate and orient the QR code instantly.
Alternating modules tell the scanner the exact grid size.
QR codes can lose up to 30% of their data and still work!
Text becomes numbers, numbers become binary, binary becomes the pattern.
Put your new knowledge into practice!