What Is a QR Code? How It Works, How to Make One, and What Happens After You Scan

Author:
OwnQR
Technical review:
Not independently reviewed
Updated:
On this page

A QR code is a two-dimensional barcode that stores information in a pattern of dark and light squares. A phone camera can decode that pattern into text—usually a website address, but sometimes Wi-Fi credentials, contact details or a message. The pattern is not an app, and scanning it does not automatically mean a website has loaded.

The practical answer in 30 seconds: To use a QR code, open your phone's camera, point it at the entire code and follow the prompt. To create one, decide what information it should contain, choose whether its URL must be editable later, generate the code, and test the final printed version. A code can stop being useful even when its black-and-white pattern is perfectly readable: the linked website may move, or a redirect service may stop forwarding visitors.

That last distinction is easy to miss. When you print a QR code on packaging, a café menu or an event poster, you are committing to more than a square graphic. You are choosing which parts of the journey you control and which parts depend on another service. This guide starts with the basics, shows what happens inside an actual code, and then follows the decisions that matter before and after printing.

Disclosure: OwnQR sells QR code tools, including paid editable URL codes. This guide explains when a free static code is sufficient and where a hosted service introduces an extra dependency. Product-specific claims are distinguished from the QR code standard itself.

Start with the two things a QR code always has

Every standard QR code has a physical or digital pattern and data encoded inside it. The pattern is the arrangement of modules—the small dark or light squares. The data is whatever those modules represent after decoding. If you encode https://example.com/menu, that exact string is what the scanner retrieves. If you encode Wi-Fi information, the scanner retrieves that information instead.

For a code containing a website URL, two additional stages may follow when the person opens the link: an optional redirect and the final destination page. This gives us a useful, conditional four-stage model:

QR image → encoded URL → optional redirect → destination page.

For a non-URL code, such as Wi-Fi details or a contact card, the journey is different: QR image → decoded data → phone/app action. There is no requirement for a QR-company redirect or a website at all.

QR image: the displayed or printed pattern contains fixed encoded data. The phone decodes the data, normally on the device. Path A, a non-URL payload such as Wi-Fi, contact or text: the phone or an app acts and no website is required. Path B, a URL payload: a URL you own or a provider-hosted short URL. An optional redirect may be controlled by your own website or by a QR provider; whether you can change its target depends on control and plan. The destination page is run by whoever controls that site. A static URL QR does not require a QR-provider redirect; its website may still perform its own redirect.
Figure 1. Two conditional paths after a QR code is decoded: a non-URL payload, or a URL with an optional redirect controlled by your own site or a QR provider.

This distinction will make the rest of the guide much easier. A camera failing to recognize the image is an image problem. A phone decoding the wrong URL is an encoded-data problem. A provider displaying “trial expired” is often a redirect-service problem. A browser reaching a 404 page is a destination problem. They need different fixes.

What information can a QR code contain?

What you want someone to doWhat the QR typically containsWhat happens after decoding
Visit a website, menu or PDFA URLPhone offers to open that URL
Join Wi-FiNetwork name, security type and possibly passwordCompatible phone offers to join
Save a contactvCard-format contact informationCompatible app offers to save contact
Call, email or textA phone number or application-specific link/textPhone offers an appropriate action
Read plain informationTextScanner displays that text

A PDF QR code, for example, usually stores the URL where a PDF is hosted, not the full PDF file. A restaurant menu QR commonly stores the address of the menu page. That matters: if the business controls the address, it may update the menu behind the same printed QR; if it only controls a temporary third-party link, it has another dependency.

How much data can a QR code hold?

At its maximum standard size (Version 40) and the lowest error-correction level (L), a QR code can store up to 7,089 numeric characters, 4,296 alphanumeric characters, 2,953 bytes of binary data, or 1,817 kanji characters, depending on the encoding mode. These are alternative maximum capacities, not quantities that all fit together. A real-world QR usually holds much less: a longer address may require a denser symbol, which can be more difficult to scan when printed small. See DENSO WAVE’s QR Code specification table (opens in new tab).

QR codes began as an industrial tracking solution in 1994. DENSO WAVE developed the format for fast, reliable identification of manufacturing parts, with more data capacity than conventional one-dimensional barcodes. The QR in its name means Quick Response. The standard QR code is specified by ISO/IEC 18004; the ISO catalogue lists the fourth edition, ISO/IEC 18004:2024 (opens in new tab). The catalogue confirms the edition; we are not claiming to have reviewed the complete paid standard.

How do you scan a QR code with your phone?

