📱Developer

How to Generate a QR Code That Actually Scans

QR codes fail because of contrast, size, or error correction settings. Here's how to generate reliable QR codes for print and digital use.

4 min readJanuary 30, 2026By FreeToolKit TeamFree to read

QR codes appear on restaurant menus, event tickets, business cards, product packaging, and everywhere else. Most work fine. Some are functionally useless because of avoidable design mistakes.

Generating a QR Code

Enter your URL, choose your error correction level (M is generally right for most uses), download as SVG for print or PNG for digital. SVG scales to any size without pixelation — always use SVG for print.

Size Requirements

Business card: minimum 2cm × 2cm, preferably 3cm × 3cm. Poster: 5–10cm for viewing distance under 3 meters; scale up for larger viewing distances. Phone screen: at least 200×200px for reliable scanning. The rule of thumb: the longer the URL, the more complex the QR code, so the larger it needs to be to remain scannable at small sizes.

Contrast and Color

Dark modules on light background, not the reverse. Maximum contrast = most reliable scanning. A black QR on white background is ideal. You can use brand colors — a dark navy QR on a cream background works fine. What doesn't work: light-colored QR codes on pastel backgrounds, QR codes placed over images with varying brightness, or reversed-out white QR codes on colored backgrounds (most scanners handle this poorly).

Testing Before Printing

Test your QR code with multiple devices before printing thousands. iPhone's camera, Android camera, and at least one dedicated QR scanner app. Test at the size it will actually be printed, not at screen size. Some QR code designs look great on screen but have issues at small print sizes. Print a sample at final size and test before full production runs.

URL shortening

Shorter URLs produce simpler QR codes that scan more reliably at smaller sizes. If your URL is long (/products/category/subcategory/item?id=12345&source=qr), use a URL shortener to create a short redirect. The simpler QR code is more robust in print.

Frequently Asked Questions

What can a QR code link to?+
Anything with a URL: websites, specific pages, app store listings, phone numbers (tel: prefix), emails (mailto: prefix), SMS messages (sms: prefix), WiFi network credentials (WIFI:S:NetworkName;T:WPA;P:Password;;), vCard contact information, and calendar events (ics format). The QR code encodes the text of the URL — you can technically encode any string, but the device's QR scanner app handles certain formats specially.
Why won't my QR code scan?+
Most scanning failures come from low contrast (dark QR on dark background or light on light — you need maximum contrast), being too small in print (QR codes need at least 1cm × 1cm to be reliably scanned, ideally 2–3cm for print materials), image quality too low (don't scale up a pixelated QR code — regenerate at the target size), or damaged/obscured modules (the black squares). Increase contrast, enlarge, and regenerate at native resolution for print.
What is error correction in QR codes?+
QR codes have four error correction levels (L, M, Q, H) that let the code remain scannable even if it's partially obscured or damaged. Level H allows up to 30% of the code to be damaged and still scan. Higher error correction makes the QR code larger and denser. For QR codes that will be printed on materials that might get dirty or damaged, use H. For clean digital displays, L or M is sufficient.
What's the difference between a static and dynamic QR code?+
A static QR code encodes the URL directly — if you want to change the destination, you need a new QR code. A dynamic QR code points to a redirect service URL that you control — you can change the destination without reprinting the code, and you can track scans. For printed materials like business cards, flyers, and packaging, dynamic QR codes are more practical since URLs change. Paid services (Bitly, QR Code Generator Pro) provide dynamic QR codes with analytics.

🔧 Free Tools Used in This Guide

FT

FreeToolKit Team

FreeToolKit Team

We build free browser-based tools and write practical guides that skip the fluff.

Tags:

qr-codetoolsdevelopermobile