Printed a code and need to change the link? QR Gen makes codes you can edit later.Edit codes after printing with QR Gen.See QR Gen

Open on your phone

How to add a logo to a QR code without breaking it

A QR code with logo scans when the logo stays near a quarter of the width and error correction is H. See the limits we measured, then test yours.

Set the error correction to H, keep the logo to about a quarter of the code’s width, and scan the result on two phones before anything goes to print. That is the whole recipe for a QR code with logo. The rest of this guide is the reasoning behind those numbers, using codes we built on this site and then tried to break.

Most guides give you a rule (“25% of the width”) and stop. The rule is fine, but it hides two facts that decide whether your own code works: how much room the logo really has depends on the link you are encoding, and switching to H makes the whole code bigger. Both are measured below.

What the logo takes away

A QR code stores your text plus spare repair data. When a logo sits on top, the scanner loses the dots underneath it and rebuilds them from that repair data. Level H is the setting with the most repair data: it can restore about 30% of the code’s codewords, per Denso Wave’s explanation of error correction. Our error correction guide covers the four levels in full.

Notice the word “codewords”. A codeword is eight modules (the small squares), and a small code also spends a third of its squares on fixed parts like the three corner markers and the timing lines, which carry no repair data. So 30% of codewords is closer to 17 to 24% of the printed area, not 30%. A logo is a block, so we measured it as a block.

How big a logo can get: what we measured

We built codes for three links with the same open-source library the project uses for its scripts, then wiped a centred square and checked whether two decoders could still read them: jsQR (the open-source decoder our scanner falls back on) and the QR detector built into Chrome on macOS. We kept making the square bigger until the first failure. The links:

https://example.com/menu
https://www.example.com/shop/menu-card
https://www.example-shop.in/offers/diwali-2026?utm_source=poster&utm_medium=qr&utm_campaign=diwali
Link length Level Version, modules Largest centred square that still scanned Share of area
24 characters M 2, 25 by 25 24 to 27% of the width 6 to 7%
24 characters H 3, 29 by 29 41 to 42% of the width 17%
38 characters M 3, 29 by 29 28 to 34% of the width 8 to 12%
38 characters H 5, 37 by 37 47 to 49% of the width 22 to 24%
98 characters M 6, 41 by 41 34 to 35% of the width 12%
98 characters H 9, 53 by 53 45 to 46% of the width 20 to 21%

Read it two ways. First, H roughly doubles the area you can cover compared with M. Second, the limit is far larger than a sensible logo. Those are perfect, sharp renders on a screen. A printed code has glare, a slightly skewed camera and a cheap lens, and every one of those eats into the same repair budget. We aim for about 60% of the worst case we measured, which is why we say “a quarter of the width” (a 25% logo covers about 6% of the area).

Switching to H makes the code bigger

The catch nobody mentions: the same link at H needs more squares than at M.

Link length Level M Level H Square size at 30 mm wide, M then H
24 characters 25 by 25 29 by 29 1.20 mm, then 1.03 mm
38 characters 29 by 29 37 by 37 1.03 mm, then 0.81 mm
98 characters 41 by 41 53 by 53 0.73 mm, then 0.57 mm

The last column is the code’s width (30 mm) divided by the module count. On the 98 character link, adding a logo costs 12 squares on every side, and each square shrinks by almost a quarter. A small code that scanned fine in plain M can fail the moment you add the logo and keep the same print size. The fix is either a bigger print or a shorter link. If the link has tracking tags on it, strip them first; the size guide shows what each extra square costs on paper.

A dynamic code is one answer to long links, because it encodes a short redirect address and keeps the code sparse whatever the final page is. QR Gen, our paid sister product, makes those; the static vs dynamic guide explains the trade.

Open the generator, pick Link, Wi-Fi or any other kind, and use the Logo tab. Four things are worth knowing:

  • Adding a logo switches error correction to H automatically. You cannot leave it on M by accident.
  • The size slider runs from 15 to 40 and starts at 30. We exported real codes at 1024 px for the three links above at every slider position. The logo came out between 15% and 30% of the code’s width (2% to 9% of the area), and every one decoded in both decoders. The tool caps the logo by the repair budget, so the slider cannot push it past what H can rebuild.
  • “Clear the dots behind the logo” is on by default. Leave it on. Without it, dots show through any see-through part of your logo.
  • Everything happens in your browser. The logo is not uploaded.

One thing to check afterwards: the white border. The standard asks for four modules of blank space, which is our generator’s default; if you shrank it in the Shape tab to save room, put the space back on the page instead. Denso Wave’s overview of the code states the four-module margin.

Adding the logo yourself in a design tool

If you export a plain code and drop a logo on it in a layout program, nothing stops you from making it too large, and nothing clears the dots underneath, so you have to do both by hand. Work in squares, not percentages. Take the module count from the table above (or from the scanner’s report), multiply by 0.25, and round down:

29 by 29 code:  29 x 0.25 = 7.25  -> logo 7 squares wide  (about 6% of the area)
53 by 53 code:  53 x 0.25 = 13.25 -> logo 13 squares wide (about 6% of the area)

Then put a solid white plate under the logo that is one square larger on every side. Export the code at level H first; a code made at M and covered afterwards has only about half the repair room we measured.

Make the logo easy to hide behind

  • Simple and solid. A flat mark with thick shapes survives being reduced. Fine lines and gradients at 25% of a code the size of a visiting card turn to mush.
  • Opaque. A logo with see-through areas lets the dots behind it show, which is the damage you were trying to avoid. Put the mark on a solid square or circle.
  • Roughly square. A wide wordmark across the middle covers far more area than a square mark of the same height. Use the icon, not the full lockup.
  • Dark dots, light paper. A logo is not a licence to tint the code; see the colours guide for the contrast numbers.

Denso Wave, the code’s inventor, is cautious here. Its FAQ warns about deforming a code by overlaying an illustration, asks anyone planning a design around one to consult it first, and says that for colour it prefers black on white. The repair budget is what makes a logo possible, which is another reason to test.

Five-minute test before you print

  1. Export the PNG at 1024 px or the SVG, and view it at the size it will be printed.
  2. Scan it from the screen with two different phones. Try the built-in camera, then the scanner on this site, which also shows you the real address inside.
  3. Hold the phone at an angle and at arm’s length. Dim the room. A code that only scans when everything is perfect will fail on a wall.
  4. Print one copy on the real paper at the real size, and scan that too. Printers add ink spread that a screen does not.
  5. If any of it fails, shrink the logo one notch or print the code larger. Do not move to a smaller error correction level to “make room”; that makes it worse.

If you need your logo on the card and the code as well, the business card guide covers placement on an 89 by 51 mm card. To start from scratch, the main guide to making a QR code has every kind in one place.

Ready to try it? Free, no sign-up, made in your browser.

Open the QR generator