Why a random QR generator can be dangerous
A few years ago I had a client who had been caught in a paid service trap by the QR code on their product packaging. The previous designer had made the code with an online generator that offered a free trial for creating codes. When the work was signed off, both the designer and the client tested the code by scanning it with a phone, everything worked and the packaging went to print. 30 days later the QR code stopped working: the generator had put a link to its own redirect service in the code, not the client’s address directly, and switched off the redirect when the free trial ended. A reprint would have been expensive, so the client had no choice but to start paying the service a monthly fee.

Testing doesn’t reveal it, because everything works during the trial. The only giveaway is the address the phone shows when you scan. If it’s the generator’s domain rather than your own address, the code is dynamic and whether it keeps working is in someone else’s hands. QR Code Generator, for example, says on its own help page that dynamic codes created during the trial are switched off at the end of the trial.
Avoid services like that. I made the kera.ee QR code generator: it makes static codes that contain your own address directly, with no middleman. The QR code doesn’t expire, and you don’t need an account (or three drops of blood) to generate one.
In short:
- Use a static code in print. Whether a dynamic code keeps working is controlled by someone else.
- The side of the code is about a tenth of the scanning distance, but no less than 2 cm. The shorter the address, the smaller the code can be.
- Leave a quiet zone 4 modules wide around the code. A dark code on a light background, not the other way round.
- Logo width up to a fifth of the code width, error correction at level H.
- Print file as a vector, code in 100% black (K). Before printing, scan the paper, not the screen.
How big should a QR code be?
Rule of thumb: the side of the code is a tenth of the scanning distance. A flyer read in the hand (20–30 cm) needs a 2–3 cm code; a wall poster read from two metres away needs a code of at least 20 cm. The rule isn’t in the standard, but guides written in different languages repeat it the same way.
The minimum size doesn’t depend only on distance, though, but also on how much data the code holds. A QR code is made up of little squares called modules. The smallest standard QR code is 21 × 21 modules, the largest 177 × 177. The longer the address, the more modules there are and the smaller each module becomes at the same print size.
For scanning with a phone, one module should be at least 0.4–0.5 mm in print. Finnish banks recommend a 0.5 mm module on their forms and nothing smaller. That’s why a short address is useful for a designer: the same code can be printed smaller.
The QR code generator has a size calculator: enter the scanning distance and the print size, and it tells you how big one module will be and whether that’s enough.
Quiet zone, contrast and colour
There must be an empty margin at least 4 modules wide around the code (called the quiet zone). This is required by the QR code standard ISO/IEC 18004. The margin helps the scanner work out where the code begins. If the margin is too narrow or the code is right up against an image or text, some phones won’t read it.
A dark code on a light background. A coloured code is fine if the contrast is sufficient, but not all colours work:
- A red code is risky. Denso Wave, which developed the QR code, warns that many code readers illuminate the code with red light, under which a red code is unreadable. A phone will usually read a red code; a till or warehouse scanner may not.
- A pale yellow or light grey code looks almost like white to a scanner.
- A code with inverted colours (a light code on a dark background) looks good, but some scanners can’t read it. If you decide on a design like that, test it with several phones.
A curved surface is fine, because the code tolerates a little distortion. The stronger the curve, for example on a small bottle, the shorter the content of the code should be.
A logo in a QR code
Bear in mind that a logo always comes at the expense of error correction. Every QR code contains extra data that can be used to restore information that’s hard to read, missing or covered. That’s exactly what makes it possible to put a logo in a code. Error correction has four levels:
| Level | Restores up to | Use for |
|---|---|---|
| L | 7% | clean environment, lots of data |
| M | 15% | the usual choice |
| Q | 25% | wear, dirt |
| H | 30% | a logo in the code |
A common myth: “at level H a logo can cover 30% of the code”. It can’t. 30% is the entire error budget: it also has to cover scratches, reflections, poor printing and photographing at an angle. If the logo uses up the budget, there’s nothing left for the rest. Keep the logo width to a fifth of the code width at most, don’t cover the large squares in the corners, and leave a small empty margin around the logo.
Higher error correction also makes the code denser: the same address needs more modules at level H than at level M. So a code with a logo has to be printed slightly larger.
The print file
- Vector, not pixels. Use an SVG or PDF file. A PNG is only suitable for print if it’s at least 300 dpi at the final size.
- Black is 100% K. Don’t make the code in four-colour black (rich black) or RGB black, which turns into a CMYK mix in print. If the printing plates are even slightly out of register, the edges of the modules get a coloured fringe and the contrast drops.
- Transparent material needs a white base. On a sticker or film, print a white layer under the code, otherwise whatever is behind the sticker shows through.
- Test on paper, not on screen. Make a proof at actual size and scan it with an iPhone and an Android phone, including an older phone, in dim light, under glare and at an angle.
The generator’s PDF export automatically makes a black code in 100% K.
Static or dynamic code?
A static code contains your address directly. The code works as long as the address works, and no service can switch it off. A dynamic code contains the service provider’s short link, whose destination can be changed later and whose visits can be counted. A dynamic code makes sense if you knowingly pay for the service and need statistics or the ability to change the destination. A free generator’s trial code isn’t worth putting in print.
Even a static code only works as long as the address it leads to still exists. Heinz ketchup bottles in Germany had a QR code that led to a campaign page. The campaign ended, the domain wasn’t renewed and it was bought by an adult content site. In 2015 a customer discovered that the code on the bottle led to a porn site, and Heinz had to apologise. If your print material will stay in circulation for years, choose an address you can take responsibility for keeping yourself.
Design against fraud
QR code fraud is called quishing: a fake code is stuck over the real one, or an email is sent with a scam link hidden in a QR code. In Estonia, the state has warned about fake stickers on parking signs and fake Parkimine.ee refunds. In October 2026, stickers were found along school routes whose QR code led to an online shop selling drugs. In Bergerac, France, the QR codes on all 40 parking meters were faked at once in 2025, and in the UK almost £3.5 million was lost this way in a year.
Looking at a QR code, people can’t see where it leads. A designer can help:
- Write next to the code where it leads, for example “kera.ee/kursused”. Then the reader can check whether the phone opens the same address.
- Write what the code does: “see the menu”, “register for the course”. A code without an explanation teaches people to scan everything.
- Say what the code doesn’t do. In Alicante, Spain, real parking fines have a barcode, not a QR code. In St Petersburg you can’t pay with the QR codes on parking signs at all. When the rule is clear, a fake is easier to spot.
- In public places, prefer a code that’s hard to stick over: behind glass or printed directly on the surface, not as a separate sticker.
To learn how to recognise scam emails and fake links, read the post How to recognise a scam email or see the cybersecurity e-course.
How the QR code was born
The QR code was developed in 1994 by the Japanese car parts maker Denso (whose division later became Denso Wave) to track the movement of parts in car factories more quickly. The code was developed by a team led by engineer Masahiro Hara.
- The rarest shape in the world of print. The large squares in the corners have to be recognisable from any direction and must not be confused with the surrounding print. Hara’s team studied more than 5,000 pages of newspapers, magazines and cardboard boxes, looking for a ratio of black to white that almost never occurs in print. The result was 1:1:3:1:1. The square shape was chosen because it was the shape found least often in documents.
- The game of Go provided the way of reading. While playing Go, Hara noticed that stones slightly off the grid are still read as the same pattern. This gave him the idea of reading the code “approximately”, which made reading fast. The often-repeated claim that the QR code grid comes from the Go board is an exaggeration.
- A patent that wasn’t used. Denso patented the QR code but decided not to enforce the patent so that the code would spread. Only the words “QR Code” were protected as a trade mark, not the pattern. Thanks to this, anyone can make QR codes for free.
Checklist before printing
- Scanning opens your own address, not the generator’s domain. If the generator’s address opens, the code is dynamic: make sure that’s a conscious choice, not an oversight.
- The address is as short as possible and will exist for as long as the print material stays in circulation.
- The side of the code is at least a tenth of the scanning distance and the module at least 0.4 mm.
- There’s a quiet zone 4 modules wide around the code.
- A dark code on a light background, sufficient contrast, not red.
- Logo width up to a fifth of the code width, error correction H.
- Vector file, black 100% K, not built from four colours.
- There’s a short text next to the code: where the code leads and what it does.
- The proof has been scanned with several phones.
The kera.ee QR code generator checks most of this itself while creating the code: it makes a static code, warns about low contrast and a narrow quiet zone, calculates the print size and reads the finished code again before you download it.
Sources
Expiring codes and fraud
- QR Code Generator. What happens to my account and QR Codes when the trial expires (opens in a new window). Dynamic codes switched off at the end of the trial.
- Consumerist (2015). QR Code On Ketchup Bottles Points To Porn Because Of Expired Domain (opens in a new window). Heinz’s expired domain.
- RIA (Riigi Infosüsteemi Amet, the Estonian Information System Authority) (2026). QR-kood: mugav abimees või varjatud oht? (opens in a new window) (in Estonian). Estonian cases.
- ITvaatlik (2026). QR-koodid (opens in a new window) (in Estonian). Fake stickers on parking signs.
- ERR (2026). Kooliteedele ilmunud QR-koodid juhatavad narkootikume müüvasse veebipoodi (opens in a new window) (in Estonian).
- Selectra (2026). QR code horodateur autocollant pirate (opens in a new window). Parking meters in France, including Bergerac.
- TransportXtra (2025). £3.5m lost last year to fraudulent QR codes (opens in a new window). UK figures.
- wwwhatsnew (2026). Códigos QR fraudulentos (opens in a new window). Alicante fines with a barcode.
Size, colour and print
- Denso Wave. Point for determining the code area (opens in a new window). Module size, quiet zone, amount of data.
- Denso Wave. QR Code FAQ (opens in a new window). Colours, transparent material, trade mark.
- Denso Wave. Error correction feature (opens in a new window).
- Finance Finland (2015). QR code in credit transfer forms (opens in a new window). Finnish banks’ 0.5 mm module.
- Mediahuis. QR codes in newspaper printing (opens in a new window). 100% K and proofs.
- QR Code Generator (2026). 10 QR Code Design Rules for Flawless Scans (opens in a new window). Testing, contrast, distance.
History
- Denso Wave. History of QR Code (opens in a new window). The ratio of the corner markers and the patent policy.
- Gendai (2022). 「QRコード」を開発したのは日本人、その知られざる開発秘話 (opens in a new window). The game of Go and the 5,000-page study.
- Japan Patent Office (2022). QR Code (opens in a new window). Patent and trade mark strategy.
I used Claude as an aid for background research and editing the text. I used Google Flow to generate the image.