Before diving into the engineering, here is the everyday workflow:

  1. Open the built-in camera app and place the whole QR code in the frame. You usually do not need to take a photograph.
  2. Hold still until your phone displays a link or other action. On some Pixel models, Camera scan suggestions must be enabled; Google also documents a QR scanner in Quick Settings.
  3. If it is a website link, read the displayed domain before tapping. A suspicious or misspelled address is a reason not to continue.
  4. Open the link, then check the final page. A QR being recognized is not proof that its destination is safe, correct or working.

On an iPhone, open the Camera app in Photo mode, place the QR in the frame, and tap the link near the bottom of the screen. You can also use the Scan Code control in Control Center. See Apple’s official iPhone instructions (opens in new tab). On a Pixel, use the camera or the QR scanner in Quick Settings, following Google’s official Pixel instructions (opens in new tab). Menus and prompt placement vary across devices. If scanning fails, try better lighting, move closer while keeping the whole code visible, clean the lens, and avoid reflections. If you are using a printed code, also check the clear margin around its edges.

It is worth separating decoding from opening a website. With the ordinary built-in camera workflow, recognizing a pattern and decoding its information can happen on the device; opening a URL then involves a network request. That difference explains why some QR codes work with no internet connection and why others can be affected by a website or server outage.

How does a QR code work inside the black-and-white squares?

Now that you know what your phone is trying to retrieve, the design of the pattern makes sense. A QR code has to let a camera find a small square in a busy scene, straighten a tilted image, read data and recover from modest damage. Its structure is designed around those jobs.

Three large corners tell the camera where to look

The three familiar squares are finder patterns. The alternating dark–light–dark bands through their center follow a distinctive 1:1:3:1:1 ratio, which helps scanning software identify the symbol and its orientation. Narrow light separators distinguish the finders from the data around them.

Between those corners run timing patterns, alternating modules that help the decoder find the grid spacing. Larger versions also use alignment patterns, which help account for perspective and distortion. Other reserved areas hold format information such as the error-correction setting and masking pattern. The data and error-correction bytes occupy the rest of the grid.

A real 1,681-module example—not a stock diagram

In an AI-assisted offline audit dated November 2, 2026, we examined a Version 6, error-correction level H QR that encoded a 48-character test URL. A Version 6 symbol has 41 × 41 = 1,681 modules. A script classified each module by role and checked encoding-related fields; a separate decoder based on Apple's Vision framework returned the expected URL. This is a computer-based structure audit, not a test of printed labels or real-world scan success.

Anatomy of an offline-audited Version 6 QR: every one of 1,681 modules colored by its role
Figure 2a. Every module of a real Version 6 QR code, colored by role. 41 × 41 grid, 1,681 modules. Grey border = 4-module quiet zone.
Legend for the module-role illustration
Figure 2b. Legend: number of modules in each role in the Version 6 example (8 modules make one codeword).
Area in this audited symbolModulesWhy it matters
Finder patterns and separators192Locate and orient the symbol
Timing patterns50Establish grid spacing
Alignment pattern25Help handle distortion
Format information30Tell the decoder its settings
Fixed dark module1Reserved structural module
Data modules (60 codewords)480Store the information and padding
Error-correction modules (112 codewords)896Provide recovery redundancy
Remainder bits7Fill the remaining grid cells
Total1,681One specific Version 6 H sample

The module counts are specific to this audited example, not a universal QR layout. There are 40 standard QR versions, from 21 × 21 modules in Version 1 to 177 × 177 in Version 40, increasing by four modules per side. As the encoded content grows, the generator may need a higher version; at the same physical print size, its smaller modules can become harder to distinguish. The DENSO WAVE version guide (opens in new tab) documents how the module count grows by version; the print-size trade-off follows from fitting more modules into the same physical space.

Why damaged QR codes sometimes still scan

A QR code can carry Reed–Solomon error-correction codewords alongside the data. That helps a decoder recover some damaged or unreadable information. The four conventional settings are:

LevelApproximate codeword restoration ratePractical trade-off
L7%More room for data; less recovery capacity
M15%Most frequently selected level (according to DENSO WAVE)
Q25%More recovery margin for challenging conditions
H30%Highest of these four recovery settings; may require a denser/larger symbol

A level-H QR is not guaranteed to survive 30% of its visible area being covered. DENSO WAVE expresses those percentages in codewords, not arbitrary image area. A small mark over a finder can prevent the camera from locating the code, while the same mark over data modules might be recoverable. A logo also consumes part of the code's tolerance for damage. That is why you should test the actual finished design, not rely on a percentage alone. See DENSO WAVE's error-correction explanation (opens in new tab).

