Web & SEO

How to make a QR code with a logo that still scans

A logo in a QR code works because of error correction. Here is how big the logo can be, the contrast, margin and print size rules that keep it scanning, and why static codes beat dynamic ones.

To make a QR code with a logo that still scans, generate it at the highest error correction level (H), keep the logo small enough to cover well under 30% of the code, clear the modules behind the logo, and keep strong contrast with a quiet margin around the edge. Then test it with a few different phones before printing. The Refract QR code generator raises error correction automatically when you add a logo and keeps it within a safe size.

Key takeaways

  • Level H error correction lets a QR code be read with roughly 30% of it damaged or covered. That spare capacity is what makes room for a logo.
  • Keep the logo comfortably under that limit, centred, with a small clear border around it.
  • Dark modules on a light background, a quiet margin of four modules, and at least 2 cm wide for scanning at arm’s length.
  • Static codes contain your link directly, so they never expire. “Dynamic” codes depend on someone else’s redirect.

How can a QR code still work with a logo over it?

Every QR code stores extra recovery data using Reed–Solomon error correction, the same family of maths used on CDs. If part of the code is dirty, torn or covered, a scanner can rebuild the missing pieces from that extra data. Denso Wave, which invented the QR code, defines four levels:

LevelApproximate data that can be restoredUse it for
L7%Clean screens, maximum data in a small code
M15%The common default for everyday codes
Q25%Codes that may get scuffed or dirty
H30%Codes with a logo, or harsh conditions

A logo is deliberate damage. At level H you can cover part of the centre and the scanner rebuilds what is underneath. Higher levels need more modules for the same data, so the code becomes denser. That is a good reason to keep the link short.

How big can the logo be?

The 30% figure is a ceiling for all damage combined, not a target for the logo. Glare, a crease, a slightly blurry photo and the logo all draw on the same budget. A logo covering around a fifth of the area or less leaves room for real-world problems. Three more rules matter:

  • Never cover the three big corner squares. These finder patterns tell the camera where the code is and which way up it is. Error correction can’t rebuild them.
  • Clear the modules behind the logo and leave a small gap around it, so the camera sees a clean shape rather than half-covered dots.
  • Use a simple, square-ish logo. A mark or icon works better than a long wordmark squeezed into the middle.

What makes a QR code scan reliably?

FactorDoAvoid
ContrastDark code on a light backgroundLight-on-dark codes and low-contrast brand colours
Quiet zoneA clear margin of four modules on every sidePlacing the code right against text or a busy photo
Print sizeAt least 2 cm (about 0.8 in) wide at arm’s length; larger for postersTiny codes on business-card corners
Data lengthShort links, so the code has fewer, larger modulesLong tracking URLs that make the code dense
StyleRounded or dot modules with standard corner patternsHeavy distortion of the corner squares

Some phone cameras read inverted (light on dark) codes, but older scanners and many apps don’t. If the code has to sit on a dark background, put it on a white panel instead.

Before you print: Test with at least two different phones, including an older one, at the distance people will actually scan from. Print a test copy at the final size before ordering a print run.

Static or dynamic QR codes?

A static code stores your link, Wi-Fi details or contact card in the pattern itself. It works for as long as the link does, even if the website that made it disappears, and nobody can track who scans it. A dynamic code stores a short link on a QR service’s domain, which then redirects to you. That lets you change the destination later, but if the service ends or you stop paying, every printed code breaks.

Refract makes static codes. If you want to measure scans, add UTM parameters to the link, such as ?utm_source=qr&utm_medium=print, and your own analytics will show visits that came from the code.

Other kinds of QR code

  • Wi-Fi: scanning offers to join the network without typing the password. It uses the standard format iPhone and Android cameras recognise.
  • Contact card: saves your name, number and email straight into the phone’s contacts.
  • Email and phone: opens a new email or starts a call.

Because the Refract generator runs in your browser, a Wi-Fi password typed into it never leaves your device.

SVG or PNG?

Download an SVG for print, signage and design files: it stays perfectly sharp at any size and opens in Illustrator, Figma, InDesign and Canva. Use a PNG for websites, slides and documents. If you place the PNG on a page, export it large enough that the browser scales it down rather than up. For more on that, see what size images should be for a website, and run an SVG through the SVG optimiser if it is going on the web.

Make yours

Open the QR code generator, choose what the code should do, pick a style and colours, and drop in your logo. Scan it with your phone camera, then download it. It’s free, there’s no sign-up, and the code never expires.

Last checked: October 2026.

Sources: Denso Wave: QR code error correction, Google Analytics Help: URL builders and UTM parameters.