How QR Codes Work: A Complete Beginner's Guide

Diagram of QR code structure with labeled parts including finder patterns, timing patterns, and data modules

QR codes are everywhere — on restaurant menus, product packaging, business cards, event tickets, and advertising posters. But how do these small black-and-white squares actually work? How does your phone camera turn a grid of dots into a website link or a piece of text? This guide explains the technology behind QR codes in plain language, with no technical jargon required.

What Does QR Stand For?

QR stands for Quick Response. The format was invented in 1994 by Denso Wave, a subsidiary of Toyota, to track automotive parts during manufacturing. Unlike traditional barcodes that store data in one direction (horizontally), QR codes store data in two dimensions — both horizontally and vertically. This allows them to hold significantly more information in a smaller space.

A standard barcode can store about 20 alphanumeric characters. A QR code can store up to 4,296 alphanumeric characters — enough for a full URL, a paragraph of text, or a complete contact card.

The Anatomy of a QR Code

Every QR code contains several structural elements that help scanners read the data correctly:

  • Finder patterns — The three large squares in the top-left, top-right, and bottom-left corners. These tell the scanner where the QR code begins and how it is oriented. No matter which angle you scan from, these patterns help the software locate and align the code.
  • Alignment pattern — The smaller square near the bottom-right corner (present in version 2+ codes). This helps correct for distortion when the QR code is printed on a curved or uneven surface.
  • Timing patterns — The alternating black and white lines connecting the finder patterns. These establish the grid spacing so the scanner knows exactly where each data module is located.
  • Data modules — The individual black and white squares in the main body of the code. Black modules represent binary 1, white modules represent binary 0. Together, they encode your URL, text, or other data.
  • Error correction — Extra data modules that allow the QR code to be read even if part of it is damaged, dirty, or obscured. QR codes support four levels of error correction: L (7%), M (15%), Q (25%), and H (30%).

How Your Phone Reads a QR Code

When you point your phone camera at a QR code, the following happens in milliseconds:

  1. Detection — The camera app detects the three finder patterns and identifies the image as a QR code.
  2. Alignment — The software calculates the rotation and perspective of the code and digitally corrects for any skew or tilt.
  3. Grid mapping — Using the timing patterns, the software maps out the exact position of every data module in the grid.
  4. Decoding — The binary data (black = 1, white = 0) is read module by module and decoded according to the QR code specification.
  5. Error correction — The Reed-Solomon error correction algorithm checks for and fixes any errors in the decoded data.
  6. Output — The decoded text is displayed to the user. If it is a URL, the phone offers to open it in a browser.

What Can QR Codes Store?

QR codes can encode several types of data:

  • URLs — Website addresses (https://example.com). This is the most common use case.
  • Plain text — Any text string up to about 4,000 characters.
  • Email — Formatted as mailto:you@example.com to open an email client.
  • Phone numbers — Formatted as tel:+1234567890 to initiate a call.
  • SMS — Formatted as sms:+1234567890?body=Hello to open a text message.
  • Wi-Fi credentials — Network name, password, and encryption type for automatic connection.
  • vCard — A digital business card with name, phone, email, and address.
  • Calendar events — Date, time, location, and description for automatic calendar entry.

Static vs Dynamic QR Codes

There are two types of QR codes, and the difference is important:

Static QR codes encode the destination URL or data directly into the QR pattern. Once created, the encoded content cannot be changed. If you change the destination URL, you need to generate a new QR code. Free tools like Rekreay's QR Code Generator create static QR codes.

Dynamic QR codes encode a short redirect URL that points to a server. The server then redirects to your actual destination. This means you can change where the QR code points without reprinting it. However, dynamic QR codes require a paid service to host the redirect server and typically include scan analytics.

For most personal and small business uses, static QR codes are sufficient and completely free.

Why QR Codes Are So Popular in 2026

Several factors have driven QR code adoption to record levels:

  • Native camera support — Since iOS 11 (2017) and Android 9 (2018), most phones can scan QR codes directly through the camera app without any third-party software.
  • Contactless interactions — QR codes became essential during the pandemic for touchless menus, check-ins, and payments.
  • Payment systems — QR-based payment is standard in many countries, especially across Asia.
  • Marketing efficiency — QR codes bridge print and digital media, allowing businesses to track engagement from physical materials.

How to Create Your Own QR Code

Creating a QR code is simple with a free online tool. Here is the basic process:

  1. Go to a QR code generator like Rekreay's free QR Code Generator.
  2. Enter the URL, text, or data you want to encode.
  3. Optionally customize the colors to match your brand.
  4. Generate the QR code and download the PNG image.
  5. Test the code with your phone camera before printing or publishing.

Final Thoughts

QR codes are a deceptively simple technology that has become an essential part of modern communication. Understanding how they work — from the finder patterns that orient the scanner to the error correction that ensures reliability — gives you a deeper appreciation for these ubiquitous squares. Whether you are creating QR codes for your business or simply scanning them daily, the technology is elegant, reliable, and here to stay.