Research limit: Our module audit is completed. We have not completed controlled iPhone/Android tests of covered QR codes or measured reliable scan-success percentages across print materials. Until those results exist, this article does not publish a made-up success rate.

The invisible border is part of the design

A QR code needs a clear quiet zone around it. For standard QR codes, DENSO WAVE specifies a margin four modules wide on each side. If a designer crops away the margin or presses the code against a textured background, a visually attractive image may become difficult to recognize. This is one of the simplest print problems to avoid; see the official code-area guidance (opens in new tab).

Static versus dynamic QR codes: who controls the URL after printing?

A printed QR code cannot rewrite itself, so the practical question is who controls the URL after printing. A static URL code encodes the destination directly and has no OwnQR hosting dependency: the encoded text never changes, although you can still update the page at that address if you control the domain. A hosted redirect code encodes a short link that forwards to a destination; depending on the provider and plan, you may be able to change that destination after printing, but the code relies on a hosted redirect that works while the provider runs it. For a stable website you control, encoding the final URL is usually enough, while long-lived print that may need a new destination can justify a managed redirect, provided you check the provider's terms. For the full comparison, see the static-versus-dynamic QR code decision guide.

How to make a QR code you can trust after it is printed

A generator takes the text or URL you choose, encodes it into modules, adds structural patterns and recovery information, and produces an image. That technical process is quick. The harder part is making the right decisions before downloading.

First, define the destination and its lifespan. Are you sharing a temporary promotion, a long-running product manual, a Wi-Fi network or a digital business card? If it is a web URL, decide who will control it in a year. For long-lived print, a stable URL that you own is often more valuable than visual customization.

Next, choose the appropriate content type. A website URL is suitable for a changing menu or PDF hosted online. A Wi-Fi QR shares connection details directly. A vCard QR carries contact information; whether its details can later change depends on whether it embeds them or instead opens an online contact page. Avoid treating different payload types as interchangeable.

Then, choose static or hosted deliberately. Use the comparison above, not a generic “dynamic is always better” claim. If you do not need provider analytics or managed redirection and already control a stable URL, free static may be sufficient.

Finally, generate and export the code. Keep the encoded URL reasonably short, maintain high dark-on-light contrast, preserve the quiet zone and avoid excessive styling. Vector output such as SVG is convenient for scaling in design software; test the final export rather than assuming every printer or workflow handles vectors identically. You can begin with a free static QR code generator if a fixed URL suits the job.

The five-minute print approval checklist

Before ordering a batch of signs, labels or menus, have someone other than the person who made the code run this check:

  1. Decode the final file. Confirm the previewed URL/text matches the approved source exactly.
  2. Open the full journey. Check redirects and the destination content—not merely that the phone recognizes a square.
  3. Test on iPhone and Android. Use the intended camera apps under the conditions your customers will face.
  4. Print at actual size and material where possible. Check margins, contrast, glare, bends and scan distance. Do not rely on a universal “minimum centimeters” rule without a relevant test.
  5. Keep an asset record. Save the final artwork, decoded string, account owner if hosted, destination URL, creation date and next review date.

For an event, repeat the destination test shortly before opening doors. For packaging, test before committing to the print run and schedule periodic link checks afterward. In other words, testing is a maintenance decision as much as a design step.

Why QR codes stop working—and what can actually be fixed

The original pattern has no built-in expiration timer. When a URL QR stops working, diagnose the part of the journey that failed rather than assuming the square image “expired.”

Question 1: does the camera read the symbol? If not, the problem is the printed or on-screen image: check the quiet zone, blur, damage, size and lighting, and try another phone. Question 2: is the decoded payload the URL you intended? If not, the encoded data is wrong: if you own that URL, fix the page or redirect there; otherwise replace the code. Question 3: if a redirect is involved, does it route correctly? If not: for a provider short URL, check the account, plan and terms and edit only if permitted; for your own URL, fix your own redirect rule. Skip this question if no redirect is involved. Question 4: does the final page load? If not, the destination is the problem: restore the page, fix permissions, or redirect on a domain you control. If yes, the journey works end to end. Not every short link is editable.
Figure 3. Diagnosing a URL QR code that stopped working, one part of the journey at a time.
SymptomMost likely issueFirst practical action
Camera will not recognize itPrinted/image patternCheck quiet zone, blur, damage, size and lighting; test another phone
Camera decodes a wrong URLEncoded dataInspect the original string; if fixed wrong URL is outside your control, replace the code
A provider page says plan expiredOptional redirectCheck provider terms/account; restoring or editing may require a qualifying plan
A hosted URL forwards to the wrong pageRedirect recordEdit only if the provider and your permissions allow it
Correct website loads a 404 or login wallDestinationRestore the page, fix permissions or maintain a redirect on a domain you control

