What Is a QR Code and How Does It Actually Work?
QR codes went from a niche manufacturing tool to something scanned daily on restaurant tables, product packaging, and posters — but most people who scan them have never seen how the pattern actually encodes information. Here's what's really going on inside that square of black and white squares.
Where QR codes actually came from
QR ("Quick Response") codes were developed in 1994 by a Japanese automotive supplier to track vehicle parts through manufacturing — a job that traditional barcodes struggled with because they can only encode data in one direction and hold relatively little information. QR codes solved this by encoding data in two dimensions instead of one, dramatically increasing how much information a single code could hold.
How the pattern actually encodes data
Each QR code is a grid of black and white squares (called modules) that represent binary data — the specific pattern of dark and light squares translates directly into the underlying text, URL, or other content. The three large square patterns in three of the four corners are "position markers" that let a scanner instantly recognize the code's orientation, even if the photo is taken at an angle or the code is partially rotated.
The error correction is what makes them so reliable
QR codes include built-in error correction, meaning they can still be scanned correctly even if a meaningful portion of the code is damaged, dirty, or obscured — commonly by design, some codes have a logo placed in the middle, deliberately covering part of the pattern, relying entirely on this error correction to still work. The highest error correction level can recover from roughly 30% data loss.
What they can actually encode
QR codes aren't limited to URLs — they can encode plain text, Wi-Fi network credentials (which is why scanning one can prompt your phone to "Join network" automatically), contact information, email addresses pre-filled with a subject line, phone numbers that trigger a call, and pre-written text messages.
A practical security note
Because QR codes can encode a URL invisibly to the human eye, they're occasionally used in phishing attempts — scanning a code takes you somewhere before you've had a chance to read the actual link. It's worth checking the destination URL your phone shows before tapping through, the same way you'd check a link before clicking it in an email.
Our free QR Code Generator lets you create codes for URLs, Wi-Fi networks, contacts, emails, phone numbers, and text messages, with customizable size and colors, downloadable instantly as a PNG.