← Back to Generator

Last updated: May 2026 · 8 min read

What Is a QR Code? A Complete Guide

QR codes are everywhere — on restaurant menus, product packaging, business cards, and billboards. But how do they actually work, and why have they become so widely used? This guide covers everything you need to know.

Contents

  1. What is a QR code?
  2. A brief history
  3. How QR codes work
  4. Types of QR codes
  5. QR codes vs barcodes
  6. Common uses
  7. How to scan a QR code
  8. How to create a QR code
  9. Frequently asked questions

What Is a QR Code?

A QR code (short for Quick Response code) is a two-dimensional matrix barcode that stores information as a pattern of black squares arranged on a white background. Unlike traditional one-dimensional barcodes, which store data in a single row of lines, QR codes encode information both horizontally and vertically — which is why they can hold significantly more data.

When you scan a QR code with a smartphone camera or dedicated scanner, the device decodes the pattern and retrieves the encoded information — typically a URL, but it can also be plain text, a phone number, an email address, Wi-Fi login credentials, or a vCard contact.

Key fact: A single QR code can store up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data — far more than a traditional barcode.

A Brief History of QR Codes

QR codes were invented in 1994 by Masahiro Hara, an engineer at Denso Wave, a subsidiary of Toyota. The original purpose was entirely industrial — Denso Wave needed a faster way to track vehicle parts and components moving through automotive manufacturing plants. Traditional barcodes were too slow to scan and couldn't store enough data for the job.

Hara's team designed the QR code to be scanned rapidly from any angle, solving both problems at once. The distinctive three square "finder patterns" in the corners — the squares within squares you see in every QR code — were designed to allow scanners to detect the code's orientation regardless of how it was positioned.

Denso Wave released the QR code as an open standard in 1994 and deliberately chose not to exercise their patent rights. This open approach allowed the technology to spread freely across industries worldwide.

For years, QR codes remained a niche industrial tool. In the early 2000s, they gained some traction in Japan for mobile marketing, but uptake in other countries was slow — partly because scanning required downloading a separate app. The real turning point came in 2017, when Apple added native QR code scanning to the iPhone camera in iOS 11. Android followed suit, and suddenly hundreds of millions of people could scan QR codes with no additional software.

The COVID-19 pandemic in 2020 accelerated adoption dramatically. Restaurants replaced physical menus with QR code links. Venues used QR codes for contactless check-in. Payment systems embraced QR codes globally. What had been a mostly overlooked technology became genuinely mainstream almost overnight.

How QR Codes Work

A QR code is made up of several functional zones, each with a specific purpose:

Finder Patterns

The three square-within-square symbols in the corners. They tell the scanner where the code starts and ends, and at what angle it's positioned.

Alignment Pattern

A smaller square pattern near the bottom-right. Used in larger QR codes to correct distortion from curved surfaces or off-angle scans.

Timing Patterns

Alternating black and white modules running between the finder patterns. They tell the scanner how large each data module is.

Format Information

Strips of data alongside the finder patterns that encode the error correction level and data mask pattern used in this specific code.

Data Modules

The main body of the code — the thousands of tiny black and white squares that encode your actual content.

Quiet Zone

The white border surrounding the entire code. Scanners need this margin to distinguish the code from surrounding content.

The data stored in a QR code is protected by Reed-Solomon error correction, an algorithm originally developed for satellite communication. This is why QR codes still scan correctly even when partially damaged, dirty, or printed over with a logo.

Types of QR Codes

Static QR Codes

A static QR code has its destination permanently encoded into the pattern itself. Once generated, the content cannot be changed. If you encode the URL https://example.com/menu, that URL is baked into the physical pattern of the code. To point to a different URL, you'd need to generate and print a new code.

Static QR codes are ideal for most everyday purposes — sharing a website, providing Wi-Fi credentials, encoding a phone number or email address. They are completely free to generate (our tool creates them instantly) and have no ongoing costs.

Dynamic QR Codes

A dynamic QR code encodes a short redirect URL that points to a server. The server then redirects visitors to the real destination, which you can change at any time through a dashboard — without reprinting the code.

Dynamic codes are valuable for printed materials you want to reuse: product packaging, signage, business cards, and event flyers. They also typically include scan analytics — so you can see how many times a code was scanned, when, and from where.

Dynamic QR codes require a subscription service to maintain the redirect infrastructure and analytics.

Model 1 vs Model 2

Most QR codes you encounter today are Model 2, the updated standard released shortly after the original. Model 2 added the alignment pattern and improved error correction. The original Model 1 is largely obsolete. When people say "QR code," they always mean Model 2.

Micro QR Codes

A compact variant designed for very small surfaces where a standard QR code won't fit — such as electronic components or small labels. Micro QR codes have only one finder pattern and store less data than a full QR code.

QR Codes vs Traditional Barcodes

QR codes and barcodes both encode data in a machine-readable format, but they differ significantly in capacity and use case:

Feature QR Code Traditional Barcode (1D)
Data capacity Up to 7,089 characters Up to ~20–25 characters
Data direction Horizontal & vertical (2D) Horizontal only (1D)
Scan angle Any angle, any direction Must align with scanner beam
Damage tolerance Up to 30% can be obscured Minimal — lines must be clean
Typical use URLs, contact info, payments Product ID, retail, shipping
Scanner required Smartphone camera Dedicated laser scanner

