OxyPages

How To Make A Website QR Code That Works

How To Make A Website QR Code That Works

A website QR code fails when its address changes or it prints too small. What to point it at, why dynamic codes are a trap, and how to print it so it scans.

The OxyPages Team · · 8 min read

Making a QR code takes ten seconds. Paste a link into any generator, download the picture, done.

Making one that still works in a year, scans from two metres away on a sunny morning, and lands people on a page worth landing on takes a little more thought. Most of the codes that fail in the wild weren't badly generated. They point at an address that changed, a subscription that lapsed, or a page that takes eight seconds to load on a phone.

This is about what comes before and after the generator: what a website QR code should point at, why dynamic codes are a trap, the print rules, and counting scans.

The worked example is a farmers' market stall with a chalkboard, and a code that shows what's in season this week.

TL;DR: Encode a short address you control, on a page you can edit, and the printed code never needs replacing. Avoid "dynamic" codes that route through someone else's subscription, because if it lapses every printed copy stops working. Print dark on light, at least 2 cm across and, as a rule of thumb, about a tenth of the scanning distance, with a clear border four modules wide. Point it at a page made for phones, and give that page its own path so your page-view stats count the scans.

What Should Your QR Code Point At?

A QR code should point at a short address you control, on a page you can change. The picture just stores text. Everything that makes it useful or useless lives at the address inside it.

That has two consequences most people learn the hard way.

First, the address has to outlive the print run. If you rename the page, move hosts or drop a domain, the code doesn't break gracefully. It just opens an error page in every hand that scans it.

Second, what people want is the page behind the code. A code that opens your whole homepage, when they wanted today's prices, wastes the scan.

Pick an address like yourname.com/market rather than a long link with tracking tags and IDs stuck on the end. It makes a simpler pattern that scans from further away, and you can say it out loud if a phone won't cooperate.

If you're still choosing between a free subdomain and your own domain, a printed code tips the balance towards owning the domain. The trade-offs are in free subdomain or custom domain, and anything you print for a year or more is the strongest case for buying one.

Static Or Dynamic: The QR Code Trap

Static Or Dynamic: The QR Code Trap - OxyPages

A static code stores your address directly. A dynamic code stores the generator company's short link, which then redirects to your address. Dynamic sounds better, and for most small sites it's the riskier choice.

Static QR codeDynamic QR code
What's inside the pictureYour own addressThe vendor's short link
Change where it goesEdit the page at that addressChange the redirect in the vendor's dashboard
CostFree, if the generator makes a true static codeUsually a monthly subscription
If the vendor closes or you stop payingStill worksRedirect can stop, and every printed copy fails
Scan countsFrom your site's page viewsIn the vendor's dashboard
Who owns itYouYou rent it

Dynamic codes sell one thing: changing where the code goes after it's printed. You can get that for free. Point a static code at a page you own, then change that page. The code never moves, and the content behind it does.

Dynamic codes do earn their keep in one case: a large campaign where you need per-code scan counts by city or device, across hundreds of printed variants. A market stall or a restaurant menu isn't that. If the thing behind the code is a PDF menu or price list, host the PDF at an address that never changes.

Make A Website QR Code That Scans

A website QR code scans reliably when it's dark on light, large enough for the distance, surrounded by a clear margin, and kept simple. Most failures break one of those four, and the last three steps below catch the rest before you print.

  1. Dark modules on a light background. Black on white is safest. Many phone cameras will read an inverted code, light on dark, but not every scanner app does, so don't count on it.
  2. Size for the distance. A common rule of thumb is that the code should be about a tenth of the scanning distance across. Read at arm's length on a flyer, 2 to 3 cm is fine. Read from two metres away, you need about 20 cm.
  3. A quiet zone. The QR standard asks for a clear border four modules wide on every side, a module being one of the little squares. Crop it tight against a photo or a frame and it struggles.
  4. A short address. Fewer characters means fewer, bigger modules at the same print size, which scans faster and from further away.
  5. The right error correction. Higher levels let a damaged code still read, at the cost of a denser pattern.
  6. Matte, not glossy. Laminate and glossy paper reflect light, and a single glare spot across the code stops a scan.
  7. Test on two or three phones before printing hundreds. An old Android and a current iPhone, at the real distance, in the real light.

Error correction comes in four levels. Here's what each one can recover from, according to Denso Wave, the company that invented the format:

