SmartToolsToday
QR CodeGeneratorMobile

How QR Codes Work: Structure, Types, and Best Practices

Discover how QR codes store data, the difference between QR code types, error correction levels, and best practices for creating QR codes that always scan reliably.

ST
SmartToolsToday·April 5, 2026·5 min read
Ad · 728×90 Leaderboard

What is a QR Code?

A QR code (Quick Response code) is a two-dimensional barcode invented by Denso Wave in 1994 for tracking car parts. Today, they're used everywhere — restaurant menus, product packaging, payments, and marketing campaigns — because smartphones can read them instantly with the camera.

How QR Codes Store Data

A QR code is made up of black and white squares (called modules) arranged in a grid. The data is encoded in these patterns using Reed-Solomon error correction.

Key structural elements:

  • Finder patterns — The three square patterns in the corners that tell the scanner where the code starts and its orientation
  • Alignment patterns — Help the scanner read distorted or curved codes
  • Timing patterns — Alternating black/white lines that define the grid
  • Data modules — The remaining squares that encode your actual data

QR Code Capacity

QR codes can store different amounts of data depending on the type of data and error correction level:

  • Numeric only: up to 7,089 characters
  • Alphanumeric: up to 4,296 characters
  • Binary / UTF-8: up to 2,953 bytes
  • Kanji: up to 1,817 characters

Error Correction Levels

QR codes have four levels of error correction, which determines how much of the code can be damaged or obscured while still being readable:

LevelData recoveryBest for
L (Low)~7%Clean, undamaged codes
M (Medium)~15%General use (default)
Q (Quartile)~25%Industrial/logo overlay
H (High)~30%Extreme conditions

Higher error correction means the QR code has more squares and appears denser, but is more resilient to damage.

Best Practices for QR Codes

  1. Keep URLs short — Short URLs produce simpler, more scannable QR codes. Use a URL shortener if needed.
  2. Test before printing — Always test with multiple devices and apps before printing at scale.
  3. Minimum size — Print QR codes at least 2cm × 2cm (0.8in) for reliable scanning.
  4. Contrast matters — Dark code on light background. Avoid colors that reduce contrast.
  5. Add a call to action — Always tell people what the QR code does: "Scan to see our menu".
  6. Error correction level M or H — Use at least M if the code might get dirty or worn.

What Can QR Codes Link To?

  • Website URLs
  • WiFi credentials (SSID + password)
  • Contact cards (vCard)
  • Email addresses
  • Phone numbers
  • Calendar events
  • SMS messages
  • Plain text

Create free, high-quality QR codes instantly with our QR Code Generator — no signup required.

Ad · 728×90 Leaderboard
Back to BlogBrowse Tools →