Guide · Create and share

QR codes for short links

A poster, a menu, a conference badge: a QR code is how paper carries a web address. This guide covers what the code encodes, why the short form is the right one to print, and what changes once it is printed.

What the code encodes

The QR code on a result page encodes the short address, nothing else: the domain and the code. Every camera that reads it lands on the short link, which is the same address the human readers get. Encoding the long destination instead would print a code that bypasses the intermediate page — the page that shows a visitor where they go before the browser follows it — so the short form is the one the code carries.

Why print the short form

  • The code stays small and scans from across a room; a long destination makes a denser grid that needs a close-up.
  • The destination can be corrected without reprinting: the short address is permanent, and a link whose target changes is corrected at the service, not on the poster.
  • An expired link is expired for the QR and the text alike; the printed address never starts pointing somewhere new.

Read the code like a reader

A QR code is an opaque address: a camera opens whatever the pattern says. Safe Browsing's own guidance treats unvetted destinations as the risk to check before a click — and before a print run. Scan the code yourself and read the intermediate page: the full address is printed there in plain text, which is the same courtesy the print version of the link offers a reader who checks the words (WCAG 2.2 asks a link's purpose to be clear from its context; on paper, the words beside the code are that context).

Questions

What does the QR code encode?

The short address, and nothing else. The camera lands on the same intermediate page a reader who types the address gets.

Can I download the QR code?

Yes. The result page offers a download; the same code serves at the short address plus `/qr.svg`.

Does the QR code stop working when the link expires?

Yes. The code opens the link; a link past its expiry shows its expiry page. The printed pattern does not change.

Can I get a QR code for a link I made before?

Yes. Every short link's page answers at `…/qr.svg`, whatever its age.

Sources

The documents this guide's statements rest on. Each link opens in a new page.

  1. Google Safe Browsing
  2. WCAG 2.2: Link Purpose (In Context)
  3. RFC 3986: Uniform Resource Identifier (URI): Generic Syntax