How to make QR codes that scan every time
By the Filebird team · Updated October 18, 2026 · 7 min read
A QR code that works on your monitor can fail completely on a printed flyer. Phones struggle with codes that are too small, too faint, cropped too tightly, or stuck on a curved or glossy surface. None of these problems are mysterious, and almost all of them can be avoided before the code is printed.
This guide explains the factors that decide whether a QR code scans, how the error correction setting works, what static codes can and cannot do, and a short testing routine that catches problems early.
How a QR code stores information
A QR code is a grid of dark and light squares, called modules. The content, such as a web address, is converted into bits and laid out in that grid together with extra data used for error correction. The three large squares in the corners and the smaller alignment square help the phone find the code and correct for tilt.
The result: the more information you put in, the more modules the code needs, and the smaller each module becomes at a given print size. A short web address makes a simple code with big, easy modules. A long address with tracking parameters, or a whole paragraph of text, makes a dense code that needs a good camera and good lighting. If you can shorten what you encode, do it. Link to a short page on your own site instead of a very long URL.
Size: how big should it be on paper
There is a widely used rule of thumb: the code should be about one tenth of the scanning distance. If people scan from 30 cm, about 3 cm square is the practical minimum. For a poster read from 2 meters, aim for roughly 20 cm. Treat this as a guide and not a law, since phone cameras differ.
For small print items such as business cards, a code of 2 cm square is usually workable if the content is short. Going much below that makes scanning slow or unreliable, particularly for older phones.
When you download from the QR code generator, pick a pixel size that is larger than you need. You can scale a big image down without trouble, but a small image blown up will look blurry. For print, the SVG download is the best choice because it stays sharp at any size, and it works well in layout programs. Use PNG when you need a simple image to drop into a document or a slide.
Contrast and colors
Scanners look for dark modules on a light background. The safest choice is plain black on white, and there is no good reason to avoid it unless a brand guideline forces you to.
If you do use colors, follow these rules:
- The dark color must be clearly darker than the light color. Dark navy on white is fine. Yellow on white is not.
- Do not invert it. Light modules on a dark background are read by some scanners and not by others. If you need a dark background, test on more than one phone.
- Avoid pale colors for the code itself. Red, orange and light green look strong on screen but can have low contrast to the camera, particularly under shop lighting.
- Check it in grayscale. If the code looks washed out when you view it in black and white, it will probably scan poorly.
The tool lets you choose both the code color and the background color. Keep the background solid, and never put the code over a photo or a pattern.
The quiet zone
Around every QR code there must be an empty margin of the background color, called the quiet zone. The usual guidance is at least four modules wide. Without it, the scanner cannot tell where the code begins, because neighbouring text, borders or images blend into the pattern.
The generator adds a small margin around the code. In real use, it is worth adding more space in your layout. If you place the code in a box, a banner or next to a heading, leave clear space around it and do not let text, lines or decoration touch it. A common mistake is cropping the image tightly in a design program, which removes the margin the code needs.
Error correction levels
QR codes include redundancy so that they can be read even when part of the code is dirty or damaged. You choose how much. The four levels are L, M, Q and H, and by commonly cited figures they can recover roughly 7%, 15%, 25% and 30% of the code respectively.
Higher levels add more data, which means more modules and a denser code at the same content. So the choice is a trade-off:
- L gives the simplest code and suits clean digital use, such as a code shown on a screen at a decent size.
- M is a good default for most uses and is what the tool starts with.
- Q or H make sense for codes that will be printed on packaging, stickers, outdoor signs or anything that can get scuffed, folded or smudged.
Do not choose H by habit. A dense code printed small is often harder to scan than a lower level at the same size. If you have a long URL and limited space, go down a level and make the code bigger rather than the other way around.
Error correction is also what makes logos in the middle of a code possible, because the logo hides part of the data. The tool does not add logos. If you add one yourself in a design program, use a high level, keep the logo small, and test thoroughly.
Static versus dynamic QR codes
The codes made by this site are static. The content is written straight into the pattern, so the code contains your address or text itself. That has useful consequences:
- It works forever, with no account and no service that can shut down.
- It cannot be changed after printing. If your link moves, every printed copy points to the old place.
- It cannot count scans, because there is no server in the middle.
A dynamic code is different. It points to a short address on a third party's service, which then redirects to your real destination. You can change the destination later and see statistics, but the code stops working if that service is shut down or a subscription lapses. Many online generators advertise free dynamic codes that expire without warning.
For a permanent printed item, a static code that points to a page you control is the safer pattern. If the destination may change, make it a stable address on your own site and change what the page does, not the code.
The tool can encode a link, plain text, or Wi-Fi details. For Wi-Fi, the code carries the network name, security type and password, so guests can join by scanning. Remember that anyone who can see the printed code can read that password, so use it for a guest network.
Test before you print
A short routine catches nearly every problem:
- Scan it on screen with your own phone, and then with a second phone if you can, preferably from a different brand or an older model.
- Check the destination. Open the link and confirm it is the right page, with no typo and no extra characters. The QR scanner can read a code from an image and show you exactly what it contains.
- Print a draft at the final size on ordinary paper and scan that, at the distance people will really use.
- Try bad conditions. Dim light, a slight angle, and a bit of distance show how much margin you have.
- Check the surface. Glossy lamination causes glare, and curved items such as bottles distort the pattern. If the final item is shiny or curved, test on a real sample.
Fix anything that fails before you send a print run. A reprint costs far more than ten minutes of testing.
Linear barcodes are a different thing
QR codes are two-dimensional and meant for phones. Products in shops and warehouses use linear barcodes such as EAN-13 or Code 128, which carry short numbers and need specific formats and check digits. If you need that kind, use the Barcode generator instead, since a QR code will not work with a standard checkout scanner.
Try it: open the QR code generator, enter your link, choose a level and download the SVG.
Frequently asked questions
Why does my QR code scan on screen but not on paper?
Usually the printed version is too small, low in contrast, or missing its quiet zone. Ink on uncoated or glossy paper can also look different from the screen. Print a draft at the final size and test it before the real run.
Which error correction level should I pick?
Use M for most things. Choose Q or H for items that may get dirty or damaged, and L for clean, large codes on screens. Higher levels make a denser pattern, so they need more space.
Can I change where a printed QR code points?
Not with a static code, because the address is part of the pattern. Point it at a page you control and update that page instead.
Is there an expiry date on these codes?
No. A static code is a picture of your data, so it works as long as the destination exists. The only thing that can fail is the page it points to.