How to Create a QR Code That Still Scans
By NotAtAll
Generating a QR code is easy; generating one that works on a dim phone camera, a printed flyer and a screen viewed from across a room takes a little more care. The encoded data, contrast, physical size and final test all matter.
Start with the payload
Decide what the camera should receive before choosing colors or downloading an image. A URL is usually the simplest payload. Plain text, WiFi credentials, email addresses and phone numbers can also be encoded, but each character adds data and makes the QR pattern denser.
For a web link, use the final URL and keep it short when possible. If the destination may change, use a redirect URL that you control rather than a random QR service that could disappear. A static QR code encodes its data in the image; it does not expire by itself, but a URL inside it can still stop working if the destination is removed.
Generate the code
- Open the QR Code Generator.
- Choose URL, text, WiFi, email or phone and enter the payload.
- Keep a dark foreground on a light background unless you have a strong reason to change it.
- Set a size that matches the viewing distance and download PNG for screens or SVG for print.
The tool creates the code in your browser and lets you download PNG or SVG. SVG is useful for a poster because it stays sharp when scaled; PNG is convenient for a website, slide or message.
Protect the parts scanners need
- Keep the quiet zone: the blank margin around the code helps the camera separate it from the surrounding design.
- Use strong contrast. Pale gray modules, gradients and busy photographs behind the code reduce reliability.
- Do not stretch the image unevenly. A square QR code should remain square.
- Leave enough physical size for the smallest camera and the longest expected distance.
- Avoid placing text or a logo over the finder squares in the corners.
If you need branding, change one variable at a time and test the exact exported file. A code that scans in a large editor preview may fail after it is compressed by a social app or printed on a low-quality office printer.
Test like a real user
Scan from the distance and angle people will actually use. Try both a recent phone and an older phone, check the code in bright and dim light, and test a printed sample if the final use is paper. Confirm that the decoded URL has the expected spelling and opens over the network the audience will use.
Be careful with WiFi QR codes: the payload contains the network name and password. Treat the generated image like a password-bearing document and avoid posting it publicly unless that network is intentionally public. The QR Code Generator does not need a server to encode the value, which keeps the generation step local.
Ready to try it?
Free QR Code Generator — free and unlimited, right in your browser.
QR Code Generator →