How QR Codes Work and How to Use Them Safely
QR codes have moved from factory labels to restaurant tables, posters, tickets and payment counters. They are convenient: point your phone camera and you are on a web page. But they also hide where they lead, which creates a few risks. Understanding how they work makes you a better user and a better creator.
What is inside a QR code?
A QR code is a square grid of dark and light modules that encodes text. That text may be a web address, plain text, a phone number, an email address or Wi-Fi details. The three large squares in the corners help the camera find and orient the code. There is no hidden internet connection. The camera reads the pattern, the phone decodes the text and then decides what to do with it.
Error correction
QR codes include built-in error correction. At the lowest level, about 7 percent of the code can be damaged or covered and it will still scan. Higher levels recover about 15, 25 or 30 percent. This is why small logos in the middle can work, but a higher level also makes the code denser, so scanning gets harder if the text is long.
What to put in a QR code
| Purpose | Content format |
|---|---|
| Website | The full address, starting with https:// |
| Wi-Fi login | WIFI:T:WPA;S:NetworkName;P:Password;; |
| Phone call | tel:+923001234567 |
| mailto:name@example.com | |
| Plain note | Any short text |
Making a code that scans well
- Keep it short. A shorter address gives a simpler code with larger modules.
- Use high contrast. Dark code on a light background is most reliable.
- Leave a quiet zone. Keep a clear margin around the code.
- Make it large enough. Test at the real size and distance. Printed on a poster, a code needs to be much bigger than on a business card.
- Test before printing. Scan with at least two different phones.
Static codes cannot be changed
A code that holds your web address directly is permanent: if you later move the page, printed codes still point to the old address. Link to a stable page that you control, and use a redirect if you may need to change the destination.
Staying safe when you scan
- Look at the preview. Phones usually show the address before opening it. Check that it matches what you expect.
- Be wary of stickers. Scammers place fake codes over real ones on parking meters, posters and tables.
- Do not enter payment or login details on a page you reached from an unknown code.
- Be cautious with codes in unexpected messages or emails, which may lead to fake pages.
- Do not install apps from a random code. Use your official app store.
For businesses and creators
- Place codes where they cannot easily be covered, and check them regularly.
- Tell customers what the code does: "Scan to see the menu".
- Use your own domain, so customers can recognise a legitimate address.
- Make sure the destination page works well on phones.
Frequently asked questions
Do QR codes expire?
A plain code never expires. The page it points to might disappear.
Can I change the colours?
You can, as long as there is strong contrast between the dark modules and the background.
Try it yourself
Make a code with the free QR Code Generator, download it as a PNG and test it before you print.