Marketing · 6 min read

QR Code Best Practices: Size, Contrast, Error Correction and Tracking

A QR code that fails to scan is worse than no QR code, because the person has already tried and given up. Most failures come from a handful of avoidable design choices: low contrast, too small a print size, too much data, or a decorative logo that is too big. This guide walks through the rules that make QR codes dependable on posters, packaging and screens.

How a QR code stores data

A QR code is a grid of dark and light squares called modules. The three large squares in the corners let a scanner find the code and work out its orientation, and a smaller pattern helps correct perspective on larger codes. The rest of the grid holds your data plus error-correction information.

The more characters you encode, the more modules are needed, so the code becomes denser and each module becomes smaller at the same print size. Dense codes need better cameras, steadier hands and more light.

Keep the data short

The single best way to make a QR code reliable is to encode less. A long URL with tracking parameters produces a dense code that struggles on a small sticker or a low-resolution screen.

Pointing the code at a short link solves this: the code encodes a few dozen characters, stays sparse and easy to scan, and you can switch the link off or give it an expiry date later. A short link also lets you count scans, which a raw URL cannot.

Size and the quiet zone

As a rule of thumb, a code should be printed at least 2 cm (about 0.8 inch) wide for close-range scanning, and scanning distance should be roughly ten times the code width. A code on a poster viewed from two metres away needs to be about 20 cm wide.

Every QR code needs a quiet zone: a blank margin around it, at least four modules wide. Cropping the margin, or letting text and artwork run up to the edge, is one of the most common reasons scans fail.

Contrast and colour

Scanners look for a clear difference in brightness between modules and background. Dark modules on a light background is the safe default. Inverted codes (light on dark) work on many phones but not all scanners, so test before printing in bulk.

Brand colours are fine as long as the foreground is much darker than the background. Avoid red on white at low saturation, pastel foregrounds, and gradients that fade towards the background colour. A quick test: convert the design to greyscale; if the code is hard to read, it is hard to scan.

Error correction and logos

QR codes include redundancy so they can still be read when part of the code is damaged or covered. There are four levels, which can recover roughly 7 percent (L), 15 percent (M), 25 percent (Q) or 30 percent (H) of the data.

Higher levels make the code denser, but they are what allows a logo in the middle. If you add a logo, use level Q or H, keep it under about 20 percent of the code width, and always scan the finished design on several phones before printing.

Test before you print

A short checklist catches nearly all problems:

  • Scan with at least one iPhone and one Android phone, in normal and dim light.
  • Scan from the real distance and at the real angle.
  • Print a proof at final size on the final material; glossy surfaces reflect light.
  • Confirm the destination page loads quickly on mobile data and works without a login.

Frequently asked questions

Do QR codes expire?
A static QR code never expires because the data is in the image itself. A code that points to a short link works only as long as that link is active.
What is the best file format for printing?
Use SVG or a high-resolution PNG. Vector SVG stays sharp at any size, which matters for posters and packaging.
Can I put a logo in a QR code?
Yes, if you use a high error-correction level and keep the logo small. Always test the final design on several devices.

More guides