QR Code Technical Guide
Everything you need to know about QR code technology: error correction, encoding modes, structure, and design best practices.
QR Code Structure
3 large squares at corners for detection and orientation
โ Lets scanners locate and orient the QR code
Smaller squares for version โฅ2, helps with perspective correction
โ Corrects distortion from non-perpendicular scanning
Alternating black/white lines between finder patterns
โ Helps determine module size and grid alignment
Error correction level and mask pattern (15 bits ร 2)
โ Tells scanner how to decode the data
Version number for QR codes version 7+ (18 bits ร 2)
โ Indicates QR code size/version
The actual encoded content and Reed-Solomon error correction codes
โ Your data + ability to recover from damage
4-module white border around the entire code
โ Separates QR from surroundings for reliable detection
Error Correction Levels
QR codes use Reed-Solomon error correction. Higher levels = more redundancy = works even with damage, but holds less data.
| Level | Recovery | Best For |
|---|---|---|
| L | ~7% | Clean environments, maximum data capacity |
| M | ~15% | General purpose, balanced |
| Q | ~25% | Industrial, moderate damage expected |
| H | ~30% | Logos embedded, harsh conditions |
๐ก Want to add a logo? Use Level H (30% error correction). Your logo can safely cover up to 30% of the QR code's data area.
Encoding Modes
QR codes optimize space by using different encoding modes based on content. Numeric mode is most efficient, byte mode is most flexible.
| Mode | Characters |
|---|---|
| Numeric | 0-9 |
| Alphanumeric | 0-9, A-Z, space, $%*+-./:) |
| Byte | Any (ISO 8859-1 / UTF-8) |
| Kanji | Japanese characters |
* Capacity shown is for Version 40 (largest) with Level L error correction
Size & Scanning Distance
Size Guidelines
- โข Business cards: 15-20mm minimum
- โข Posters: 2cm per meter of distance
- โข Packaging: 20-30mm typical
- โข Billboards: 25cm+ for highway scanning
Distance Formula
Distance รท 10 = Min QR SizeExample: Scan from 2 meters โ QR should be at least 20cm
Design Best Practices
Size
- โ Minimum 2cm ร 2cm for reliable scanning
- โ 1:10 ratio - scan distance : QR size
- โ Larger = scan from further away
Contrast
- โ Dark modules on light background (classic is best)
- โ Minimum 40% contrast difference
- โ Avoid: yellow on white, light gray modules
Quiet Zone
- โ Maintain 4-module white border minimum
- โ Don't crop or extend designs into quiet zone
- โ Background should not blend into QR edges
Error Correction
- โ Use Level H (30%) if adding logo
- โ Use Level M (15%) for general use
- โ Use Level L (7%) only when space is critical
Common Mistakes to Avoid
Inverting colors
Problem: White modules on dark background
Fix: Always use dark-on-light or test extensively before deploying
Low contrast
Problem: Blue on purple, gray on white
Fix: Ensure high contrast; when in doubt, use black on white
Damaged finder patterns
Problem: Logo covers corner squares
Fix: Only place logos in center, use H error correction
Too small
Problem: Low resolution printing, tiny screens
Fix: Test at actual size before production
No quiet zone
Problem: Design touches QR edge
Fix: Maintain 4-module white border
โ Pre-Deployment Checklist
- โ Test with multiple phone brands (iPhone, Android)
- โ Test at intended scan distance
- โ Test in lighting conditions similar to deployment
- โ Verify destination URL/content is correct
- โ Check quiet zone is maintained
- โ Ensure good contrast (print a sample)
- โ Test after any compression (JPEG can ruin QR codes)
Create Perfect QR Codes!
Generate QR codes with customizable error correction, colors, and sizes.
๐ฑOpen QR Code Generator