Blog
How Things Work Design

What's Actually Encoded in a QR Code (It's Not Magic)

July 20, 2026 3 min read

What you'll learn

  • What the 3 corner squares do
  • How damaged codes still scan
  • What data types QR codes can hold

A QR code looks like visual noise until you know what you're looking at — then it's almost readable. Those black-and-white squares aren't a photograph of anything or some kind of encrypted mystery. They're a direct, mathematically structured encoding of whatever text you gave it: a URL, a Wi-Fi password, a contact card. Scan it, and a camera is just reading that text back out.

The three squares that make it work

Look at any QR code and you'll spot three larger square patterns in three of the four corners — these are finder patterns, and they're the first thing a scanner locks onto. Their job is purely geometric: they tell the scanning software where the code starts, which way is up, and how the grid is oriented, even if you're holding your phone at an angle or the code is printed slightly crooked. Without them, a scanner would have no reliable way to know it's even looking at a QR code.

Error correction: why a damaged code still scans

QR codes can survive a surprising amount of damage — a coffee stain, a torn corner, a logo stamped right in the middle — and still scan perfectly. That's not luck; it's built in deliberately through a technique called Reed-Solomon error correction, which stores the encoded data with intentional redundancy. Depending on the error-correction level chosen when the code was generated, a QR code can lose anywhere from about 7% to 30% of its pattern and still be read correctly, because the redundant data lets the scanner reconstruct what's missing.

This is exactly why logos work in the middle of QR codes. Designers aren't breaking the code by adding a logo — they're deliberately spending some of that error-correction budget on covering part of the pattern, and the higher correction levels have enough redundancy to absorb it.

What's actually inside

Under the hood, a QR code isn't limited to URLs — it can encode:

  • Plain text — any string, read directly by the scanner.
  • URLs — the most common use, which just opens a link on scan.
  • Wi-Fi credentials — network name and password in a specific format phones recognize automatically, connecting without typing anything.
  • Contact cards (vCard) — structured contact info a phone can save directly to contacts.

The type of content determines how much data needs to be stored, which is also why QR codes come in different "versions" — larger grids for longer text, smaller ones for a short URL.

Making your own

The QR Code Generator handles the encoding for you — paste in a URL or any text, and it builds the corresponding pattern instantly, ready to download and print or share.

Tools mentioned in this post

0 comments

Leave a comment

Comments are reviewed before they appear publicly.