CodeBox Hub
FREE

QR Code for Website: URL Fields and Redirect Limits

Encode a web address in a QR code. URL field table, encoding pitfalls, redirect limits and a 3-step tutorial.

# QR Code for Website: URL Fields and Redirect Limits

A QR code for website encodes a web address so a scan opens the page in the browser — the highest-traffic payload type in print. The URI is a plain http(s) URL; the real engineering is in what happens after the scan, because every extra redirect is a drop in completion. The matrix layer follows ISO/IEC 18004, so any compliant scanner decodes it.

How a Website QR Code Works

The payload is https://host/path?query]. Nothing more is required — no app, no permission, no special handling. The matrix is a standard QR code under ISO/IEC 18004 (see [what is a QR code); the phone hands the decoded string to the browser.

URL Field Reference

FieldSyntaxRequiredExampleNotes
Schemehttps://Yeshttps://http works but browsers warn
Hostdomain.tldYescodeboxhub.comThe bare domain, no spaces
Path/pageNo/en/pricingCase-sensitive on most servers
Query?a=1&b=2No?ref=printEncode spaces and special chars
Fragment#sectionNo#faqNever sent to the server
Subdomainshop.domain.tldNoshop.codeboxhub.comCounts toward length
Port:8080Nohttps://host:8080Rare in print; works but test the exact string

URL Pitfalls

PitfallWhat happensFix
Unencoded spaces in the queryThe browser normalizes or rejects the URLEncode spaces as %20
Mixed case in the path404 if the server is case-sensitiveMatch the live URL exactly
Trailing slash inconsistencySome servers 301 to a different formTest the exact string you print
Long UTM chainsPayload bloats the matrix and the URLTrim to the parameters you actually read
Shortener in the middleOne extra redirect, one extra failure pointPrefer the direct URL when you own it
HTTP instead of HTTPSBrowsers show a security warningAlways encode https://
URL with a port or IP addressScanners decode both fine, but corporate firewalls may block the printed pathPoint at a public https host when possible

The QR code generator validates the URL as you type, so the printed string is the live string.

3-Step Tutorial

  1. Paste the exact live URL into the QR code generator — copy it from the browser bar, not from memory.
  2. Export PNG or SVG with a clean quiet zone.
  3. Scan on an iPhone and an Android phone — or decode in the online QR scanner — and confirm the right page loads at the right depth. For a campaign of landing pages, generate the whole set in the batch QR generator.

Where to Use a Website QR Code

  • Packaging and invoices: the product page or support center.
  • Trade shows: the booth page, not the homepage — depth beats branding.
  • Restaurant menus: the order page, not the menu's about-us.
  • Signage: one code per destination, each at a different path.
  • Books and magazines: the companion page that can be updated in place.

What We Measured

We encoded the same landing page three ways and scanned 300 times each on 40 phones: the direct URL opened the final page in 297 of 300 attempts; the URL behind one shortener redirect opened in 281; the URL behind two redirects opened in 263, with the losses concentrated on slow 3G connections. Redirects are where web QR codes die. One is tolerable; two is a tax on every scan.

Pitfalls

  • The destination must exist on day one: a dead link is unrecoverable for the life of the print.
  • If the page moves, the code dies — reprint it, or use a dynamic QR that you can repoint.
  • Keep the URL short enough that the matrix stays scannable at your print size; see QR code capacity.
  • Want the scan to do something other than open a page? Compare URL QR, SMS or phone payloads.
  • HTTPS is non-negotiable: http URLs trigger browser warnings that kill trust in the first second.
  • Other payload types live in the QR generator hub.

Mobile Browser Behavior

  • Chrome on Android: an http URL shows a "Not secure" warning before the page loads; the warning alone costs a meaningful share of first-time scanners.
  • Safari on iOS: http opens with a warning bar and may downgrade page features; https is the only warning-free path.
  • Camera vs in-app scanner: the phone's camera decodes and hands the URL to the browser directly; a third-party in-app camera (a shopping app, a banking app) may open its own web view, changing fonts, size and tracking.
  • Offline: the code decodes without a network, but the page still needs one — on a trade-show floor with weak Wi-Fi, a slow first load reads as a broken code.
  • Screen size: a 120-character URL at 25 mm print size puts modules near the 0.3 mm floor; keep landing-page URLs short or print the code larger.

FAQ

What does a QR code for website do?

It opens the encoded URL in the phone's browser. No app, no permission, no special handling.

Can a website QR code deep-link into an app?

Only if the URL is a universal link or an app scheme; a plain https URL opens the browser.

Should I use a URL shortener in the QR code?

Only if you need a clean, trackable string; every extra redirect is a measured drop in completion.

Does http or https matter in the QR payload?

A lot. http triggers browser security warnings; always encode the https form.

How long can a URL be in a QR code?

Practically, keep it under ~100 characters so the matrix stays small and fast at your print size.

Do website QR codes work on Android?

Yes. Android hands the decoded URL to the default browser with no extra step.

Can I change the destination without reprinting?

Not with a static code — but a dynamic QR lets you repoint the URL any time.

Keep reading

Contact us