How to Make a QR Code That Actually Scans
October 4, 2026
2 readsA QR code looks like it should just work. Then you print a hundred flyers and half the phones can't read them. Almost every failed QR code fails for one of a handful of ordinary reasons, and all of them are easy to avoid. This guide covers what to encode, how to design it, and how to test it before it goes to print.
What a QR code can hold
A QR code is a square barcode that stores text. What the phone does with that text depends on its format. The common types are:
- A URL, which opens a web page. This is the most common use.
- Plain text, which just displays the message.
- WiFi details, which let a guest join your network without typing a password.
- A contact card (vCard), which saves your name, number and email in one tap.
The QR Code Generator handles all four. Pick the type, fill in the fields, and download the code as a PNG or an SVG.
Rule 1: keep the content short
The more you put in a QR code, the denser its pattern of squares becomes, and dense patterns are harder to scan, especially at a distance or at small size. A short web address produces a clean, simple code. A long address packed with tracking parameters produces a crowded one.
If your link is long, shorten it, or link to a simple page on your own site and redirect from there. Fewer characters means a more forgiving code.
Rule 2: use the right size
A common rule of thumb is that a code should be at least about 2 cm (roughly 0.8 inches) wide when printed, and larger if people will scan it from further away. As a rough guide, scan distance is about ten times the code's width. A business card can carry a small code. A poster needs a big one.
Always leave blank space around the code, called the quiet zone. The standard is at least four modules, which is four of the little squares, of empty margin on every side. Putting the code too close to text, a border or a photo is one of the most common reasons it fails.
Rule 3: contrast beats style
Scanners look for dark squares on a light background. The safest choice is black on white. Dark blue or dark green on white works too.
Avoid:
- Light foreground colors, such as yellow or pale grey, on any background
- Inverted codes, light on dark, which many older scanners can't read
- Busy photo backgrounds behind the code
- Gradients that reduce contrast across part of the code
If you want it to match your brand, choose a dark brand color and test it. Don't trade away contrast for looks.
Rule 4: understand error correction
QR codes include built-in error correction, so a code can still scan when part of it is dirty, scratched or covered. There are four levels, which can recover roughly this much damaged data:
- L about 7%
- M about 15%
- Q about 25%
- H about 30%
Higher levels are more rugged, but they make the code denser. For a clean printed flyer, a lower level and a simpler code is usually better. For something that will get scuffed, such as a sticker on equipment, choose a higher level. Putting a small logo in the middle only works if the level is high enough to make up for the part it covers.
Rule 5: a static code is permanent
A static QR code stores your content directly in the pattern. It never expires and nothing can break it, but you can't change where it points after printing. If you might need to change the destination later, point the code at a page on your own website that you control, and update the page instead of reprinting.
Be careful with services that generate "dynamic" codes through their own redirect link. If the subscription lapses, the codes you printed can stop working. A code that points straight at your own address stays under your control.
Rule 6: always test before printing
This takes a minute and prevents the expensive mistakes. Before you print anything:
- Scan the final file with at least two different phones, one iPhone and one Android.
- Scan it at the size and distance it will actually be used.
- Scan a printed test, not just the screen. Printers shift colors and can blur edges.
- Make sure the link opens a page that works well on a phone.
Where QR codes work well
- Menus and price lists that you update without reprinting, by pointing to a page
- Business cards using a vCard
- Guest WiFi on a small framed card, so no one has to read out a password
- Event tickets and posters linking to a registration or schedule page
- Product packaging linking to instructions or support
Make the destination worth scanning
A perfect code that opens a slow or broken page wastes everyone's effort. Make the landing page mobile friendly and fast. If it's a page you control, check the basics with our technical SEO checklist. For campaign links, a clean, readable address built with Slug Generator also keeps the QR code simpler.
The short version
A QR code that scans every time has short content, enough size, a clear margin, strong contrast and the right error-correction level, and it has been tested on real phones. Get those basics right and the design is the easy part.