Design

How to Put a Logo in a QR Code Without Breaking It

A logo works because the code can rebuild what the logo hides. Stay inside that budget, keep the corners clear, mind your contrast, and test the result.

A shop-window hiring poster with a QR code that has a messaging-app logo in its center
A centered logo inside a hiring poster's QR code — the most common, and safest, placement. Photo: Donald Trung Quoc Don, CC BY-SA 4.0, via Wikimedia Commons

The short version

  • A logo hides modules on purpose; error correction level H, which restores about 30% of codewords, is what lets the code survive it.[1]
  • Keep the logo in the center and well away from the three corner squares, which a reader needs before any repair can happen.[1]
  • Use H, a modest size and a plain backdrop behind the logo; dark code on a light ground still matters most.
  • DENSO WAVE says the free license covers codes that follow the JIS or ISO standards, so heavy redesigns that depart from them are a different matter.[2]

A logo in the middle of a QR code looks like a trick, but it's really a controlled accident. You're deliberately damaging the code and trusting its error correction to repair the damage every time someone scans it. Done within limits, that's perfectly reliable. Pushed too far, you get the code that works on your phone and fails on your customer's.

Why a logo can work at all

Every QR code stores extra Reed–Solomon codewords that let a reader fix bytes it can't read.[3] At the highest level, H, the code can recover roughly 30% of its codewords, and the format's own reference material lists logo-bearing codes among the uses for that level.[1] A centered logo is, in effect, a planned stain.

Two things follow:

  1. Use level H with a logo. Our generator switches to H automatically as soon as you add one, and locks it there. Raising the level does add modules, so the code gets a little denser.[3]
  2. Spend the budget carefully. Error correction also has to cover real-world damage — glare, a crease, a cheap printer. If the logo uses all of it, there's nothing left for life.

Size: smaller than you think

Our generator caps the logo at 26% of the code's width, which works out to about 7% of the code's area. In our tests, codes with a logo at that cap and level H decoded reliably across every style we offer, while a 30% logo failed on some code sizes even though H can, on paper, restore 30% of the codewords[1] — real damage isn't spread as evenly as the math assumes. A cap is not a target, either. Most designs look balanced, and keep more margin for rough printing, at 18–24% of the width. Start there.

Wide logos are measured on their longer side, so a wordmark ends up shorter than it is wide and hides fewer modules than a square badge of the same width.

A radio station poster built around a large black QR code with a small cartoon face set into its middle
A playful mark set into a large code. Big codes have more modules to spare, which gives a logo room. Photo: Windharp, CC BY-SA 4.0, via Wikimedia Commons

Placement: center, always

The three large squares in the corners are the finder patterns. A reader locates those first to work out where the code is and which way up it sits, and the error correction can't repair them, because it only covers the data area.[1] Cover one, and a scan can fail even when the total damage is small.[1]

So the logo goes in the middle, nowhere near the corners. The quiet zone matters too — the blank margin around the code that has to stay free of print.[4] A logo that spills past the edge of the code eats into it.

Clear zone vs. overlay

There are two ways to place a logo:

  • Overlay draws the logo on top of the modules. Bits of modules peek out around the logo's shape, leaving half-covered squares a reader must guess at.
  • Clear zone removes every module under the logo (plus a little border) and lets the logo sit on clean background.

Clear zone is our default, and we recommend it. The decoder sees whole modules or empty background, never fragments. If your logo has a transparent background, the code's background color shows through around it.

Color and contrast still win

A logo tempts people to recolor the whole code to match the brand. Keep two rules:

  • Dark code on a light background. Scanners look for dark modules on a light field. If your brand color is pale, use it for the logo or the corner eyes, not the modules.
  • Keep strong contrast. For text, the web's accessibility guidelines ask for a contrast ratio of at least 4.5:1, because faint text is hard for many people to read.[5] We use a similar yardstick for codes and warn you below 4:1. A camera in a dim restaurant is no more forgiving than a tired eye.

A word on heavy redesigns

Logos, colors and rounded dots are cosmetic: the code underneath is a standard QR code. DENSO WAVE, which holds QR code patents, lets anyone use the format freely as long as it follows the JIS or ISO standards, and asks anyone considering a code that departs from them to contact the patent holders first.[2] Our generator stays inside the standard; art projects that bend the grid itself are a different matter.

Test it like you mean it

Our scan check decodes your design at two sizes with an independent reader and confirms the result byte for byte. Treat a pass as the minimum. Then print a proof at the real size, scan it with a couple of different phones — including an older one — and try it under the worst light it will see. If any phone hesitates, shrink the logo before you change anything else.

Frequently asked questions

How big can a logo be?

Our generator lets you go up to 26% of the code's width, which covers about 7% of its area. In our tests, codes at that size with error correction H decoded reliably, while 30% failed on some code sizes, which is why we stop at 26%. Most designs look balanced at 18–24%, which leaves more margin for poor printing.

Should the logo sit on top of the modules or in a cleared area?

A cleared area. Modules peeking out from behind a logo create half-covered squares that confuse readers. We clear every module the logo touches, plus a small border, so the logo sits on clean background.

Can I put the logo in a corner instead?

No. The corners hold the finder patterns a scanner uses to find and orient the code; covering one can stop the scan even when error correction has room to spare.[1]

Does a transparent PNG logo work?

Yes. Transparent areas show the code's background color through them. A logo with thin light-colored lines may vanish on a light background, so check the preview.

Is my logo uploaded anywhere?

No. Your browser reads the file, scales it to at most 600 pixels and draws it into the code locally. It never leaves your device.

Sources

  1. Wikipedia. QR code.
  2. DENSO WAVE (QRcode.com). About the patent.
  3. DENSO WAVE (QRcode.com). Error correction feature.
  4. DENSO WAVE (QRcode.com). Point for determining the code area.
  5. W3C Web Accessibility Initiative. Understanding Success Criterion 1.4.3: Contrast (Minimum).