A QR code that scans perfectly on a screen can fail on paper. Checking size, margin, color and the paper itself before you print prevents most of these problems.
Decide where it will live first
Before you generate anything, decide where the code will sit, who will scan it and from what distance. A business card or flyer is scanned at arm's length, while a wall poster or a shop window is scanned from several steps away, so the same code needs very different sizes in each case.
Think about the scanner's situation too. Are they walking past, or standing still? Is the light dim? Writing these three answers down makes every later decision easier, because each one maps to a concrete requirement.
Close-up cards and flyers: start around 2 cm per side and test
Wall posters and windows: the farther the viewer, the bigger the code; a rough rule is about one tenth of the scanning distance
Moving or busy places such as buses and signs: as large as possible, with very short content
Size, quiet zone and contrast
A QR code is a grid of small squares called modules. If a single module is printed too small, a phone camera cannot tell it from its neighbors. The more data you encode, the more modules there are and the smaller each one becomes, so the easiest improvement is a shorter address. In the QR Code Generator on this site you can shorten the content and watch how the grid becomes simpler.
The blank border around the code is part of the specification, not decoration. If text, lines or pictures touch the edge, scanning becomes unreliable, so leave a clear margin about four modules wide on every side. Contrast matters just as much: dark modules on a light background is the safest combination.
Margin: at least four modules of empty space on all sides
Color: dark modules on a light background; avoid pale modules
Inverted codes (light on dark) fail in some apps, so use them only after testing
Over a photograph, place a plain white panel behind the code
Paper and printing method
Glossy coated paper reflects light and can blind the camera. Matte or satin paper is safer, and matte finish is also better for vinyl stickers. On curved surfaces such as cups and bottles the code distorts, so place it on a flat area or make it larger.
The file format matters as well. Give the print shop a vector file such as SVG, or a high resolution image, so the edges stay sharp at any size. Stretching a small image blurs the corners and makes the code harder to read. If you are printing many stickers at once, the QR Code Labels tool can lay the codes out to match a label sheet.
Send a vector file (SVG) or a high resolution PNG to the printer
Prefer matte or satin stock; test any strong gloss finish first
Avoid curved areas, fold lines and holes
Never overlay light text on top of dark modules
Test print and finishing touches
Before printing hundreds of copies, print one on the same paper with the same printer. Do not rely on a single phone: scan with an iPhone, an Android phone and an older device if you can. Try it at the real distance and also in dim light.
Finally, add one short line of text beside the code, such as scan to see the menu. Telling people what they will get makes them more willing to scan. After printing, compare the destination of the final code with the one you intended, just to be safe.
Test print: one copy, same paper, same printer
Scan on two or three different phones, using the built-in camera, not only a special app
Add a one line caption and a contact method
Archive the final file with a date so reprints match
A pocket checklist for failures
When a printed code will not scan, narrow down the cause one step at a time. The most common culprits are a code that is too small, too little margin, weak contrast and reflective paper. Change one thing at a time and scan again, and you will learn which one was the problem.
Another frequent failure is content that is too long. If a long address made the grid dense, shorten the address or lower the error correction level to reduce the number of modules. If that still fails, making the code larger is the surest remedy.
Not scanning: check size, margin, contrast, then glare
Change one thing at a time and retest
Shorten the address, and enlarge if needed
Retest under the same conditions as your first test