How to test a QR Code before printing
Test the finished file, then a printed sample, on at least two different phones, at the real distance, in the real lighting, and confirm each scan opens the correct page. A code that scans once on your own screen has not been tested. Print proofs at the final size on the real material before you order the run.
A QR Code that cannot be scanned cannot be corrected after printing: if the design or link is wrong, you reprint. Testing takes a few minutes and costs little compared with that. This article gives you a repeatable protocol and a simple log so the result is evidence instead of a feeling.
What we have and have not tested. Our own tests of StyloQR output used a software decoder (OpenCV's QR detector) on images we degraded with blur and noise. We did not run controlled tests on physical phones, printers or paper. The protocol below is a method for you to apply with your own devices and materials, not a set of results we measured on hardware.
Why testing on your own screen is not enough
A scan on your monitor shows that the data is correct. It does not show that the code survives printing. Print and real use add things a screen does not:
- Ink and paper: dots spread, edges soften, coated stock reflects light.
- Size: a printed module can be much smaller than the on-screen one. See QR Code size for print.
- Distance and angle: people scan from a hand's reach or from across a room.
- Light: glare, shadows, dim restaurants, direct sun.
- Devices: cameras and scanning software differ between models and OS versions.
A static QR Code contains its data directly, so a mistake in the link or text is permanent once printed (see static vs dynamic). That is the strongest argument for testing the content as well as the picture.
What you need
- The final file, exactly as it will go to the printer.
- Two or more phones, ideally different brands or operating systems, and one older or lower-end device if you can borrow one. A tablet or laptop webcam also counts.
- A printer and, when possible, the actual material (or an offcut or sample from your print shop).
- A tape measure and a note of the intended scanning distance.
- A way to record results: the log table at the end of this page works.
Step 1: Test the content
Before looking at the image, decide what the code should do, then check it does that.
- Scan the file on screen and read the full result (most camera apps show it before opening).
- Compare the result with your source, character by character for links.
- Open the link on a phone using mobile data, not just your office Wi-Fi, to catch pages that only work on a private network.
- Check the destination renders properly on a small screen and is not behind a login the audience does not have.
- For a Wi-Fi code, confirm the phone joins the network. For a contact, confirm the fields saved correctly. For a calendar entry, check the date, time and time zone.
If you generate many codes from a list, scan a sample from the start, middle and end, and check that each opens its own row's destination (see bulk QR Codes from a CSV).
Step 2: Test the image on screen
Scan the file at different on-screen sizes and from a few angles. Zoom the file out until it is about the size you plan to print, hold the phone at the intended distance and scan. If the screen is bright and glossy, glare may cause failures that will not apply to paper; note them, but do not treat them as proof of a print problem.
Step 3: Test with more than one phone
Cameras differ in lens, focus speed, sensor and software. Operating system versions differ in how they detect QR Codes, and some devices need an app or a camera setting to scan. Because of this, a pass on one phone is weak evidence.
- Use the built-in camera app on each phone, since that is how most people will scan.
- Also try a second scanning route where one exists (for example, a scanner built into another app). Record which failed.
- Include older or cheaper devices if your audience may use them: slower autofocus is a real risk for small codes.
- If you or a colleague wear glasses or use accessibility features, try scanning in the way those users would.
When a code scans on one phone but struggles on another, treat that as a warning. It is likely marginal, and a different phone, light or print run could push it over.
Step 4: Test distance, angle and lighting
Record the real conditions for your use, then deliberately stress them slightly beyond that.
| Variable | How to test | What failing suggests |
|---|---|---|
| Distance | Scan at the intended distance, then about 25% farther and closer | Modules too small: enlarge or shorten the link |
| Angle | Scan from about 30 degrees off to each side and from below | Code too small or placement poor |
| Rotation | Rotate the phone and the page | Rarely a problem; a failure here suggests damage or a finder pattern issue |
| Dim light | Scan in a dim room | Low contrast or slow focus: raise contrast, increase size |
| Bright or direct light | Scan near a window or under a strong lamp | Glare: matte finish, move the code, tilt the sign |
| Shadow | Cast your hand or the phone's shadow across the code | Marginal contrast |
| Movement | Scan while moving slightly, as someone in a queue would | Needs larger modules or higher contrast |
Use a tape measure for distance. People tend to guess poorly, and a poster viewed from 2 m is a very different test from one held at 30 cm.
Step 5: Test contrast and color
Scanners must separate dark modules from the light background. Dark on light with a big brightness gap is safest; pale dots on a white background, or colors with similar brightness, fail quickly. Our software tests found that very low-contrast pairs (such as medium gray, light gray or pale yellow on white) were not read under blur and noise, while black or dark navy on white were. That is a software result, but it matches the guidance to prioritize brightness difference over hue; see QR Code colors and contrast.
Practical checks:
- Print a copy in grayscale. If the code is hard to see in grayscale, it will be hard for a camera.
- Take a low-resolution photo of the screen or print and check it by eye.
- Do not invert the colors (light dots on dark). Some scanners cannot read inverted codes; test it if you must use it.
- If your design uses a gradient, check the lightest part against the background.
Step 6: Test the quiet zone and surroundings
Look at the margin around the code on the real layout, not on the generator preview. DENSO WAVE specifies four modules of blank margin on all sides. Check that:
- no text, border, photograph or pattern touches or enters that margin;
- the code is not trimmed by the page edge, bleed or a die-cut line;
- the code does not sit over a fold, staple or seam;
- on packaging, the code does not wrap around a curve or corner.
Step 7: Test different print sizes
When you are unsure of the right size, do not guess: print the same code at three sizes, for example the planned size, one step smaller and one step larger, on the same stock. Scan each from the real distance. The smallest size that scans reliably on every phone is your floor; choose a size comfortably above it, not at it. Our size guide explains how to compute module size so that you can compare sizes sensibly. A code with a longer link is denser, so test at the size for that link, not for a different one.
Step 8: Test a printed sample
Printing the proof is the step that most often reveals problems.
- Print at 100% scale (not “fit to page”), on the actual stock or a close match.
- If you use a print shop, ask for a physical proof or a short test run with the same settings. A PDF proof on a screen does not test ink or material.
- Scan the printed sample with every phone from your list, at the real distance and in the real light.
- For curved, glossy or textured items, test on the real object or a sample of it.
- Scan a photocopy or a worn copy for a rough sense of how it copes with damage, if wear is likely (for example, stickers on equipment).
If the file is a PNG, check it was not scaled up: pixelated or blurred edges at the printer are a common cause of failures. See PNG vs SVG vs PDF.
Common failures and what to do
| What you see | Likely cause | Fix |
|---|---|---|
| Scans on one phone only | Marginal size or contrast | Enlarge, shorten the link, increase contrast |
| Scans on screen, not on paper | Modules too small, ink spread, soft PNG | Larger print, vector file, matte stock |
| Fails only near a window | Glare on glossy material | Matte finish, change position |
| Fails only far away | Modules too small for the distance | Larger code or shorter link |
| Fails with a logo, scans without | Logo uses error correction margin; denser grid | Smaller logo, shorter link or no logo |
| Scans but opens the wrong page | Wrong link, spreadsheet row error | Regenerate and retest; nothing can be edited after printing |
| Scans slowly | Dense code, low contrast, poor light | Simplify and enlarge |
The full diagnosis, in the order we would try things, is in QR Code not scanning. For logo-related failures see adding a logo without breaking scans.
A repeatable test protocol
Use this every time, for every print job. It takes about fifteen minutes for a simple case.
- Write down the expected destination and the intended scanning distance.
- Generate the code. In StyloQR, the free web generator shows a contrast warning as you choose colors, and exports PNG or SVG.
- Scan the file on screen on two phones. Compare the result to the expected destination.
- Open the link on mobile data.
- Print a proof at 100% on the real stock (three sizes if size is uncertain).
- Scan each proof with every phone at the intended distance, then at roughly 25% farther, and from an angle.
- Scan in the real lighting and under glare, if the code will be near windows or lights.
- Record every result in the log. Any failure is a result, not an accident; fix the cause and run the failing tests again.
- Approve only when every phone passes at the intended distance on the printed proof.
- Keep the approved proof. Compare it with the first copies from the full print run.
Test log
| Phone / app | Medium | Size | Distance | Light | Result | Opens correct page? |
|---|---|---|---|---|---|---|
| Phone A, camera app | Screen | - | 30 cm | Office | Pass / fail | Yes / no |
| Phone B, camera app | Proof | 3 cm | 60 cm | Window | Pass / fail | Yes / no |
Two example rows are shown; add a row for every combination you actually test. Over several jobs you will learn the margins that your printer and stock require.
What testing cannot cover
Even a thorough test samples only the phones and conditions you tried. It cannot guarantee scanning on every device, every print run or after wear. Leave margin: a larger code, a shorter link, strong contrast. Add a short readable URL near the code as a fallback. And because StyloQR makes static codes, the test must also confirm the content is final, as there is no way to redirect or edit it after printing.
Conclusion
Treat testing as part of the print job, not an extra. Check the content, then scan a printed proof on more than one phone at the real distance and in real light, and keep the log. If anything fails, fix the cause and rerun that test rather than hoping it works the next time.
Frequently asked questions
How many phones should I test a QR Code on?
At least two, preferably different brands or operating systems, plus an older or lower-end device if your audience may use one. One passing phone is weak evidence, because cameras and scanning software differ.
Do I need to test a printed copy or is the screen enough?
Test a printed copy. A screen scan confirms the data, but printing changes module size, edge sharpness, contrast and glare. Print the proof at 100% scale on the real material.
How far away should I test a QR Code from?
From the real scanning distance, measured with a tape measure, then about 25% farther as a safety margin. People scan posters, table tents and cards at very different distances.
What if a QR Code scans on some phones but not others?
Treat it as marginal. Make the code larger, shorten the link, raise contrast, remove or shrink a logo, and test again. Do not print until every test phone passes.
Can I test a QR Code with a free tool?
Yes. Any phone camera works, and the StyloQR Chrome extension includes a webcam reader (it uses Chrome's BarcodeDetector and turns on the camera only when you click Activate camera). A webcam test is useful, but not a replacement for scanning a printed proof on phones.
Have you tested StyloQR codes on real phones?
Not in controlled tests. Our published results come from a software decoder on degraded images. The protocol on this page is designed for you to run on your own devices and materials.
References
- DENSO WAVE, Point for determining the code area: a four-module-wide margin (quiet zone) on all sides of the code; symbol size is the number of modules times the module size.
- ISO/IEC, ISO/IEC 18004:2024: the international QR Code symbology specification, which covers the symbol, encoding, error correction, reference decoding and quality requirements.
Try StyloQR free
Install the Chrome extension. Single QR Codes are free; Pro is a one-time $9.90 and adds batches, animation, history, and gradients.
Add to Chrome — it's free