"Generate a QR code" sounds like a 10-second task, but in practice you may have hit: prints scan 1 in 5 times; adding a logo breaks scanning; long URLs become dense "sesame cracker" patterns. All tied to a few key parameters.
1. What Is a QR Code?
Invented by Denso Wave (Japan) in 1994, a matrix of black and white modules. Three corner "回-shaped" markers are position detection patterns; smaller center one is the alignment pattern; the rest is data.
2. Four Key Parameters
2.1 Version
40 versions (V1-V40). Higher = bigger matrix. V1 = 21×21, V10 = 57×57, V40 = 177×177. Higher versions need higher scanner resolution.
2.2 Error Correction Level
| Level | Correction | Use Case |
| L | ~7% | Clean env, screens |
| M | ~15% | Default, general |
| Q | ~25% | Factory, outdoor |
| H | ~30% | With logo / decoration |
Not always higher is better — 30% correction can be 50% more complex than 7%.
2.3 Encoding Mode
- Numeric: 10 bits per 3 digits, most efficient;
- Alphanumeric (uppercase + digits): 11 bits per 2 chars;
- 8-bit byte: 8 bits per char;
- Kanji: 13 bits per char.
2.4 Module Size and Quiet Zone
Quiet zone must be at least 4 modules wide. Each module ≥ 0.5mm for phone scanning at 20cm; ≥ 5mm for outdoor large displays.
📲
Free Online QR Code Generator
URL/text/Wi-Fi/vCard, local generation
→
3. Special-Purpose QR Codes
Wi-Fi QR Code
WIFI:T:WPA;S:NetworkName;P:password;H:false;;
vCard Business Card
BEGIN:VCARD
VERSION:3.0
FN:John Smith
TEL:+1-555-0100
EMAIL:john@example.com
END:VCARD
4. Adding a Logo Correctly
- Error correction must be H;
- Logo size ≤ 1/4 of QR code area;
- Add white background border around logo;
- Test with at least 3 phone scanners, 5 angles each.
5. Scan-Failure Troubleshooting
| Symptom | Fix |
| Occasional fail | Raise correction to Q/H, increase size |
| Never scans | 4-module quiet zone; pure black+white |
| Some phones fail | Smaller logo; lower color saturation |
| Angled fail | Don't cover 3 corners |
| Reflective fail | Use matte print |
| Distance fail | ~1mm per module per meter distance |
Conclusion
QR codes are the most ubiquitous bridge between physical and digital worlds. Hope this saves you from the "printed but unscannable" embarrassment.