QR codes that actually scan: size, contrast, error correction, and printing

A QR code that won't scan is just abstract art. Most failures aren't the code's fault โ€” they're a cropped margin, a pale color scheme, or a print size chosen by optimism. Here's how to make codes that scan first time, every time.

What the scanner is actually looking for

A phone finds a QR code by its three big corner squares, then reads the grid of small modules between them. That takes two things: a clear boundary around the code, and enough contrast between dark and light modules to read the grid mid-motion, in bad light. Almost every scanning failure is one of those two going wrong. The code itself is remarkably tough โ€” but it can't survive being invisible.

The quiet zone is part of the code

Every QR code needs a blank margin โ€” the quiet zone โ€” of about four modules' width on all sides. It looks like wasted space, so designers crop it, butt the code against a photo, or run it off the edge of a label. Don't. Without that empty frame, many scanners can't lock on at all. If your layout is tight, shrink the code slightly and keep the margin โ€” a code at 90% size with its quiet zone intact out-scans a bigger trimmed one, every time.

Contrast: dark on light, no exceptions worth making

Scanners judge modules by reflected light, so the safest code is near-black modules on a white or pale background.

Light-on-dark "inverted" codes look sharp on a poster and fail on a long list of scanners โ€” some phone cameras cope, plenty don't. Colored codes are fine within limits: keep the foreground dark and saturated (deep navy, forest green, black-plum), keep the background pale, and test. Prefer matte finishes โ€” glare off gloss wipes out contrast that looked fine on your desk.

Error correction: your damage budget

QR codes carry backup data, so a damaged code still reads. There are four levels: L recovers about 7% of the code, M about 15%, Q about 25%, and H about 30%. The trade-off is density โ€” more backup data means more modules in the same square, so each module shrinks and the code needs a bigger print size or a closer scan. Practical picks: M is plenty for screens and indoor print. Step up to Q or H when the code will live somewhere rough โ€” a laminated menu, an outdoor sticker, packaging that gets handled โ€” or when you plan to cover the middle with a logo; that's what the extra budget is for.

Size: the 10-to-1 rule

A useful rule of thumb: a code scans comfortably from about ten times its width away. A 2.5 cm (1 inch) code is a tabletop code โ€” menus, business cards, packaging. A code meant to be scanned across a room needs to be proportionally huge. As floors: don't print a simple code (a short link) below about 2 ร— 2 cm, and give dense codes โ€” long URLs, Wi-Fi credentials, vCards โ€” at least 3 ร— 3 cm. The cheapest way to make a code scan better is to shorten what it encodes: a short link makes a sparse code with big modules. On screens, display the code at a decent physical size and export it crisp โ€” vector or large PNG, never a small image stretched up.

Logos and styling: every flourish spends budget

A centered logo is just controlled damage, paid for out of the error-correction budget. Keep it modest โ€” roughly a fifth to a quarter of the code's area โ€” pair it with error correction level H, and leave the three corner squares strictly alone; they're how the scanner finds the code in the first place. Rounded or dot-style modules usually still scan if size and contrast are healthy, but each styling choice spends margin you might need for bad lighting or a cheap phone. Brand flair is fine. Spend it knowing the price.

Test like you mean it

Before anything goes to print: scan the final proof, at final size, on final material โ€” not the file on your monitor. Use two phones if you can, one of them old. Try the lighting the code will actually live in, an angle, a little distance. Then follow the code and check the destination loads what you expect. Ten minutes of this is the whole difference between a code people use and one they walk away from.

Making yours

Our QR code generator makes classic and styled codes in your browser โ€” your link never leaves the page. Pick classic black-on-white for anything mission-critical, and when in doubt: shorter link, bigger code, quiet zone intact.