A QR code that fails to scan is worse than no QR code, because people lose trust and walk away. Most failures come from a few avoidable mistakes in size, colour and printing. This guide explains how a QR code works in simple terms and gives practical rules for making codes that scan every time, on screens and on paper.
How a QR code stores information
A QR code is a grid of small black and white squares called modules. The pattern encodes your text, such as a web address, together with extra error-correction data. Three large squares in the corners tell the scanner where the code is and how it is rotated. Around the whole code there must be an empty white border, called the quiet zone, so the scanner can tell where the code ends.
The more text you put inside, the more modules the code needs, and the smaller each square becomes at the same overall size. Small squares are harder for a phone camera to read from a distance. That is why a short link makes a better code than a long one.
Keep the content short
- Use the shortest address that works, without extra tracking parameters.
- For a site, link to the main page of what you want people to see, not to a long path.
- For contact details, a WhatsApp link or a phone number gives a smaller code than a full contact card.
Choose the right error correction level
QR codes can still be read when a part of them is damaged, because they include repair data. There are four levels: Low (about 7% of the code can be restored), Medium (about 15%), Quartile (about 25%) and High (about 30%). A higher level makes the code denser, so the squares get smaller. For a code on a screen or on clean paper, Medium is a good choice. For a sticker that may get scratched, or a code with a small logo on it, choose Quartile or High.
Colours that work
- Dark on light. Scanners expect dark modules on a light background. Black on white is the safest.
- High contrast. Dark blue, dark green or dark red on white work. Pale colours, such as yellow or light grey on white, do not.
- Avoid inverted codes. A white code on a dark background fails on many scanners.
- Avoid busy backgrounds. Do not place the code on a photo or a pattern.
How large should a printed code be?
A common rule of thumb is that the code should be about one tenth of the scanning distance. A code that people scan from 10 cm away can be about 1 cm wide, and one scanned from a metre away should be about 10 cm wide. For a short link on a flyer or a visiting card, aim for at least 2 cm. If your code holds more text, make it bigger, because each square becomes smaller.
Print and file format tips
- For print jobs, use the SVG file. It stays sharp at any size. If you use PNG, choose the largest size, 1024 pixels, and do not enlarge it much further.
- Keep the code perfectly square. Stretching it in a document editor breaks the pattern.
- Do not compress the image heavily. Blurry edges make scanning harder.
- Print on a matt surface where you can. Glossy paper and plastic reflect light and create glare.
- Leave the white border untouched, and do not put text or graphics inside it.
Test before you print many copies
- Scan the code on the screen with your own phone.
- Print one copy at the real size and scan it from the distance people will use.
- Try a second phone, ideally an older or cheaper model.
- Check that the link opens the right page, and that it still works on mobile data.
Wi-Fi, WhatsApp and phone codes
Special formats let a scan do more than open a web page. A Wi-Fi code joins a network without typing the password. A WhatsApp code opens a chat with your number, optionally with a message typed. A phone code offers to call. You can make each of these with the QR code generator. For a Wi-Fi code, remember that anyone who scans it can see the password, so display it only where you are comfortable sharing it.
Scan unknown QR codes carefully
Scammers sometimes place fake QR codes on posters, parking meters or messages to send people to fake pages. A few habits help:
- Check the address your phone shows before you open it. Be careful if it does not match what you expect.
- Never enter an OTP, a PIN or a password on a page you reached from a code you do not trust.
- Be wary of codes stuck over other codes, and of payment requests from unknown senders.
- For banking or payments, use the official app rather than a link from a code.
The safe uploading checklist has more habits for staying safe online.
Quick checklist
- Short content, dark code on a light background.
- White border kept, code kept square.
- Large enough for the scanning distance, at least 2 cm for short links.
- Tested on two phones before printing.