LevelRoughly how much damage it survivesUse it for
LAbout 7%Clean indoor prints, screens
MAbout 15%The default, and most flyers
QAbout 25%Outdoor signs, things that get handled
HAbout 30%Codes with a logo in the middle

Denso Wave's explanation of QR code error correction

A logo in the middle is deliberate damage. If you add one, use level H and test it more, not less.

A Farmers' Market Stall With A Chalkboard Sign

A Farmers' Market Stall With A Chalkboard Sign - OxyPages

Here's the whole thing for one stall. A small grower sells vegetables at a Saturday market. Prices and what's available change every week, and the stall has an A-frame chalkboard out front.

They want a code on the board that shows this week's produce and prices, and lets regulars pre-order for next Saturday.

  1. Make one page for phones. A single HTML page with this week's list, prices, and a pre-order form. Headed by the date, so nobody wonders if it's stale.
  2. Give it its own path. /market, not the homepage. Now every visit to that path is almost certainly a scan, which matters later.
  3. Generate a static code for the full path. The OxyPages dashboard makes a code for the site's main address, but this one needs /market on the end. So the grower uses the free QR code generator, which takes any address and adds no watermark. The SVG goes to the printer, because it stays sharp at any size.
  4. Don't draw it in chalk. It's tempting to match the board. A hand-drawn code won't scan, and white on black is the inverted case some apps can't read. Print it black on white instead.
  5. Size it for the queue. People read the board from about two metres, so the code goes on at 20 cm across, on a matte vinyl sticker with a clear white border. Weather and handling call for level Q.
  6. Mount it at chest height. Not down by the pavement where it's in shadow and kicked by bags.
  7. Test it in the market, at 9am. Two phones, from where the queue actually stands, with the sun where it really is.

Every Friday evening the grower edits the page. The chalkboard and the code never change.

The pre-order form needs somewhere to send entries, which a plain static page can't do on its own. A form service such as Formspree or Web3Forms gives the form an address to post to and emails each order on.

How To Count Scans Without A Tracking Service

Count scans as visits to the page the code points at. If that page is reached only from the code, its page views are your scans, and any analytics tool can count them.

That's why the stall's code points at /market and nothing else links there. In the stats, views of /market on a Saturday morning are the scans, and the referrer will usually show as direct, because a camera app doesn't send one.

If you'd rather share one page between a poster and a newsletter, tag each link instead. A UTM tag like ?utm_source=chalkboard shows up in tools that read campaign tags. The trade is a longer address and a denser code, so I'd only do it if a path won't work.

Counting views of one path doesn't add a cookie. Whether you need a banner still depends on which tool does the counting and where your visitors are.

One limit, said plainly: OxyPages counts page views per page, not individual scans per printed copy. If you're running hundreds of codes in one campaign and need per-copy numbers by location, that's the case where a dynamic QR service earns its fee.

What To Do Next

Decide the address first, then make the page, and generate the code last. In that order, the code is the easiest part.

Then print one, stick it up where it'll live, and scan it from where people will actually stand. If two phones read it first time in real light, print the rest.

If the page the code should open doesn't exist yet, put a phone-friendly page online in about a minute and point your website QR code at that address.

FAQ

Do QR Codes Expire?

A static QR code never expires, because it's just your address stored as a pattern. It stops working only if that address stops working. Dynamic codes can stop when the vendor's redirect is switched off, usually because a subscription or trial ended.

Can I Change Where A QR Code Goes After Printing?

Not the code itself, but you can change the page it opens. Point a static code at a page you control and edit that page whenever you like. That gives you everything a paid dynamic code offers, without the subscription.

How Big Should A Printed QR Code Be?

At least 2 cm across for something held in the hand, and, as a rule of thumb, about a tenth of the scanning distance beyond that, so a poster read from three metres wants a code around 30 cm wide. Always leave the clear border around it.

Why Won't My QR Code Scan?

The usual causes are low contrast or inverted colours, a code printed too small for the distance, a border cropped too tight, or glare from a glossy finish. Test your website QR code with two different phones in the real light before you print in bulk.

Try It Now

Still Here? Drop It In.

The whole pitch fits in one sentence: your HTML, on a link, in seconds.

Drag and drop your HTML files, a folder, a ZIP, your app's build folder, a PDF, an image or an MP3

or ·

No account needed. Your unclaimed website stays live for 30 minutes on a free subdomain. Claim it to your account to keep it permanently.

  • No Account Needed
  • Free SSL
  • 30-Minute Unclaimed Link, Claim To Keep It