Skip to content
zspace tools

5 min read

How to Create a QR Code for Your Website

A QR code takes seconds to make and is permanent once printed. Here is how to create one for your website that scans first time, every time.

To create a QR code for your website, you only need the page's URL and a generator — the code itself takes seconds. The part that deserves care is everything around it: choosing the right URL, sizing the code for where it will be printed, keeping enough contrast to scan, and testing before anything goes to the printer. Once a static code is on a flyer or a shop window, it can't be changed, so it pays to get it right the first time.

Free toolQR Code GeneratorCreate free, permanent QR codes for links, text, email, phone numbers and Wi-Fi, with custom colors and PNG or SVG download.

Static vs. dynamic QR codes

Before you make a QR code, it helps to know which kind you're making.

Static QR codeDynamic QR code
What it containsYour URL or data, directly in the patternA short redirect link controlled by a service
Can you change the destination later?NoYes
Scan countsNot built in (use analytics on your site)Usually provided by the service
Expires?NeverStops working if the service or subscription ends
CostFree to generateOften a subscription

The ZSpace QR Code Generator creates static codes only. That's a deliberate choice: a static code has no middleman, so it will keep working for as long as your website does. The trade-off is that you can't edit it after printing. If you might need to change the destination, point the code at a stable URL on your own site — such as example.com/menu/ — and update that page, or set up a redirect on your own server.

How to create a QR code for your website

  1. Choose the URL type. Open the QR Code Generator and select URL.
  2. Paste the full address, including https://. Copy it from your browser's address bar to avoid typos.
  3. Style it. Set foreground and background colors, and optionally add a logo in the center. The tool warns you if the contrast is too low to scan reliably.
  4. Pick error correction. M is a sensible default. Adding a logo automatically raises it to H.
  5. Test it. Scan the live preview with your phone's camera and make sure it opens the right page.
  6. Download. Choose PNG (256 to 2,048 px) for screens and documents, or SVG for print.

Everything is generated in your browser. The URLs and any Wi-Fi passwords you enter are not sent to a server.

Choose the URL carefully

Because a static code is permanent, the URL is the most important decision you'll make.

  • Use HTTPS. Modern browsers warn on insecure pages, and that's a poor first impression after someone has made the effort to scan.
  • Link to a specific, lasting page, not a temporary campaign URL you may delete next month.
  • Make sure the page works on mobile. Almost everyone scanning a QR code is on a phone.
  • Keep it short where you can. Longer URLs need more modules (the small squares), producing a denser code that is harder to scan at small sizes.

Tracking scans with a static code

Static codes don't count scans themselves, but your website analytics can. Add UTM parameters to the URL so visits from the code appear as their own source:

A URL tagged for tracking
`https://example.com/menu/?utm_source=qr&utm_medium=print&utm_campaign=table-card` — visits from this code will show up in most analytics tools under the source “qr” and the campaign “table-card”. The trade-off is a longer URL and a denser code, so test at your intended print size.

Size, contrast and placement

Print size

A widely used rule of thumb is that a QR code should be at least about 2 × 2 cm (roughly 0.8 inches) for close-range scanning, and that its width should be around one-tenth of the scanning distance. These are guidelines, not standards — denser codes need more room — so always test a printed proof.

Where it's usedTypical scan distanceSuggested minimum width
Business card, product label10–20 cm2–2.5 cm
Flyer, menu, table card20–40 cm3–4 cm
Poster on a wall1–2 m10–20 cm
Shop window or banner3 m or more30 cm or more

Contrast and colors

  • Dark code on a light background is the safest choice. Inverted codes (light on dark) aren't read by every scanner app.
  • Keep strong contrast. Brand colors are fine if the foreground is clearly darker than the background. Pale yellow on white will fail.
  • Avoid busy backgrounds. Don't place the code over a photo or pattern.

The quiet zone

QR codes need a clear margin around them, called the quiet zone. The QR specification calls for four modules of empty space on every side. Designers often crop this away to save room, and scanning suffers as a result. Leave the margin in place and don't let text or graphics crowd it.

QR codes include error correction: redundant data that lets the code be read even when part of it is damaged or covered. There are four levels, each able to recover roughly this share of the code:

LevelRecovery capacityUse it when
LAbout 7%Clean digital display, short content
MAbout 15%General use — a good default
QAbout 25%Printed codes that may get scuffed
HAbout 30%Codes with a logo in the center

A logo works by deliberately covering part of the code and relying on error correction to fill the gap. That's why the generator switches to H when you add one. Keep the logo small and centered, and remember that higher correction also makes the code denser. Test with more than one phone before printing.

Beyond URLs: Wi-Fi, email and phone

The same generator can encode other content types using standard payload formats that phone cameras recognize:

TypePayload formatWhat happens on scan
Wi-FiWIFI:T:WPA;S:MyNetwork;P:secret;;Phone offers to join the network
Emailmailto:hello@example.com?subject=HelloOpens a new email
Phonetel:+15551234567Offers to call the number

In the Wi-Fi format, T is the security type, S is the network name (SSID) and P is the password. If you ever write the payload by hand, characters such as ;, ,, : and \ inside the network name or password need a backslash before them. Keep in mind that anyone who scans a Wi-Fi code can read the password, so display it only where you'd share the password anyway — a guest network is a good fit. A strong random password is easy to share this way, since nobody needs to type it.

Test before you print

  1. Scan the on-screen preview with both an iPhone and an Android phone if you can.
  2. Print a proof at the actual size, on the actual paper or material.
  3. Scan the proof from the distance people will really stand, in the lighting it will really have.
  4. Check that the page loads quickly and looks right on mobile.
  5. Only then send the final file to print — SVG if your printer or design software accepts it.

Frequently asked questions

Paste your page's URL into a free static QR code generator, such as the ZSpace QR Code Generator, then download the code as PNG or SVG. Static codes have no subscription and never expire.

Static QR codes never expire, because the URL is stored in the pattern itself. Dynamic codes can stop working if the redirect service or subscription behind them ends.

Not with a static code. Instead, point it at a stable page on your own site and update that page, or set up a redirect on your own server.

A common rule of thumb is at least about 2 × 2 cm for close scanning, with the width around one-tenth of the scanning distance. Always test a printed proof at the real size.

Use SVG for print, because it scales to any size without losing sharpness. Use PNG for websites, documents and social posts.

Tools from this guide