The short version: how to set the parameters
A generated code that won't scan comes down to three causes nine times out of ten: a cropped quiet zone, insufficient contrast, or content that's too dense. Here is the whole parameter decision in one table (applies to this site's QR code generator and reader or any standards-compliant generator):
| Your scenario | Error correction | Colors | Content |
|---|---|---|---|
| On-screen display, documents, chat | M (default) | Black on white | As short as possible |
| Printed stickers, wear-prone outdoor materials | H | Black on white | Short link |
| Logo in the middle of the code | H | Dark modules on light background | Logo ≤ 30% of code area |
| Must sit on a dark poster | Any | Give the code a white backing panel — never an inverted code | Short link |
Two iron rules across every scenario: never crop the quiet zone (the white border at the default margin=4), and maximize contrast — inverted codes (white modules on black) simply don't work on some scanners, and low-contrast pairs (dark gray on light gray) get thresholded into mush.
Why these rules? The mechanics and the troubleshooting below.
Mechanics in three concepts
- Module: the smallest black-or-white square. A QR code is a matrix of modules, not a pixel image.
- Version: sizes 1–40, from 21×21 to 177×177 modules. You don't choose the version — content length does: more content forces a higher version and a denser grid.
- Error correction: four levels L/M/Q/H; via Reed-Solomon coding they recover roughly 7% / 15% / 25% / 30% of codewords. A smudged corner, a torn edge, a logo in the middle — damage under the ratio stays readable.
The three pull against each other: higher correction → more redundant codewords for the same content → higher version → denser modules → harder to scan. So "scans reliably" means subtracting by scenario, not maxing parameters. That is also why "shorter content" beats "higher correction" in the table: halving the content can drop the version two steps — shorten those UTM-laden links before they go into a code.
The 4-module quiet zone is a hard requirement of the QR standard (ISO/IEC 18004): scanners use it to locate the code's boundary. The number-one cause of "scanned fine on the mockup, dead in print" is a designer cropping the border or letting text crowd a corner.
After generating: recognition and troubleshooting
The tool's "read" side solves the reverse problem, via two paths:
- Camera scanning: point at physical objects (stickers, print, screens); rear camera preferred, real-time frame recognition;
- Image recognition: screenshots, code images received in chat, exported PNGs — upload and decode locally.
When recognition fails, troubleshoot in probability order:
- Quiet zone cropped or crowded — tight screenshot crops, text pressed against the code;
- Insufficient contrast — backlighting, glass glare, dark materials; some tools pre-enhance contrast before decoding (it genuinely rescues a share), but contrast at the source is more reliable;
- Code too small or too dense — recognition drops noticeably under about 200 pixels of code edge in the image; zoom in or move closer;
- Inverted code — try a scanner with inverted detection, or invert the image colors and retry.
Static vs dynamic codes: the decision you must get right
Online generators (this site included) produce static codes: the content is encoded directly into the pattern, and scanning yields the original text. Zero vendor dependence, no expiry; the price is that content is baked in — changing the target means replacing the code.
The "living codes" sold elsewhere are dynamic codes: the pattern stores a redirect short link, and the target lives in a vendor's backend — flexible, but the code dies when the short-link service does.
How to choose:
| Your situation | Use |
|---|---|
| One-off events, short-lived materials | Static code with the final URL directly |
| Long-lived materials, target may change | A short link on your own domain + a static code (changeable target, zero vendor lock-in) |
| Paid "change anything anytime" living-code services | Think twice — you're buying long-term trust in someone else's domain staying up |
Keep the capacity ceiling in mind: the largest version (177×177) holds about 7,089 digits, 4,296 alphanumeric characters, or 2,953 arbitrary bytes; CJK text in UTF-8 typically spends 3 bytes per character. QR codes are for pointers (URLs, identifiers), not bodies of text. Print sizing rule of thumb: comfortable scanning distance is about 10× the code's side — a 5 cm code scans most reliably within half a meter.
Frequently Asked Questions
How do I choose between QR code error correction levels L, M, Q, and H?
The four levels recover roughly 7%, 15%, 25%, and 30% of the codewords respectively. For undamaged contexts — on-screen display, embedded in documents — the default M is plenty. For printed stickers, wear-prone materials, or placing a logo in the middle of the code, choose H: the area covered by the logo is absorbed by error correction, and the common practice is to keep the logo under about 30% of the code area. The trade-off is that higher correction means more modules for the same content — a denser code that gets harder to scan at small print sizes.
How much content can a QR code hold?
The QR standard defines 40 versions; the largest is a 177×177 module grid, with capacity depending on encoding modes: about 7,089 digits, 4,296 alphanumeric characters, or 2,953 arbitrary bytes (including UTF-8 text). But "can hold" is not "should hold" — longer content forces a higher version and a denser grid, and phone cameras struggle with high-density codes in low light. A short link or short domain is a more effective scannability optimization than raising error correction.
Why does a generated QR code need a white border around it?
That border is the quiet zone, and the QR standard (ISO/IEC 18004) requires it to be at least 4 modules wide. Scanners use the quiet zone to determine where the code's boundary is — without it, the finder patterns merge into the background and recognition rates collapse. A generator's default margin=4 is exactly this spec value. The most common failure is downstream design: dragging the code into a poster and cropping the border or letting text crowd the corners — clean on the mockup, unscannable in print.
Why do light-on-dark QR codes often fail to scan?
Recognition depends on the brightness difference between foreground and background, and conventional scanning pipelines assume dark modules on a light background. Inverted codes (white modules on black) work on some scanners and not others — uncontrollable compatibility; low-contrast combinations get thresholded into mush. The reliable choice is always a dark code color on a light background with maximum contrast — if the code must sit on a dark poster, give it its own white backing panel.