Saved

Utilix knowledge base

What Is a QR Code and How Does It Work?

Published Apr 17, 2026

What Is a QR Code?

A QR code (Quick Response code) is a two-dimensional matrix barcode that stores information in a grid of black and white squares. It was invented in 1994 by Denso Wave (a Toyota subsidiary) to track car parts during manufacturing and has since become one of the most widely used data encoding formats in the world.

Unlike a traditional 1D barcode (which can hold ~20 characters), a QR code can store:

  • Up to 7,089 numeric characters
  • Up to 4,296 alphanumeric characters
  • Up to 2,953 bytes of binary data

Anatomy of a QR Code

RegionPurpose
Finder patternsThree large squares in the corners — allow scanners to detect position and orientation
Alignment patternsSmaller squares that help correct for distortion
Timing patternsAlternating black/white rows that help determine cell size
Format informationStores error correction level and mask pattern
Data modulesThe actual encoded content
Quiet zoneWhite border around the entire code — required for scanners

Error Correction

QR codes can be scanned even if part of the code is damaged or obscured. Four error correction levels are defined by the ISO standard:

LevelData recoveryTypical use
L (Low)~7%Low-damage environments
M (Medium)~15%General use
Q (Quartile)~25%Industrial / printed material
H (High)~30%Logos embedded in code

Higher levels increase the physical size of the code (more redundancy = more modules).

What Can a QR Code Contain?

  • URLhttps://example.com — most common use; tap to open a webpage
  • Plain text — any string of characters
  • vCard / MeCard — contact details (name, phone, email)
  • Wi-Fi credentialsWIFI:S:NetworkName;T:WPA;P:password;;
  • Emailmailto:user@example.com?subject=Hello
  • SMSsmsto:+447911123456:Hello
  • Payment — UPI, Paytm, and payment-specific formats
  • Geo locationgeo:51.5074,-0.1278

How Scanning Works

  1. The camera detects the three finder patterns and calculates the code's orientation.
  2. It samples the grid to read each module (dark = 1, light = 0).
  3. The error correction data is used to recover any corrupted bits.
  4. The bit stream is decoded from the format-specific encoding (numeric, alphanumeric, byte, or kanji mode).
  5. The result is passed to the application.

Tips for Generating QR Codes

  • Use high error correction (Q or H) if you plan to print the code or overlay a logo.
  • Test before printing — scan with multiple devices before mass printing.
  • Keep URLs short — shorter content = smaller, faster-scanning codes.
  • Maintain the quiet zone — printers and designers often crop it; don't.

Generate a QR code for any URL or text with the QR Code Generator.