Neither is "better" — they serve different purposes. Retail products still use EAN-13 or UPC-A barcodes because point-of-sale systems are built around them. QR codes are better for consumer-facing applications where the scanner is a smartphone.

Common Uses of QR Codes

Marketing and Advertising

Print advertising has always had one major limitation: you can't click it. QR codes bridge this gap. A poster, magazine ad, or billboard can include a QR code that takes the viewer directly to a landing page, video, or product page. This makes previously untrackable print campaigns measurable.

Restaurant Menus

One of the most common QR code applications today. Restaurants place a QR code on each table that links to an online menu. This eliminates printing costs, allows menus to be updated instantly, and gained enormous traction during the pandemic when contactless solutions were essential.

Business Cards

A QR code on a business card can encode a full vCard — name, company, phone number, email, website, and social profiles — all transferred to a contact's phone with a single scan, without typing anything.

Wi-Fi Sharing

QR codes can encode Wi-Fi credentials in a standardised format. Guests scan the code and their phone connects automatically — no need to share a long password or spell it out letter by letter.

Payments

QR code payments are the dominant form of digital payment in much of Asia, and are growing globally. Apps like PayPal, Venmo, Cash App, and most banking apps now support QR code payment links. In retail, customers scan a vendor's QR code or the vendor scans a customer's code to complete a transaction.

Product Authentication

Luxury brands and pharmaceutical companies use QR codes as a tool to combat counterfeiting. A unique code on each product links to a verification page that confirms the item's authenticity and supply chain history.

Event Tickets

Digital event tickets are almost universally QR code-based. The scanner at the venue reads the code and verifies it against a database to confirm the ticket is valid and unused.

Healthcare

Hospitals and clinics use QR codes on patient wristbands to give medical staff instant access to patient records, medication lists, and allergy information without any manual data entry.

How to Scan a QR Code

Scanning a QR code is built into every modern smartphone:

  1. iPhone (iOS 11 and later): Open the Camera app and point it at the QR code. A notification banner will appear — tap it to open the link.
  2. Android (most devices): Open the Camera app and point it at the QR code. A pop-up or banner will appear with the link. On some Android devices, you may need to enable QR scanning in camera settings first.
  3. Google Lens: On any Android device, you can also use Google Lens (tap the Lens icon in the Google search bar) to scan QR codes.

You do not need a third-party app to scan QR codes on any phone made in the last five or six years.

How to Create a QR Code

Creating a QR code is straightforward with the right tool. Here's what to think about before you generate one:

1. Decide what to encode

The most common choice is a URL. But you can also encode plain text, a phone number (in tel: format), an email address, or a vCard. For Wi-Fi credentials, most generators have a dedicated Wi-Fi field that formats the data correctly.

2. Choose the right size

For digital use (website, email, social media), 256×256 pixels is sufficient. For print, use the largest size available — 1024×1024 pixels at minimum — and ensure the printed code is at least 2cm × 2cm. Too small and it becomes difficult to scan.

3. Set a high error correction level

If you plan to add a logo or design to the centre of your QR code, set the error correction level to H (High) — this allows up to 30% of the code to be obscured while still scanning correctly. For plain codes with no design overlay, level M is fine.

4. Choose your download format

For digital use, PNG is fine. For print — particularly large-format printing like banners or signage — use SVG if available, as it scales to any size without losing quality.

Ready to create your own QR code? Our free generator takes less than 30 seconds — no login, no watermarks.

Generate a QR Code Free →

Frequently Asked Questions

Do QR codes expire?

Static QR codes never expire — the pattern is permanently encoded and doesn't rely on any external service. However, if the URL a QR code points to is taken offline or changed, the code will still scan but will lead to a broken or wrong page. Dynamic QR codes can expire if the subscription managing them lapses.

Can a QR code be hacked or contain malware?

A QR code itself cannot contain malware — it's just data. However, malicious actors can create QR codes that link to phishing websites or malware downloads. Always check the URL shown on screen before tapping through, especially with QR codes in public places that you didn't seek out yourself. This practice is sometimes called "quishing" (QR phishing).

Can I put a logo in the middle of a QR code?

Yes, and it's common practice for branded codes. Thanks to Reed-Solomon error correction, QR codes can tolerate up to 30% of their area being obscured. Set your error correction level to H before generating, then overlay your logo in the centre. Test the final code with multiple devices before printing.

What's the maximum distance a QR code can be scanned from?

Scan distance depends on the physical size of the printed code. As a rough rule, a code can be scanned from a distance of roughly 10× its width. A 3cm code can be scanned from about 30cm away. A large billboard QR code of 1 metre square can theoretically be scanned from 10 metres.

Are QR codes the same worldwide?

The QR code standard (ISO/IEC 18004) is universal and any compliant code can be scanned by any compliant reader, anywhere in the world. Some regions use related formats (like China's QR-based payment systems), but all standard QR codes are interoperable globally.


Also read: Complete Guide to Barcode Types · How to Use QR Codes for Business