A static URL QR with a typo in a domain you do not control generally needs replacement. If you own the encoded domain/path, however, you may be able to repair the destination at that URL or create your own web redirect. A hosted QR may be fixed by changing its provider record—but only if the service is still available and your account/plan permits it.

This is why the answer to whether QR codes expire and how to check a printed code depends on the encoded address, not on how old the printed pattern looks. A separate concern is what happens when a QR service provider shuts down: if you do not control the provider's short-link domain, you generally cannot take over that exact printed URL yourself.

If you already have a code in circulation, first decode the stored address. That tells you whether you can change a QR code's destination after printing or must repair/replace something else.

How to preserve the quiet zone in layout software

For ordinary square QR Code symbols (Model 1/2), preserve the clear border when placing the image in a poster, menu, or packaging layout. DENSO WAVE, the QR Code developer, states that the margin is four modules on every side (opens in new tab). This is a primary developer reference, not a claim that we inspected the full ISO standard. Other symbol types, including Micro QR, may use different margins; check their own specifications.

To calculate a guide in layout software, obtain the symbol version from your QR generator's export information or count the modules across one edge of the dark-and-light pattern, excluding the blank border. DENSO WAVE's version guide (opens in new tab) explains that Version 1 has 21 modules per side and each higher version adds four. Module size = printed pattern width ÷ modules per side. Using DENSO WAVE's four-module figure, the clear margin works out to 4 × module size on each side. For example, a Version 2 pattern has 25 modules per side; at 25 mm wide, its module size is 1 mm and its calculated clear margin is 4 mm on each side. The version and margin references are above; the arithmetic is illustrative.

We suggest checking whether the exported image already includes its quiet zone before adding guides or a keep-out box. Lock the image's aspect ratio when resizing, avoid cropping or masking the pattern or margin, and as a practical precaution keep that margin plain and light rather than overlaying text, logos, or patterned artwork. We also suggest keeping the whole code and margin away from the finished trim edge, confirming bleed and cutting tolerances with the printer, inspecting the final PDF, and scanning a physical proof at intended size to check the decoded destination. These are editorial precautions, not evidence of an OwnQR print experiment or a guarantee of scanning success.

What our redirect software test actually demonstrates

In a local isolated test, OwnQR's redirect Worker code (commit a15dd259) was run with a fake database and no outside network access. The recorded results included 17 passing cases and 62 passing checks: a hosted URL returned an HTTP 302 redirect, an editable record forwarded to a changed destination in test data, and requests—including simulated automated and HEAD requests—were counted. These are observations of code behavior in a controlled test, not proof of current production routing, real-device scan success, live account-deletion behavior or payment processing. The test was performed with AI-assisted engineering tools and has not yet been signed off by a named technical reviewer.

You can follow the same general diagnostic principle without OwnQR: decode the URL, observe the redirect chain if one exists, check the final destination and compare each result with the account's actual capabilities and terms.

What can QR code analytics really measure?

Scan analytics become relevant because hosted redirects see requests to the short URL. But the word scan can suggest more certainty than the technology provides.

A redirect request is not necessarily a human being pointing a camera at a printed code. Link previews, bots or security scanners may request the same URL. A successful redirect also does not prove that the final page finished loading, that a visitor stayed, or that a sale occurred. Think of these as distinct measurement points:

MeasurementWhat it can establishWhat it cannot establish by itself
Redirect requestsActivity reaching the short linkUnique people or completed sales
Website sessionsBrowser traffic on your destinationThat every session came from a physical QR scan
Tracked actions/conversionsActions recorded on your own websiteUniversal causal attribution without a measurement design

If you control the destination, you can use tagged URLs and your own web analytics to measure downstream visits and actions. Google's campaign URL guidance (opens in new tab) explains how tagged links can support reporting; those reports still need appropriate consent, configuration and interpretation.

On OwnQR's current paid editable codes, the interface supports total recorded activity, daily trends, device/operating-system breakdowns and top cities. Free hosted URL codes show a total count. Unique visitors, per-hour reporting, referrer reporting and purchase attribution should not be claimed as supported product features.

Are QR codes free? When would paying make sense?

Generating a pattern can cost nothing. Paying a provider usually buys a service around that pattern: hosted URL records, editing permissions, analytics or management tools. The real question is not “Can I make this square for free?” but “What must keep working while the square remains in the world?”

If your QR contains a URL you own, and you can maintain that URL yourself, a static code can be a durable, inexpensive choice. If the print may outlive a particular landing page and you need an external system to switch destinations, a hosted editable code might be worth paying for. But it adds a vendor dependency, which must be assessed alongside the convenience.

