A small square on a menu opens a website. Another helps you join a Wi-Fi network. A third contains the information needed for a ticketing or payment application.
Although the patterns look like random black-and-white mosaics, they follow a carefully defined structure. A reader knows where to look, how to interpret the pattern, and how to recover some damaged data.
The key distinction is between the information inside the symbol and what an application does after reading it. A QR code can contain an address without containing the website at that address.
The little squares form a digital symbol
Each small square in the grid is called a module. Its light or dark appearance contributes to the symbol’s machine-readable structure.
QR stands for Quick Response. DENSO WAVE introduced the system in 1994, originally addressing industrial identification needs.
Unlike a conventional one-dimensional barcode, the familiar QR format uses a two-dimensional arrangement. Information and supporting structures occupy positions across both the width and height.
However, not every square represents a user-data bit directly. Some modules belong to fixed patterns, and the data region undergoes additional processing.
The large corner squares help readers find the grid
A standard QR code has three prominent square finder patterns near its corners. They help scanning software identify the symbol’s location and orientation.
Additional structures help establish the module spacing and correct the geometric interpretation. Larger versions include alignment patterns at specified positions.
Format information tells the decoder about settings needed to interpret the data, including the error-correction level and masking pattern.
The pale margin around the symbol matters too. Called the quiet zone, it helps separate the code from nearby text or graphics.
DENSO WAVE specifies a four-module quiet zone on each side of a standard QR symbol. Cropping it tightly can make scanning less reliable.
A generator converts the payload into encoded data
The information you want to store is the payload. It might be a URL, a text message, or another supported sequence of data.
Encoding modes allow different kinds of content to be represented efficiently. A sequence containing only digits can be encoded differently from general text.
The generator prepares the data, adds structural information, and calculates error-correction information before arranging the result in the symbol.
It also applies a reversible mask to the data region. Masking helps avoid patterns that would make the symbol harder to interpret. The reader uses the recorded mask information to undo that transformation.
The payload
Text or another data sequence that you want the reader to recover.
A readable structure
Positioning patterns, format information, error correction, and data arrangement.
The final image therefore contains more than the raw message. Its supporting information makes reliable recovery possible.
The camera captures an image; software decodes it
A camera does not understand a website address merely by photographing squares. The decoding software performs the interpretation.
First, it locates the symbol and estimates its orientation and geometry. It then samples the grid to decide which modules are light or dark.
Next, it interprets the format, reverses the mask, reconstructs the encoded information, and attempts any necessary error correction.
Finally, an application receives the decoded result. It may recognize a URL and offer to open it, display plain text, or process another supported format.
| Stage | Main task |
|---|---|
| Detection | Find the symbol within the camera image. |
| Grid interpretation | Determine module positions and light-dark values. |
| Decoding | Recover the encoded payload using the format rules. |
| Application handling | Decide what to display or offer to do with the result. |
Error correction can reconstruct some missing information
QR codes include mathematically generated redundancy using Reed-Solomon error correction. This helps a reader recover data when some codewords are unreadable or incorrect.
Different correction levels provide different recovery capabilities. Higher levels devote more capacity to that protection.
DENSO WAVE’s explanation of error correction makes clear that recovery concerns encoded information, not an unlimited ability to repair any damaged image.
Damage location matters. Obscuring a crucial finder pattern is not equivalent to losing the same visible area elsewhere. Blur or poor contrast can also prevent the grid from being read.
More content can require more modules
Standard QR codes come in versions with different grid sizes. Higher versions provide more modules and can accommodate larger payloads.
DENSO WAVE’s capacity guidance explains that capacity depends on version, character type, and error-correction level.
This is why a long block of text may produce a denser symbol than a short web address.
If both are printed at the same physical width, the denser symbol has smaller modules. The camera and print quality must still resolve those details.
- Payload length matters. More information can require a larger grid.
- Encoding matters. Different character types use capacity differently.
- Error correction matters. Additional redundancy leaves less room for payload.
- Physical presentation matters. A valid encoded symbol can still be difficult to scan if printed poorly.
A QR code can point to information without storing it
A restaurant code often contains a URL, not the complete menu. Your phone reads the address and retrieves the page separately.
This distinction explains so-called dynamic QR services. The printed symbol can contain a stable redirect address. A server changes where that address leads.
The ink does not update itself. The change occurs in the service reached after decoding.
Likewise, encoding is not encryption. An ordinary QR code does not make its payload secret merely because people cannot read the squares unaided.
A code is also not proof that a linked destination is trustworthy. The symbol carries information; it does not certify the organization behind that information.
Frequently asked questions
Does scanning always require the internet?
No. A compatible reader can decode an image locally. Opening a linked website or contacting an online service is a separate operation that may require connectivity.
Can a QR code contain plain text?
Yes. A web address is only one possible payload. The receiving application determines how decoded information is presented or handled.
Do printed QR codes expire by themselves?
The encoded pattern does not have an inherent timer. A linked page, redirect, or service can stop working or impose its own restrictions.
Why can a small logo sometimes cover the center?
Error correction may compensate for some lost information. Success depends on the design and damage pattern; adding a logo is not automatically harmless.
Are the black squares encrypted information?
Not necessarily. Standard QR encoding makes data machine-readable, not automatically confidential. Encryption would be an additional process.