← All posts

How a QR Code Still Scans With a Logo in the Middle

2026-06-26

You've seen QR codes with a company logo sitting right in the middle, and maybe wondered how covering part of the code doesn't break it. The answer is a genuinely clever piece of engineering baked into the format: error correction. Here's how it works, and how to make a branded one that reliably scans.

QR codes are built to survive damage

A QR code doesn't just store your link — it stores it with redundancy, using Reed–Solomon error correction. The idea: encode extra data so the scanner can reconstruct the message even if part of the code is missing, dirty, or covered. This is why a QR code on a crumpled receipt or a scratched sticker still works.

There are four error-correction levels:

  • L (Low) — recovers ~7% of the code
  • M (Medium) — ~15%
  • Q (Quartile) — ~25%
  • H (High) — ~30%

At level H, about 30% of the codewords (the bytes the data is stored in) can be wrong and the scanner still repairs them. That's the headroom a center logo lives in. But it's one budget for the whole code: a scuff, a crease or a blurry photo spends from it too.

Why the logo goes in the middle

The logo sits in the center for two reasons. First, the three big squares in the corners are the finder patterns — the scanner uses them to locate and orient the code, so those must stay clear. The center has no such job, so it's the safe place to cover. Second, keeping the covered area compact and central leaves the error correction enough intact data everywhere else to rebuild the message.

How big can the logo be?

You'll often read "up to 20–25% of the area". That's optimistic. Each codeword is spread over a small strip two squares wide, so a patch in the middle damages more codewords than its share of the area, and some code sizes fare worse than others. I counted it codeword by codeword: a logo covering a tenth of the code can already need more than level H can repair on the smallest codes (a short link) and on a few others. So aim for about a tenth of the code's area, use level H, keep a little clear space around the logo, and test it.

Make one in your browser

ToolKoala's QR code generator handles this for you:

  1. Enter your link or text.
  2. Add a logo (PNG, JPG, SVG or an iPhone HEIC). The squares under it are left out, so it sits in a clean area of whole squares, in its own shape. The generator counts which codewords the logo covers and keeps that to at most half of what level H can repair; when a short link makes a small code, it moves to a slightly bigger one so the logo isn't a speck.
  3. Pick colors if you want, and download as PNG or SVG. Both include the logo; SVG scales without blurring, so it's the one for print.

It all runs locally — the code is generated in your browser, so whatever you're encoding never touches a server.

Practical tips

  • Always test the finished code with a couple of phones before you print 500 flyers. Camera quality varies.
  • Keep good contrast — dark code on a light background scans best. Fancy low-contrast color schemes are where "stylish" QR codes quietly stop working.
  • Don't shrink it too small in print. More data (a long URL) means a denser code that needs more physical size to scan reliably. Short links make simpler, sturdier codes.

FAQ

Why does a QR code work with a logo covering part of it? QR codes include Reed–Solomon error correction, which stores redundant data so the message can be rebuilt even if part of the code is covered. At the highest level about 30% of the codewords can be repaired, which leaves room for a center logo, as long as the logo uses only part of that budget.

How big can the logo be? About a tenth of the code's area, with high (H) error correction. The often-quoted 20–25% is more than level H can reliably repair once you count which codewords the logo covers, and it leaves nothing for a scuffed print or a blurry photo.

Where should the logo go? In the center. The three corner squares are finder patterns the scanner needs to locate the code, so those must stay clear — the middle is the safe place to cover.

Does making a QR code online expose my link? On ToolKoala it doesn't — the code is generated entirely in your browser, so whatever you encode never leaves your device.

Should I download PNG or SVG? PNG for on-screen use and easy sharing. SVG for print, because it scales without blurring. Both keep the logo (the SVG carries it as an embedded picture).

— Milo 🐨