📖 Guide ⏱ 5 min read 📅 Feb 2026

How QR Codes Work

QR codes look like little squares of noise, but they're a carefully designed grid that cameras can read fast and reliably — even if part of the code is damaged. This guide explains what's inside a QR code, how scanning works, and how to print them so they scan every time.

What a QR code stores

A QR code stores data as a pattern of dark and light modules (the tiny squares in the grid). The data can be a URL, plain text, contact details, WiFi login info, and more. Your phone's camera app converts those modules back into bytes, then interprets the result based on the content type.

7,089
Max numeric chars
4,296
Max alphanumeric chars
40
QR versions (sizes)
30%
Max damage survivable

The key parts of a QR code

  • Finder patterns — the three big squares in the corners. They help the camera detect the code and orient it correctly.
  • Alignment patterns — smaller squares that help correct perspective distortion, especially on larger codes.
  • Timing patterns — alternating lines that help the scanner measure the grid spacing.
  • Quiet zone — the empty margin around the code. Without it, scanners often fail.
  • Data & error correction — the rest of the grid holds your data plus redundancy for damage recovery.

💡 Fun fact: The three finder patterns in the corners are specifically designed so the scanner can locate and orient the QR code from any angle — even upside down.

Why QR codes still scan when damaged

QR codes use Reed–Solomon error correction, which adds extra redundant information so scanners can reconstruct missing or damaged pieces. Error correction comes in four levels:

LevelRecovery abilityBest for
L~7% damageClean indoor printing
M~15% damageMost general use
Q~25% damageIndustrial / outdoor
H~30% damageLogo overlays, stylized QR

Higher levels can survive more damage or logo overlays, but they also make the code denser — which means it needs to be printed larger to scan reliably.

How a phone reads a QR code

  1. The camera detects the finder patterns and locates the code in the frame.
  2. It corrects rotation and perspective so the grid becomes a perfect square.
  3. It samples each module (dark/light) across the grid.
  4. It decodes the data using error correction to fill any gaps.
  5. It interprets the result — opens a URL, suggests joining WiFi, saves a contact, etc.

⚡ Speed: Modern phone cameras can complete all five steps in under 100ms — which is why QR codes feel instant when you point your camera at them.

Static vs. dynamic QR codes

Static QR codes store the final destination directly (like a full URL). They're simple, reliable, and never depend on a third party. Dynamic QR codes store a short redirect URL so the destination can be changed later — but they depend on a redirect service staying online.

If you don't need analytics or the ability to change destinations, static codes are almost always the better choice.

Printing and scanning best practices

  • Keep a quiet zone — leave a clean margin around the code (at least 4 modules wide on every side).
  • Use high contrast — dark code on a light background scans best. Avoid inverting colors unless you test carefully.
  • Don't print too small — for most uses, aim for at least 2 cm / 0.8 in wide. Bigger is safer.
  • Avoid glossy glare — reflections can block scanners, especially in bright light.
  • Test on multiple phones — try both iPhone and Android before you print 1,000 labels.

⚠️ Most scan failures come from just three things: missing quiet zone, printing too small, or low contrast. Fix those first.


FAQ

Do QR codes expire?

Static QR codes don't expire — they'll keep working as long as the content they point to still exists. Dynamic QR codes can "expire" if the redirect service shuts down or you stop paying.

Can I put my logo in the middle?

Yes, but keep the logo small (under 30% of the code area) and use Level H error correction. Always test scanning after you add a logo — some logo placements cause failures even with high error correction.

Why won't my QR code scan?

Most failures come from a missing quiet zone, low contrast, printing too small, or glare. Try increasing the size first — that fixes the majority of scan problems.

What's the difference between PNG and SVG exports?

PNG is a pixel image — great for digital use but may look blurry if printed large. SVG is vector — infinitely scalable and stays perfectly crisp at any print size. Use SVG for anything physical.

Ready to make your QR code?

Free, no expiry, no watermark — generate and download in seconds.

Read next
QR Code Size & Printing Guide