How to Use a QR Code Generator So the Code Actually Scans

X LinkedIn Facebook

Disclaimer: Everything in this workflow runs in your browser. A static QR code stores its data in the pattern itself, so whatever you encode — a Wi-Fi password included — is readable by anyone who can photograph the code.

A cafe near me printed its menu codes in navy blue on black, at about 1.5 cm across, and taped them to a wall that catches the afternoon sun. Half the tables eventually asked for a paper menu. The encoder had done its job; the code was never going to scan.

Generating the image is the easy part. Whether it survives contact with paper, ink and a phone camera depends on four decisions, and the order matters.

The Pre-Print Checklist

Ten items, applied before anything goes to a printer:

  1. Payload under roughly 300 characters, with no tracking parameters.
  2. Links include https://; Wi-Fi and vCard strings escape their reserved characters.
  3. Printed at least 2 × 2 cm (about 0.8 × 0.8 in) for a hand-held scan.
  4. Exported at 512 px for print, 256 px for screen, 160 px only for small web placements.
  5. Dark foreground on a light background, not the reverse.
  6. The four-module white quiet zone is intact on all four sides.
  7. No cropping, no logo pasted over the corner alignment patterns.
  8. Proofed at final size on the final material.
  9. Tested on a second, older phone.
  10. Destination checked end to end, not just the scan.

The rest of this article explains the four that cause the most failures: payload, size, ink and proof.

One: What Goes Inside

A QR code is a container for bytes, not a link format. Four payload types cover nearly every use, and each has syntax that must be exact. The QR code generator ships working examples of the URL, Wi-Fi and vCard forms behind its quick-scenario buttons.

Type What to paste What people get wrong
Website link https://example.com/menu Omitting https://, so some scanners treat the text as a search query
Plain text Table 12 — ask about the set menu Expecting a browser; it opens as text until someone taps it
Wi-Fi login WIFI:T:WPA;S:CafeGuest;P:hello2026;; Missing the closing double semicolon, or not putting a backslash in front of \, ;, ,, : and " inside a value
Contact card BEGIN:VCARD … END:VCARD No VERSION:3.0 line, or line breaks collapsed when pasting from a spreadsheet

Overwrite the loaded example rather than editing around it. A stray semicolon in a Wi-Fi string produces a code that scans perfectly and then fails to connect, which is harder to diagnose than one that will not scan at all.

Length is the other half of the payload decision. At error-correction level M, one code holds about 2,331 bytes: roughly 3,391 alphanumeric characters, or 5,596 digits. The counter above the input box tracks how close you are.

Treat that ceiling as a wall, not a target. A longer payload does not make the code larger; it makes the modules smaller, because the grid has to grow to hold the data. A 40-character URL prints with chunky squares at 2 cm. A 400-character payload at the same size gives squares fine enough that a phone needs a clean, close look.

Shorten before you optimize anything else: strip utm_ parameters, and prefer a short link to inlining everything a form collects.

Two: Size and Medium

The generator exports at 160, 256 or 512 px. Pick by destination, then convert to physical size for print.

Export Good for Notes
160 pxA corner of a web page or an email signatureScreen only; too small to print
256 pxSlides, app screens, PDFs read on screenA sensible default
512 pxAnything that gets printedDownsamples cleanly; enough detail for a printer

For print, ignore pixels and think in centimeters. The minimum for a hand-held scan is 2 × 2 cm (about 0.8 × 0.8 in). A poster read from three meters needs roughly 30 cm (12 in) across, because the working rule of thumb is one unit of code size per ten units of viewing distance.

That rule is why billboard codes are enormous and why a table-tent code at 1.5 cm fails.

Three: Ink, Contrast and the Quiet Zone

Scanners binarize the image before decoding: they decide, pixel by pixel, whether it is dark or light. What matters is the difference between the two.

Colored codes are fine as long as the foreground stays dark and the background stays light.

Four: Proof It Before You Print a Hundred

  1. Your own phone at arm's length. If it hesitates on screen, it will fail on a wall.
  2. A second, older phone. Different cameras and scanner apps disagree about low contrast and small modules.
  3. A printed proof at final size, on the final material. A code that is crisp on a backlit screen can disappear on matte paper under warm indoor light.

Then check the destination. A scanned link should land on the right page without a redirect chain, and a scanned Wi-Fi code should connect without asking the user to pick a network. A camera recognizing the pattern is only half the test.

What You Cannot Change After Printing

The codes generated here are static: the data lives in the pattern. Three consequences follow, and they matter before you send anything to a printer.

Commercial dynamic codes solve the editing problem by encoding a short redirect URL that the vendor controls. You gain analytics and editability; you accept that the code stops working if the vendor does. For a menu, a Wi-Fi sign or a business card, static is usually the better trade.

Frequently Asked Questions

Why does my QR code not scan?

Four physical causes cover almost every case: the printed code is smaller than about 2 by 2 cm, the contrast between foreground and background is too low, the white margin around the code was cropped, or the payload is long enough that the modules are too dense for the print quality.

How much data fits in one QR code?

At error-correction level M, which this generator uses, about 2,331 bytes: roughly 3,391 alphanumeric characters or 5,596 digits. Keep the payload far below that, because a shorter payload produces larger modules that scan from farther away.

Do QR codes expire?

Not the ones made here. A static QR code stores the data itself, so it works without a server and cannot expire. Dynamic codes from commercial services encode a short redirect URL instead, which allows later editing and stops working if the service does.

Can I use a QR code for a Wi-Fi password?

Yes, with the format WIFI:T:WPA;S:NetworkName;P:password;; and a backslash in front of \, ;, ,, : and " inside a value. Anyone who photographs the code gets the password in plain text, so change it before you publish photos of the sign.

Sources and checks: capacity limits follow ISO/IEC 18004:2015, Table 7 (byte, alphanumeric and numeric capacities at error-correction level M). The distance rule is the conventional 1:10 ratio of symbol size to scanning distance, not a specification limit.