Before buying any hosted QR product, ask: Who owns the short-link domain? Can I change the destination on this plan? What happens if I cancel or my account closes? Can I export my destination list? What do the terms say about service shutdown, refunds and hosting duration? Read the actual terms; labels such as “lifetime” or “one time” do not answer all of those questions.

For current OwnQR prices and terms, consult the pricing page rather than relying on a fixed figure in this evergreen guide.

Can QR codes be dangerous?

A QR code is a way to encode information; it does not make the information trustworthy. Someone can stick a different code over a legitimate one or direct a URL code to an imitation website. A short URL can also hide the final destination from the initial preview. The FBI's QR-code tampering warning (opens in new tab) documents this risk.

Check for stickers or suspicious overlays on public codes, inspect the link preview before opening, and be cautious about entering passwords or payment details after following an unfamiliar QR. For sensitive transactions, go to the business through a known trusted address or app. You generally do not need a third-party scanner app: most modern phones have QR-reading functionality built in.

This safety check fits the same logic as the earlier print checklist. Before trusting a QR code, confirm not only that it decodes, but what information it contains and who controls the next step.

Frequently asked questions

What do the three squares on a QR code mean?

They are finder patterns. Their distinctive geometry helps the scanning software locate the QR symbol and infer orientation. The fourth corner is not simply “missing by mistake”; the pattern layout is intentionally asymmetric.

Can a printed QR code stop working even if the pattern is intact?

Yes. A perfectly readable QR pattern may point to a broken web page or to a hosted redirect that no longer forwards visitors. Decode the URL first, then check any redirect service and the destination separately.

Can a static QR code be changed after printing?

No—you cannot change the address encoded in a printed static QR code without making a new pattern. But if the URL belongs to you, you can usually update its web page or redirect it on your own server without reprinting. If it belongs to another provider, you cannot assume you can take control of that link.

How much data can a QR code hold?

At its maximum size and lowest error-correction level, a standard QR code can hold up to 7,089 digits, 4,296 alphanumeric characters, or 2,953 bytes, depending on the encoding mode. Those are separate technical limits; for a QR that people need to scan from a small printed label, a short URL is usually more practical.

What is the difference between a QR code and a barcode?

A QR code is a two-dimensional barcode: it encodes data across a square grid, while a conventional one-dimensional barcode uses bars along one direction. QR codes also use dedicated finder patterns and can encode more varied kinds of information. So “QR versus barcode” usually means QR versus a traditional one-dimensional barcode.

Can I measure QR scans without a dynamic QR service?

Yes, if the QR links to a website you control: tagged URLs and your site analytics can measure visits and actions, though not necessarily unique physical scans. If it points to a third-party document or page you cannot instrument, your own analytics may not see those visits. A hosted redirect service can count requests to its short URL, but automated requests may be included.

What should I test before printing a QR code?

Test the actual exported artwork and encoded URL, verify all redirects and the destination, check the quiet zone and contrast, make a full-size print proof when possible, and scan it using the intended devices and lighting. Keep the decoded URL and asset version on record for later maintenance.

How this guide was researched and what remains untested

Technical sources: QR symbol history, structure, version range and error correction were checked against DENSO WAVE's official documentation; the standard edition was checked against the ISO catalogue. Phone instructions were checked against manufacturer support material. Security advice draws on the FBI/IC3 notice. Links to the relevant sources appear where the claims are made.

Original engineering evidence, with limits: An AI-assisted offline analysis classified all 1,681 modules in one Version 6 QR on November 2, 2026, while Apple's Vision framework separately decoded the image. We retained the source image, audit script, decoder code, outputs and SHA-256 checksums, and a separate internal QA run reproduced the module count. These files are not currently offered as a public download; this is an internally reproduced computer audit, not an externally peer-reviewed study. A separate isolated redirect-code test passed 17 cases and 62 checks using simulated local data. These checks do not establish live production behavior, commercial service uptime or real-world scanning success rates. No named technical reviewer has yet signed off on this draft.

Research not yet performed: We have not conducted controlled real-device occlusion tests, print-size/distance tests, or a live payment-and-redirect-lifecycle study. Consequently, this guide reports no success rates or performance conclusions from those unperformed tests.

Editorial transparency: This guide was drafted with AI assistance and checked against the public sources and isolated test materials described above. It has not yet been approved by a named human author or technical reviewer. OwnQR has a commercial interest in QR code tools, disclosed at the start of the guide.

Primary references

Go deeper with focused guides on QR code technology, practical workflows, printing, security, and business decisions. Each guide answers a specific question and links to relevant resources.