100% Free

What is a QR Code — How It Works & Types Explained

Everything you need to know about QR codes in 2026 — their history, how they encode data, the difference between static and dynamic types, and how to stay safe.

Updated: March 2026

History of QR Codes

QR codes (Quick Response codes) were invented in 1994 by Masahiro Hara at Denso Wave, a subsidiary of Toyota. The original purpose was to track vehicle parts during manufacturing. Traditional barcodes could only store about 20 characters, which was insufficient for Toyota's complex inventory system. Hara's team developed a two-dimensional code that could store thousands of characters and be scanned at high speed from any angle.

Denso Wave made a pivotal decision to release the QR code specification publicly, allowing anyone to create and use QR codes without paying licensing fees. This open approach led to rapid global adoption. By the early 2000s, QR codes were widely used in Japan for mobile payments, advertising, and product tracking.

The global breakthrough came during the COVID-19 pandemic (2020-2021), when contactless interactions became essential. Restaurants replaced physical menus with QR codes, governments used them for health passes, and digital payments via QR codes exploded in countries like India (through UPI). Today, QR codes are an integral part of daily life worldwide.

How QR Codes Work

A QR code is essentially a two-dimensional matrix of black and white squares (called "modules") arranged in a square grid on a white background. The data is encoded in both the horizontal and vertical dimensions, unlike traditional barcodes which use only one dimension.

Structure of a QR Code

Every QR code contains several key components that enable scanning and decoding:

Encoding Process

When you generate a QR code, the data goes through these steps:

  1. Data analysis: The encoder determines the most efficient encoding mode (numeric, alphanumeric, byte, or kanji) based on the input characters.
  2. Data encoding: The input is converted into a binary bit stream using the selected mode.
  3. Error correction: Reed-Solomon error correction codewords are generated and appended to the data.
  4. Module placement: The binary data is arranged in the QR code matrix following a specific zigzag pattern.
  5. Masking: A mask pattern is applied to ensure the QR code has a balanced ratio of black and white modules for optimal scanning.

Types of QR Codes: Static vs Dynamic

FeatureStatic QR CodeDynamic QR Code
ContentData encoded directly in the codeContains a redirect URL; actual content stored on a server
EditableNo — once generated, content is permanentYes — destination can be changed anytime
Scan trackingNot possibleYes — track scans, location, device, time
Size/complexityLarger for more dataAlways small (short URL encoded)
ExpirationNever expiresMay expire if service subscription lapses
Internet requiredOnly if content is a URLAlways (needs server to redirect)
CostFreeUsually requires paid subscription
Best forPermanent content, offline use, business cardsMarketing campaigns, menus, events, trackable links

Common Uses of QR Codes

QR Code Capacity Limits

Data TypeMaximum Capacity
Numeric only (0-9)7,089 characters
Alphanumeric (A-Z, 0-9, symbols)4,296 characters
Binary / byte data2,953 bytes
Kanji / full-width characters1,817 characters

Practical recommendation: While QR codes can theoretically hold thousands of characters, keeping the content under 300 characters ensures reliable scanning across all devices and cameras. Longer content creates denser QR codes that may be difficult to scan on older phones or at a distance.

QR Code Security Considerations

While QR codes themselves are neutral data containers, they can be exploited for malicious purposes. Here is how to stay safe:

Generate QR Code Free

Create free QR codes for URLs, UPI payments, WiFi, contacts, and plain text. No signup required — instant download in PNG format.

Generate QR Code Free →

Frequently Asked Questions

What does QR stand for?

QR stands for Quick Response. The name reflects the code's ability to be scanned and decoded quickly. QR codes were invented in 1994 by Denso Wave, a subsidiary of Toyota, to track vehicle parts during manufacturing. Unlike traditional barcodes that store data in one dimension, QR codes store data in two dimensions (horizontally and vertically), allowing them to hold significantly more information.

What is the difference between static and dynamic QR codes?

Static QR codes have data permanently encoded — once generated, the content cannot be changed. They work offline and never expire. Dynamic QR codes contain a short redirect URL instead of the actual content. The destination can be changed anytime without reprinting the QR code. Dynamic codes also offer scan tracking and analytics. Static codes are free and simple; dynamic codes require a subscription service but offer flexibility.

How much data can a QR code store?

A QR code can store up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data. However, the more data you encode, the denser and harder to scan the QR code becomes. For practical use, keeping the content under 300 characters is recommended for reliable scanning across all devices.

Are QR codes safe to scan?

QR codes themselves are safe — they are simply data containers. However, malicious actors can create QR codes that link to phishing websites, malware downloads, or fraudulent payment pages. Always check the URL preview before opening a link from a QR code. Use your phone's built-in camera app (which shows URL previews) rather than third-party scanner apps. Never scan QR codes from untrusted sources or codes that appear to be pasted over existing ones.

Do QR codes expire?

Static QR codes never expire — they work as long as the encoded content (URL, text, etc.) remains valid. If a static QR code links to a website and that website goes down, the QR code still works but the destination is unavailable. Dynamic QR codes may expire if the service provider's subscription lapses or if the provider sets an expiration date. For permanent use, static QR codes are more reliable.

Disclaimer: This guide is for informational purposes only. QR code specifications and standards may evolve. Always verify security best practices with current sources. QR Batao is a free tool by TUD Innovations Pvt Ltd. Last updated: March 2026.