ELI5: How does a QR code store information in a bunch of squares?
A QR code is a grid of tiny black and white squares called modules. Each one is basically a 1 or a 0. Put enough of them together and you can store text, like a web address.
A few parts do special jobs:
- The three big squares in the corners tell the camera where the code is, how big it is, and which way up it is. That's why you can scan at an angle or upside down.
- Timing patterns, the dotted lines between those corner squares, help the scanner figure out the grid size.
- Format information near the corners says which settings were used to make the code.
- The rest of the grid holds the actual data plus extra backup information.
That backup part is clever. QR codes use error correction, a math technique that stores redundant information so the code can still be read even if part of it is dirty, scratched, or covered. That's how codes with a logo in the middle still work: the logo hides some modules, and error correction fills in the gaps.
A QR code itself doesn't "do" anything. It just holds data. If it holds a link, your phone opens it. That's why it's worth checking where a code leads before entering personal or payment details, since a sticker can easily be placed over a real code.
Over to you:
- Where do you see QR codes used most where you live?
- Do you check the link before opening a scanned code?
Comments · 0
No replies yet — start the conversation.