A QR code looks like the simplest thing in the world: paste a link, get a square, print it. Then the flyers come back from the printer and half the phones in the room can't read it, or the code works on your desk but not on a poster across a shop floor. Most of those failures come from a handful of predictable causes: too much data, too little contrast, no white border, or a code printed too small for the distance people will scan from.
This guide explains how a QR code actually stores information, what makes one easy or hard to read, and how to choose the right content and print size. You will also see how to create a code in a browser, test it properly, and decide when a free static code is enough and when you need something else.
How a QR code stores information
A QR code is a grid of black and white squares called modules. Three large squares in the corners (the finder patterns) let the camera locate the code and work out its angle. Smaller alignment and timing patterns help the scanner correct for curved or tilted surfaces. Everything else carries your data plus extra error correction bytes.
Two ideas explain most of what you need to know:
- Versions. QR codes come in 40 sizes, from version 1 (21 × 21 modules) up to version 40 (177 × 177). The generator picks the smallest version that fits your content. More characters means more modules, and more modules in the same printed area means each square is smaller and harder for a camera to resolve.
- Error correction. The standard defines four levels, usually labelled L, M, Q and H, which let a scanner rebuild roughly 7%, 15%, 25% or 30% of damaged data. Higher levels make the code more tolerant of scratches, glare and logos placed on top, but they also add modules.
At the extreme, a version 40 code can hold a few thousand characters, but nobody should print one. A short URL produces a sparse, chunky pattern that scans instantly; a paragraph of text produces a dense speckle that only good cameras in good light can read.
Static vs dynamic codes
A static code stores your content directly in the pattern. It needs no server, has no expiry date and keeps working as long as the link itself is alive. The trade-off is that you cannot change it after printing, and you get no scan statistics.
A dynamic code stores a short redirect link owned by a QR service. You can change the destination later and see scan counts, but the code stops working if the service closes or your subscription ends. For menus, business cards, product manuals and review links that rarely change, static is usually the safer choice.
What you can put in a QR code
Phones recognise several content formats and offer a matching action:
| Content | Example | What the phone does |
|---|---|---|
| Web address | https://example.com/menu |
Opens the browser |
| Phone number | tel:+441234567890 |
Offers to call |
mailto:sales@example.com |
Opens a new email | |
| SMS | sms:+441234567890 |
Opens messaging |
| Wi-Fi | WIFI:T:WPA;S:OfficeGuest;P:secret123;; |
Offers to join the network |
| Plain text | Locker 14, code on reverse |
Shows the text |
For Wi-Fi and contact cards there are dedicated builders that fill in the syntax for you: the Wi-Fi QR Code Generator and the vCard QR Code Generator.
Create a QR code in your browser
Our QR Code Generator draws the code as you type and never sends your text to a server.
- Open the QR Code Generator.
- Type or paste your link or text into the Text or URL box. The preview on the right redraws with every keystroke, so there is no separate generate button.
- Point your phone camera at the preview on screen and confirm it opens exactly what you expect.
- Click Download PNG to save a 300 × 300 pixel image, or Copy to put the image on your clipboard and paste it into a document, slide or chat.
The tool uses near-black modules on a white background with a white margin, which is the combination scanners handle best. It does not offer colours, logos or vector output, so if your design needs those, use this code as a starting point in a design app and keep the contrast high.
Making sure it scans
Keep the content short
Shorter content means fewer, larger modules. Remove tracking clutter you don't need from a URL, and prefer a clean page address over a long search result link. If you do want campaign tracking, build the link with a UTM Builder but keep parameter values brief.
Size it for the scanning distance
A common rule of thumb is that the code's width should be at least one tenth of the scanning distance. A code read from 30 cm away (a table card or leaflet) works at about 3 cm wide; a poster read from 2 metres needs something closer to 20 cm. Treat this as a starting point and test at the real distance.
When you enlarge the 300 px PNG for a large print, scale it with smoothing or interpolation turned off (often called "nearest neighbour"), so the square edges stay crisp instead of turning blurry.
Protect the white border
Scanners look for a light "quiet zone" around the code. The QR standard calls for a border four modules wide. Don't crop the margin away, and don't place the code right against a dark photo or a busy pattern.
Keep contrast and orientation standard
Dark modules on a light background is what the standard expects. Light-on-dark (inverted) codes and pale colours on white fail on some scanner apps.
Test like a stranger would
Test with at least two different phones, including an older one, from the real distance and under the real lighting. You can also check an image file without a phone by uploading it to a QR Code Scanner.
Other ways to make a QR code
- Your browser's share menu. Some desktop browsers can generate a QR code for the current page from the address bar or share menu. Quick, but with little control over the output file.
- Phone features. Many phones can share a Wi-Fi network as a QR code from the Wi-Fi settings screen.
- Design software and office suites. Several design apps and add-ins generate QR codes directly on the canvas, which is convenient when you are already laying out a flyer.
- Command line. On Linux and macOS, the open-source
qrencodeutility produces PNG or SVG files and suits batch jobs:
qrencode -o menu.png -s 10 -m 4 "https://example.com/menu"
For hundreds of codes or vector output, a command-line tool or design app is the better fit; for one or two codes, a browser generator is faster.
Troubleshooting common problems
It scans on screen but not on paper. The print is too small or low resolution, or the printer smeared the modules. Enlarge it and print on plain, non-glossy stock.
It opens the wrong page. A trailing space, a missing https:// or a typo came along with the paste. Check the text box, regenerate and retest.
Some phones show text instead of opening a link. The content is missing its scheme. example.com may be treated as text, while https://example.com is recognised as a link.
It stopped working months later. A static code cannot expire, so the destination changed: the page moved, the form closed or the shared file's permissions changed. Fix the page or print a new code.
Frequently asked questions
Do QR codes expire?
Static QR codes do not expire, because the content is stored in the pattern itself. Dynamic codes from subscription services can stop working if the redirect service is switched off.
How small can I print a QR code?
For a code read at arm's length, around 2 to 3 cm wide is a practical minimum for a short URL. Longer content needs a larger print, and you should always test the final printed size.
Can I put a logo in the middle of a QR code?
It can work because of error correction, but it removes data modules and makes scanning less reliable. If you add a logo in a design tool, keep it small and test on several phones.
Can I edit a QR code after printing it?
Not a static one. To change where a printed code goes, you either reprint it or point it at a page you control and update that page instead.
Does anyone see the data I put in a QR code?
With a browser-based generator like ours, the text is encoded on your device and not uploaded. Anyone who scans the printed code can read its content, so don't encode anything you wouldn't show publicly.