Guides

How to Make a QR Code for a Link That Scans Every Time

To make a QR code for a link, all you need is the full URL and a generator: paste it in, download the image, and test it with your phone before you print it. Here are the steps, plus fixes for the mistakes that make a QR code fail to scan: size, contrast, margin, and a URL that's too long.

The tool for this guide

QR code generator

It runs inside your browser: nothing you enter leaves this page.

Open QR code generator

How to make a QR code for a link, step by step

  1. Copy the full URL from your browser's address bar, including https://. If you type just yoursite.com/menu, some scanners treat it as plain text instead of a link, so people see a string of text instead of an option to open the page.
  2. Open the QR code generator. It's free, runs in your browser, and there's nothing to install.
  3. Paste the URL into the link field.
  4. Download the image.
  5. Scan it with at least two different phones, ideally an iPhone and an Android, using the built-in camera. Confirm it opens exactly the page you want, not the homepage or an outdated version.

That gives you a working QR code. What usually goes wrong isn't the generation. It's what happens next: the size you print it at, the background it sits on, and how long the URL is.

Why a QR code won't scan (and how to fix it)

The URL is too long

Every extra character adds more squares (called modules). A URL with tracking parameters, session IDs, or encoded text produces a very dense QR code with tiny modules that a camera can't tell apart, especially when it's printed small.

Fix: use the shortest URL that works. Anything after the ? can usually be removed, unless it's exactly what you want to track. Go with a clean path like https://yoursite.com/menu instead of the huge address you copied after clicking through several pages.

Low contrast or inverted colors

Scanners look for dark modules on a light background. Light gray on white, yellow on white, or a gradient can fail. A light code on a dark background (inverted) is read by some cameras, but not all.

Fix: black or a very dark color on white or a very light background. If you want to use your brand colors, make sure the dark shade is really dark, and test it before printing.

You cropped off the white margin

A QR code needs an empty border around it, known as the quiet zone. The spec calls for a margin equal to four modules. When you crop the image tight so it "looks better," or place it right next to text or another image, the camera can't tell where the code starts.

Fix: always leave a clear margin around it, both in the image file and in the final layout (menu, flyer, label).

It's printed too small

This is the most common mistake on business cards and labels. The rule of thumb: the QR code should be at least one-tenth of the distance it will be scanned from, and never less than about 0.8 inches (2 cm) per side. There's a size table below.

You put a logo on top of it

QR codes have built-in error correction, so they can still be read even when part of the code is missing. There are four levels (L, M, Q, and H) that recover roughly 7%, 15%, 25%, and 30% of the code. That's what allows a small logo in the center, but if the logo is large or the code uses a low level, it stops working.

Fix: if you don't need the logo, skip it. If you do add one, keep it small, centered, and clear of the three large squares in the corners. Then test the result.

The image is blurry or pixelated

If you download a small QR code and stretch it in Word or a design app, the edges blur and the camera hesitates. The same happens if you save it as a heavily compressed JPG: smudges appear around the modules.

Fix: generate the image at the size you'll use it, or larger, and save it as PNG (or a vector format, if available) instead of JPG.

The URL has spaces, accents, or special characters

Your browser shows yoursite.com/menú del día just fine, but under the hood that address has to be encoded. Some QR scanners open it incorrectly or cut it off at the first space.

Fix: encode the URL before generating the QR code with the URL encoder, or better yet, use a path with no spaces or accents (/daily-menu).

The link has a typo, or the page moved

The QR code stores the URL exactly as given. If there's a typo, or if the page was moved or deleted, the code scans fine but leads to an error page.

Fix: open the link in your browser before you generate the QR code. If you know the content will change, use a stable address (for example /menu instead of /menu-october) and update what's on that page.

What size should you print a QR code?

Start with the one-tenth-of-the-distance rule. If the URL is long and the code comes out very dense, make it a bit bigger.

Where it goes Approximate scanning distance Approximate minimum size
Business card, product label 6–8 in (15–20 cm) 0.8 in (2 cm)
Menu, flyer, letter-size page 12 in (30 cm) 1.2 in (3 cm)
Table or counter sign 3 ft (1 m) 4 in (10 cm)
Wall poster 6.5 ft (2 m) 8 in (20 cm)
Banner or storefront window 16 ft (5 m) 20 in (50 cm)

Before you send hundreds of copies to print, print a test at actual size and scan it from the distance where people will really be standing.

Do QR codes expire?

It depends on the type:

  • Static QR code: the URL is stored inside the code itself. It doesn't expire: it works as long as the page it points to still exists. Because it's generated in your browser, without going through a server, the code contains your URL directly.
  • Dynamic QR code: the code points to an intermediate address run by a service, which then redirects to your page. It lets you change the destination after printing, but if that service shuts down or you cancel your subscription, every QR code you printed stops working.

Recommendation: for printed materials, use a static QR code that points to a stable URL on your own site. If you need to change the content, change the page, not the QR code.

How to track how many people scan your QR code

A static QR code doesn't count scans on its own. The simple way to measure it is to add UTM parameters to the URL, so your analytics tool can identify visits that came from the QR code. For example:

https://yoursite.com/menu?utm_source=qr&utm_medium=print&utm_campaign=table-menu

You can build that link without mistakes with the UTM link builder and then paste it into the QR generator. One caveat: every parameter makes the URL longer and the code denser, so keep the values short and print a little larger to compensate.

Why generate it without uploading anything

A URL can be more private than it looks: links to shared documents, internal forms, folders with link-based access, or addresses with an access code built in. On Utiliobox, the QR code is generated on your device, so the URL isn't sent to any server.

Want your guests to connect to your Wi-Fi? That's a different type of QR code, with its own set of errors. Here's how to get it right: Wi-Fi QR code not working.

Checklist before you print

  • Full URL, starting with https://, tested in your browser.
  • As short as possible, with no unnecessary parameters or spaces.
  • Dark modules on a light background.
  • White margin all around, not cropped tight.
  • Size matched to the scanning distance (at least about 0.8 in / 2 cm).
  • No logo, or a small one that doesn't cover the corners.
  • Sharp image (PNG or vector, not a stretched JPG).
  • Tested with two different phones, using a test print at actual size.

Frequently asked questions

Can I change the link after I print the QR code?

Not with a static QR code: the URL is built into the code. The fix is to point the QR code at a page of your own that you can update whenever you want, rather than at a file or a temporary promotion.

Does a QR code for a link expire?

A static QR code doesn't expire. It only stops working if the page it points to disappears or changes address.

Do I need an app to scan a QR code?

On most current phones, you just open the camera and point it at the code. Still, test your QR code on at least one iPhone and one Android.

Can I make a colored QR code?

Yes, as long as there's strong contrast: dark modules on a light background. Avoid light colors, gradients, and inverted codes (light on dark), because some cameras can't read them.

What's the minimum size for a QR code?

As a rule of thumb, about 0.8 inches (2 cm) per side for close-up scanning, and in general one-tenth of the distance it will be scanned from.

Make your QR code now

Paste your link into the Utiliobox QR code generator and download it in seconds. It's free, runs in your browser, and uploads nothing to any server.

The tool for this guide

QR code generator

It runs inside your browser: nothing you enter leaves this page.

Open QR code generator

More guides