Quick Answer

A QR code, short for quick response code, is a square two-dimensional barcode that stores data such as a link, text, or contact details in a grid of black and white squares. A phone camera reads the pattern and decodes it, usually in under a second, then opens the stored content.

A QR code works by storing information in a grid of black and white squares that a smartphone camera can read and decode almost instantly. When you point your camera at one, the phone finds the pattern, translates the squares back into data such as a web address, and opens it. This guide explains what QR codes are, how they store and read data, what they can hold, the difference between static and dynamic codes, and how to make one for free.

What Is a QR Code?

A QR code (quick response code) is a two-dimensional matrix barcode that stores information in both the horizontal and vertical directions, which lets it hold far more data than a traditional one-dimensional barcode. It was invented in 1994 by Masahiro Hara and his team at the Japanese company Denso Wave, originally to track automotive parts more quickly during manufacturing, according to Denso Wave's own history of the QR code. The name reflects the design goal: fast, high-speed reading.

One reason QR codes became a global standard is that Denso Wave chose to keep the specification open so that any business or person could use it freely. That openness, combined with the spread of smartphone cameras, turned a factory tracking tool into something you now see on menus, posters, packaging, and payment counters.

How Does a QR Code Store Data?

A QR code stores data in a grid of small black and white squares called modules. Some of those modules are fixed structural elements, and the rest carry the actual content. The most recognisable structural parts are the three large square finder patterns in the corners, which let a scanner locate the code and work out its orientation no matter which way you hold your phone. Dotted timing patterns run between the finder patterns and help the scanner work out the grid, and smaller alignment patterns help it correct for distortion, as Scandit's technical guide describes.

The remaining modules form the data region, where your content is encoded and then interleaved with Reed-Solomon error correction data. Error correction is what makes QR codes so robust. It adds redundant information so that a scanner can rebuild the original content even if part of the code is missing. QR codes support four error correction levels, listed in Denso Wave's outline of the QR code specification:

  • Level L: up to about 7 percent of the data can be restored
  • Level M: up to about 15 percent can be restored
  • Level Q: up to about 25 percent can be restored
  • Level H: up to about 30 percent can be restored

This is why a QR code with a small logo placed in the middle, or one that is slightly scratched or smudged, will often still scan. The higher the error correction level, the more damage the code can tolerate, at the cost of holding a little less data.

What Can a QR Code Hold?

A single QR code holds far more than a traditional barcode. Denso Wave's specification outline gives the maximum for the largest version, Version 40, as 7,089 numeric characters, 4,296 alphanumeric characters, 2,953 bytes of binary data, or 1,817 Kanji characters. Those are ceilings, not targets: the more you put in, the denser and harder to scan the code becomes.

In practice, a QR code holds text, and the format of that text tells the phone what to do with it. The common formats are:

  • URL: a web address that the phone offers to open.
  • WiFi: a network name, password and security type, so the phone can join without typing. Our WiFi QR code generator builds these.
  • vCard: contact details the phone can save as a new contact. See the vCard QR code generator.
  • SMS and email: a recipient and a pre-filled message, opened in the messaging or email app.
  • Phone: a number ready to call.
  • Location: map coordinates.
  • Event: a calendar entry with a title, time and place.
  • Plain text: anything else, shown on screen as it is.

How Does Scanning a QR Code Work?

Scanning happens in a few quick steps that feel instant to you. First, the camera or scanning app looks for the three finder patterns, which tell it where the code is and which way up it sits.

Once the finder patterns are located, the software works out the code's position, size, and angle, then reads the grid of modules as ones and zeros. It applies the Reed-Solomon error correction to fix any misread or damaged sections, and finally decodes the result into usable content such as a URL, a phone number, or WiFi credentials. On most modern phones, this whole process takes well under a second, which is exactly the quick response the format was named for.

On current iPhones and Android devices you usually do not need a separate app. The built-in camera detects a QR code automatically and shows a tappable prompt. If your camera does not, our guide on how to scan a QR code walks through the options.

What Are the Types of QR Codes (Static vs Dynamic)?

Beyond the many content types a QR code can hold, there is one distinction that matters most in practice: static versus dynamic.

A static QR code encodes the content directly into the pattern. The data lives in the image itself, so no server is involved when it is scanned. Static codes are free, private and do not depend on any service staying online, but the content cannot be changed after the code is created. They also cannot count scans; any tracking has to come from the page the code opens.

A dynamic QR code encodes a short redirect link that points to a provider's server, which then forwards to your real destination. Because only the redirect is fixed in the image, you can change the destination later without reprinting, and the provider can record scan analytics. The trade-off is that dynamic codes usually require a paid subscription and depend on that provider staying online. We compare the two in depth in our guide to dynamic vs static QR codes.

For most individuals and small businesses, a free static QR code does everything needed. Dynamic codes mainly earn their subscription for large campaigns that require editable destinations or detailed scan analytics.

How Do You Create a QR Code for Free?

Making a QR code is much simpler than the technology behind it. With a free browser generator you can create one in three steps and no account:

  1. Choose your content type. A website link, WiFi network, contact card, email, phone number, or plain text.
  2. Enter your details. The generator encodes them into a static QR code instantly, right in your browser.
  3. Download and use it. Save the code as a PNG, then print or share it. It needs no subscription and keeps working as long as what it points to does.

If you have several codes to make at once, our batch QR code generator creates many codes in one go, which is handy for a set of table numbers, product labels, or classroom links.

Create a Free QR Code →

What Else Do People Ask?

What is a QR code in simple terms?

A QR code, short for quick response code, is a square two-dimensional barcode that stores information such as a website link, text, phone number, or WiFi details. A smartphone camera reads the pattern of black and white squares and decodes it into the stored data, usually in under a second.

Who invented the QR code?

The QR code was invented in 1994 by Masahiro Hara and his team at the Japanese company Denso Wave, originally to track automotive parts during manufacturing. The QR in the name stands for quick response, reflecting the goal of high-speed reading. Denso Wave kept the specification open, which helped QR codes spread worldwide.

How does a QR code store data?

A QR code stores data in a grid of black and white squares called modules. Fixed finder patterns in three corners let a scanner locate and orient the code, while the remaining modules hold the encoded content along with Reed-Solomon error correction data. The error correction lets a code still be read even when part of it is dirty or damaged.

Do QR codes still work if they are partly damaged?

Often yes. QR codes include Reed-Solomon error correction with four levels, from L which can restore about 7 percent of the data to H which can restore about 30 percent. A code set to a higher error correction level can still be scanned even if a portion is scratched, smudged, or covered by a small logo.

How much data can a QR code hold?

The largest QR code, Version 40, holds up to 7,089 numeric characters, 4,296 alphanumeric characters, 2,953 bytes of binary data, or 1,817 Kanji characters, according to Denso Wave, which invented the format. Most codes hold far less, such as a single web address, and shorter content makes a code easier to scan.

How do I create a QR code for free?

You can create a QR code for free in a browser tool with no account. Choose the content type such as a URL, WiFi network, or contact card, enter your details, and download the generated code as a PNG. A static QR code made this way needs no subscription and keeps working for as long as the link or details it holds are still valid.

Related Articles