How to Add a Logo to a QR Code Safely
A QR code with your company logo looks more professional and builds recognition. But a logo covers part of the code’s data, so there is a real risk of breaking scannability. Here is how to do it correctly.
How QR Codes Survive Logo Overlays
QR codes have built-in error correction — they can reconstruct missing or damaged data. When you place a logo in the center of a QR code, you are deliberately obscuring some modules. The error correction algorithm fills in the gaps.
The four error correction levels determine how much damage a code can tolerate:
| Level | Recovery Capacity | Safe Logo Coverage |
|---|---|---|
| L | ~7% | Not recommended for logos |
| M | ~15% | Up to ~10% of area |
| Q | ~25% | Up to ~15% of area |
| H | ~30% | Up to ~20% of area |
Always use error correction level H when adding a logo. This gives you the most headroom for the overlay.
Step-by-Step Process
1. Generate with High Error Correction
Before adding any logo, generate your QR code with error correction set to H (High). This is the critical first step — adding a logo to a code generated with Level L or M will likely break it.
2. Keep the Logo Small
The logo should cover no more than 20% of the total QR code area. For a 300 x 300 pixel QR code, that means the logo should be roughly 60 x 60 pixels or smaller.
A practical rule: if the logo is clearly visible but the surrounding QR pattern is clearly dominant, you are in the safe zone. If the logo feels like it takes up a quarter of the code or more, it is too big.
3. Center the Logo
The center of a QR code is the safest place for a logo because:
- The three position detection patterns (the large squares in three corners) are far from center and must remain unobstructed
- The alignment pattern is near center but small enough to coexist with a centered logo
- The most critical structural data is at the edges, not the center
Placing a logo off-center or near a corner risks covering the detection patterns, which will break the code entirely.
4. Add a Clear Background
Do not place a logo directly on top of the QR modules with transparency. Instead:
- Add a white (or light-colored) square or circle behind the logo
- This background should extend 2–3 pixels beyond the logo on all sides
- The clean background creates a clear visual boundary that helps scanners process the surrounding modules
5. Use Simple Logo Designs
Detailed logos with thin lines, gradients, and small text do not work well at QR code scale. At 60 x 60 pixels, fine details disappear.
Best practices:
- Use a simplified or icon version of your logo
- Solid colors work better than gradients
- High contrast between the logo and its background
- No text smaller than 8px — it will be unreadable
Common Mistakes
Covering the Position Detection Patterns
The three large squares in the corners of every QR code are called position detection patterns. They tell the scanner where the code is and how it is oriented. Never cover these with a logo or any design element. A QR code with even one damaged position pattern will not scan on any device.
Using a Transparent Logo
A logo with a transparent background blends into the QR modules, making it hard for both humans and scanners to distinguish the logo from the data. Always use an opaque background behind the logo.
Making the Logo Too Detailed
A complex full-color logo that looks great at 200 px looks like a smudge at 50 px. Scale your logo down to the target size first and check if it is still recognizable.
Forgetting to Test
Every logo-QR combination needs testing. Error correction provides a safety margin, not a guarantee. Subtle differences in logo size, position, or the specific data encoded can make the difference between scanning and not scanning.
Testing Your Logo QR Code
After adding the logo:
- Scan with the phone camera app (not a third-party scanner)
- Test on at least three devices (mix of iOS and Android)
- Test at the intended scanning distance
- Test in different lighting conditions
- If printing, test on the actual material
If any device fails to scan, reduce the logo size by 10–20% and test again.
Design Alternatives to Center Logos
If a center logo is not working reliably, consider these alternatives:
- Logo below the QR code — place the logo outside the code entirely, with a text label. Zero risk of scan failure.
- Branded frame — use a frame template that includes your brand name below the QR code. Many QR generators offer this.
- Custom colors — instead of a logo, use your brand colors for the QR modules. This is safer than overlaying a logo and still communicates brand identity.
These approaches keep the QR code data intact while still achieving brand recognition.
Create a QR Code With Your Logo
Open QR Generator →Frequently Asked Questions
How big can a logo be inside a QR code?
With error correction level H (30% recovery), the logo can safely cover up to 20% of the QR code area. Going beyond this significantly increases the risk of scan failure, especially on older devices.
Does the logo shape matter?
Square logos centered in the middle of the QR code work best because they overlap the least critical data area. Rectangular or irregularly shaped logos may cover more functional modules, increasing the chance of scan failure.
Should the logo have a background?
Yes. Always place the logo on a small white or light-colored background patch. This creates a clean boundary between the logo and the QR modules, making it easier for scanners to read the surrounding data.