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
| Region | Purpose |
|---|---|
| Finder patterns | Three large squares in the corners — allow scanners to detect position and orientation |
| Alignment patterns | Smaller squares that help correct for distortion |
| Timing patterns | Alternating black/white rows that help determine cell size |
| Format information | Stores error correction level and mask pattern |
| Data modules | The actual encoded content |
| Quiet zone | White 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:
| Level | Data recovery | Typical 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?
- URL —
https://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 credentials —
WIFI:S:NetworkName;T:WPA;P:password;; - Email —
mailto:user@example.com?subject=Hello - SMS —
smsto:+447911123456:Hello - Payment — UPI, Paytm, and payment-specific formats
- Geo location —
geo:51.5074,-0.1278
How Scanning Works
- The camera detects the three finder patterns and calculates the code's orientation.
- It samples the grid to read each module (dark = 1, light = 0).
- The error correction data is used to recover any corrupted bits.
- The bit stream is decoded from the format-specific encoding (numeric, alphanumeric, byte, or kanji mode).
- 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.