How to Create a QR Code and Test It Before Printing
Making the code takes ten seconds. Making one that still scans on a rainy night, at arm's length, on a curved bottle — that is the guide.
Start with what the code carries
A QR code is a container, and everything about its real-world performance follows from what you put in it. The governing law: more data means a denser code — more, smaller modules packed into the same square — and denser codes are harder for cameras to read at small sizes, at angles and in poor light. So the first craft decision is to shorten the payload. A long URL full of tracking parameters makes a fragile code; the same destination behind a short, clean link (yoursite.com/menu rather than a hundred-character string) makes a bold one. Use our QR Code Generator with the shortest honest destination you have, and let the code stay coarse and confident.
Error correction: buy insurance with density
QR codes carry Reed–Solomon error correction, which lets a code survive damage — a scratch, a sticker's corner, a coffee splash — and still scan. It comes in four levels: L restores about 7% of the code, M about 15%, Q about 25% and H about 30%. The price of higher correction is, again, density. The working choices: for a code that will live on screens or clean indoor paper, M is plenty. For anything printed, handled, outdoors or partly covered by design elements, Q or H is the professional default — H is also the level that tolerates a small logo placed in the code's centre, since the correction is precisely what reconstructs the covered modules. Never pay for H density on a long payload at a tiny size, though: insurance and cargo compete for the same square.
Size, contrast and the quiet zone
Three physical rules decide most failures. Size: the dependable minimum for a printed code is about 2 × 2 cm for near scanning (menus, packaging), scaled up with viewing distance — a poster meant to be scanned from two metres needs a code nearer 15–20 cm; the rule of thumb is a tenth of the intended scanning distance. Contrast: dark modules on a light background, as dark and light as you can make them — black on white remains undefeated. Inverted codes (white on black) scan on many modern phones and fail on enough older ones to be a gamble; brand-coloured codes work only when the contrast stays severe. The quiet zone: the code needs a margin of empty space around it — roughly four modules wide — because scanners locate the code by that silence. Cropping tight against artwork is the most common self-inflicted QR failure in professional print.
The two-minute test that saves the print run
Print one copy, at final size, on the final material if you can. Then test like a stranger: scan it with at least two different phones (an older one if the audience will have them), at the distance and in the lighting where it will actually live — the table tent under restaurant light, the poster across the pavement, the label on a curved bottle (curvature distorts edge modules; sleeves and bottles deserve their own test). Tilt the phone; let a shadow fall on it; scan it quickly, the way people actually do. Then follow the code all the way: does it land exactly where promised, on a page that loads fast and reads well on a phone? A code that scans into a broken or desktop-only page is a failure wearing a success's clothes. Only when the single printed copy survives all of that is it a code — until then it is a picture of one.
One last decision: the destination's future
A printed QR code is permanent in a way its destination may not be: posters outlive campaigns, packaging outlives promotions. Point the code at an address you control and can redirect or update — your own domain, not a temporary link — because the code on ten thousand leaflets will faithfully send people wherever that address leads for years. Generate it on your device (the generator here sends nothing anywhere), print it after testing, and the smallest square in your design will also be the hardest-working.
Beyond links: Wi-Fi, contacts and text
A URL is the commonest payload, not the only one. A Wi-Fi QR code — encoding the network name, password and security type in a standard format — lets guests join a network by pointing a camera, and has become standard in rentals, cafés and offices precisely because it removes the dictated-password ritual (and the password on a wall in plain text). A vCard code turns a poster or business card into a contact saved in one tap. Plain-text codes carry serial numbers, seat details and instructions where no network exists at all. The same laws govern all of them: more payload means more density, so a fat vCard with every field filled needs a bigger print size than a slim one; and a Wi-Fi code deserves one extra test — join your own network with it, on a phone that has never saved the password, before the guests arrive to do it for you.