What Is a QR Code? How It Works, Its Parts, and Common Uses

Learn what a QR code is, how a phone reads its modules, what error correction does, and how to choose a practical QR code format.

Bulk QR Generator Team · Aug 27, 2026

The short answer

A QR code (Quick Response code) is a two-dimensional barcode that encodes information in a square grid of dark and light modules. A camera or scanner locates the pattern, corrects perspective, and decodes the stored data. The payload can be a URL, text, WiFi network details, a contact card, or an action such as a phone call.

Denso Wave developed the QR Code in Japan in 1994 for tracking components in vehicle manufacturing. Unlike a one-dimensional barcode, a QR code stores data across two dimensions, so it can hold more information in a compact, machine-readable symbol. The exact capacity depends on the QR version, encoding mode, and error-correction level.

How a QR code works

When a phone scans a QR code, its software typically:

  1. Locates the symbol. Three finder patterns at the corners help the scanner identify the code and its orientation.
  2. Measures the grid. Timing patterns establish the module spacing. Larger symbols may also include alignment patterns to help correct distortion.
  3. Reads the data. The scanner interprets the modules according to the QR Code specification, then decodes the selected character mode.
  4. Corrects errors. Reed–Solomon error correction can recover data when part of the symbol is dirty, damaged, or obscured. It is a recovery allowance, not a guarantee that any damaged code will scan.
  5. Offers the result. The phone displays text or asks whether to open a link, join WiFi, save a contact, or perform another action.

Scanning and decoding can happen without an internet connection. A URL still needs a connection to load its destination; text and some other payloads can be used offline.

Anatomy of a QR code

The visible squares are not all content. The main parts are:

  • Finder patterns: the three large corner patterns used for detection and orientation.
  • Separators and quiet zone: the light space around finder patterns and the symbol. The QR Code specification calls for a quiet zone at least four modules wide; preserve it when exporting or placing a code.
  • Timing patterns: alternating modules that help the scanner determine the grid.
  • Alignment patterns: smaller reference patterns included in many larger versions to improve geometric correction.
  • Format and version information: control data that tells the scanner how to interpret the symbol.
  • Data and error-correction modules: the remaining area contains the encoded payload and recovery information.

QR Codes have 40 standard versions, from 21 × 21 modules (Version 1) to 177 × 177 modules (Version 40). More payload data generally requires a larger, denser symbol. Keep the payload short and test the exported file at its intended print size.

Error-correction levels

QR Codes offer four error-correction levels. The percentages below describe approximate recovery capacity under the standard model, not a guaranteed percentage of the visible image that can be covered.

| Level | Approximate recovery capacity | When it may fit | |---|---:|---| | L | 7% | Clean, controlled environments | | M | 15% | A balanced general-purpose choice | | Q | 25% | Situations with more exposure to damage | | H | 30% | Higher redundancy, when the extra density is acceptable |

Higher correction adds redundancy and can make a symbol denser. A logo, rounded modules, low contrast, glare, or a missing quiet zone can still prevent scanning even at level H. Always test the final design with several current phones.

Static and dynamic QR codes

A static QR code stores its final payload in the symbol. Once printed, the encoded value cannot be edited, but the symbol does not depend on a QR platform staying online. Our bulk QR generator creates static codes in your browser, and you can learn more in Do QR codes expire?.

A dynamic QR code normally stores a redirect URL managed by a service. That service can change the destination and record scans, but availability, features, and retention depend on the provider's terms and service status. For campaign measurement without a third-party redirect, add UTM parameters to a URL and read the results in your own analytics; see our QR code tracking guide.

What can a QR code contain?

The pattern does not decide what an action means; the phone or app interprets the decoded payload. Common choices include:

  • URLs: open a website, product page, map, form, or campaign landing page.
  • Plain text: show notes, identifiers, serial numbers, or instructions. Generate batches with the serial number QR generator or random QR code generator.
  • WiFi credentials: use the WIFI: payload format with the WiFi QR code generator.
  • Contact cards: encode vCard fields with the vCard QR code generator.
  • Actions and deep links: use tel:, sms:, mailto:, or an app-specific URL where the receiving device supports it.

See working examples on the sample QR codes page. For large-format artwork, export SVG QR codes; for common raster workflows, use PNG QR codes.

Are QR codes safe?

A QR code is data, not a security guarantee. A malicious code can lead to a phishing page, request sensitive information, or start an unexpected action. Treat an unfamiliar code like an unfamiliar link: check the destination shown by your phone, confirm the domain, and be cautious of stickers placed over legitimate codes. Generating a code locally does not make the destination it contains trustworthy.

Frequently asked questions

What does QR stand for?

QR stands for Quick Response, referring to the design goal of fast reading in manufacturing.

Who invented the QR code?

Denso Wave developed the QR Code in 1994. Masahiro Hara led the team that created it for tracking parts in vehicle manufacturing. The specification is widely available for use; check Denso Wave's current licensing information for legal details.

Do QR codes need internet to work?

No. A phone can locate and decode a QR code offline. Opening a URL, loading online media, or sending an email requires the relevant network connection.

Can any phone scan a QR code?

Many current iPhone and Android phones can scan standard QR Codes from the built-in camera or a system scanner. Behavior varies by device, software version, and payload, so test the code on the phones your audience uses.

How much data can a QR code hold?

The maximum depends on the mode and error-correction level. A Version 40 symbol can encode up to 4,296 alphanumeric characters or 2,953 bytes in commonly cited maximum-capacity cases. Practical capacity is lower when you need a less dense, reliably printable symbol.