What is QR Code? Complete Guide with Examples

3 min readsecurity

A QR code (Quick Response code) is a two-dimensional matrix barcode that encodes data as a pattern of black and white squares. Invented by Denso Wave in 1994 for automotive tracking, QR codes have become ubiquitous for encoding URLs, contact info, WiFi credentials, payment information, and text. They can store up to 7,089 numeric characters or 4,296 alphanumeric characters, and include built-in error correction that allows reading even when partially damaged.

Try It Yourself

Use our free QR Code Generator to experiment with qr code.

How Does QR Code Work?

QR codes encode data using a grid of modules (black/white squares). The encoding process: data is converted to a binary stream, error correction codes (Reed-Solomon) are calculated and appended, the combined data is arranged in a pattern across the grid, and special patterns (finder patterns, timing patterns, alignment patterns) are added for scanner orientation. Four error correction levels (L: 7%, M: 15%, Q: 25%, H: 30%) trade data capacity for damage resilience. Scanning uses camera + image processing to detect the code, correct perspective, decode the module pattern, and extract the data.

Key Features

  • High data capacity: up to 4,296 alphanumeric characters in a single code
  • Four error correction levels (L/M/Q/H) allowing reading even when 7-30% is damaged
  • Multiple data types: URL, text, email, phone, WiFi credentials, vCard contact, and calendar events
  • Customizable size, color, and logo embedding while maintaining scannability
  • Instant scanning via smartphone cameras without dedicated hardware or apps

Common Use Cases

Mobile Payments

Payment QR codes (Venmo, PayPal, WeChat Pay, UPI) encode payment information allowing instant mobile transactions by scanning, eliminating the need to type account numbers.

Restaurant Menus

Post-2020, QR codes on tables linking to digital menus became standard, reducing physical contact and enabling real-time menu updates.

Marketing and Advertising

Print ads, packaging, and billboards include QR codes linking to websites, apps, promotions, and social media. They bridge physical and digital marketing channels.

Frequently Asked Questions

Related Guides

Related Tools