QR Code Best Practices: Size, Placement & Testing Guide

Professional QR code guidelines for print and digital — minimum size requirements, placement rules, error correction levels, contrast requirements, and how to test before publishing.

By BarcodeGenerate Team ·

A QR code that fails to scan is worse than no QR code at all — it leaves users stranded and reflects poorly on your business. Yet most QR code failures are preventable with basic guidelines that most designers and marketers never learn.

This guide covers the professional standards for QR code size, placement, error correction, contrast, and testing — everything you need to ensure your QR codes work reliably in the real world.


Size Requirements

Minimum Sizes for Reliable Scanning

QR code scanning distance is approximately 10× the code’s physical size. A 2.5cm code can be read from about 25cm away; a 10cm code from about 1 meter.

Minimum sizes by use case:

ApplicationMinimum SizeRecommended Size
Business card2cm × 2cm2.5cm × 2.5cm
Brochure / flyer2.5cm × 2.5cm3.5cm × 3.5cm
Product packaging (hand-held)2cm × 2cm3cm × 3cm
Poster (viewed from 1–2m)5cm × 5cm8cm × 8cm
Outdoor banner / signage8cm × 8cm15cm+
Shop window (viewed from outside)12cm × 12cm20cm+
Billboard30cm+50cm+

The 10:1 scanning distance rule: multiply your minimum expected scanning distance by 0.1 to get minimum code size. A code on a poster viewed from 2 meters needs to be at least 20cm × 20cm.

The Module Size Problem

QR code size also depends on the version (number of modules). A Version 10 QR code (57×57 modules) needs larger individual modules — and therefore a larger physical size — than a Version 3 code (29×29 modules) to be readable.

Minimum module size:

  • Smartphone scanning: 0.5mm per module (minimum)
  • Industrial scanners: 0.25mm per module
  • Print resolution: minimum 10 pixels per module at 300 DPI

Practical implication: short URLs produce small QR codes (fewer modules) that can be printed smaller. Very long data forces larger versions with more modules, requiring either a larger physical size or better print quality.


Data Length and Encoding

Keep It Short

The most common mistake with QR codes: encoding too much data. Every character adds more modules, creating a denser, harder-to-scan code.

Guidelines by data type:

Data TypeMaximum Recommended Length
URL (alphanumeric)100–150 characters
URL (numeric only)200 characters
Plain text300 characters
Business card (vCard)Keep to essential fields

Beyond these limits, the code becomes so dense that smartphones struggle to read it reliably, especially in suboptimal lighting.

URL Shorteners

For long URLs, use a URL shortener. A URL like https://yourdomain.com/products/category/item (50 chars) becomes something like https://bit.ly/abc123 (22 chars) — resulting in a smaller, less dense QR code.

Important: If you use a third-party URL shortener (bit.ly, tinyurl), you’re dependent on their service staying active. For permanent codes on printed materials, use a URL redirector on your own domain:

  • https://yourdomain.com/qr/menu → redirects to wherever you want
  • You control the destination; the QR code never needs to be reprinted

Error Correction Level

QR codes have four error correction levels that determine how much damage the code can sustain and still be readable:

LevelRecovery CapacityUse Case
L (Low)7% damageDigital displays only, pristine conditions
M (Medium)15% damageMost printed materials
Q (Quartile)25% damageProduct labels, handled materials
H (High)30% damageOutdoor, industrial, logos embedded in code

Recommended default: Level M for most applications. It’s a good balance between code density and damage tolerance.

Use Level H when:

  • Adding a logo or image to the center of the QR code
  • Outdoor placement (weather, UV damage, dirt)
  • Industrial environments (grease, impact, abrasion)
  • Very small print sizes where print quality may be imperfect

Use Level L only when:

  • Displaying on screens where damage isn’t possible
  • You need the smallest possible code size
  • The environment is completely controlled

Higher error correction increases the number of modules, making the code larger. At the same physical size, Level H is denser and harder to scan than Level L. Choose the minimum level appropriate for your use case.


Contrast and Color

The Fundamental Rule

QR codes work by detecting light/dark contrast. Scanners measure reflected light: dark modules absorb light, light modules reflect it. Insufficient contrast = scan failure.

Required contrast: The dark modules should reflect less than 25% of light; the light modules should reflect more than 62.5% of light. In practice, this means:

  • Safe: Black on white
  • Safe: Dark navy on white
  • Marginal: Dark gray on light gray (test carefully)
  • Unsafe: Colored modules on colored background
  • Unsafe: White on light background
  • Unsafe: Any combination with less than 50% luminance difference

Color QR Codes

Colored QR codes are popular for brand materials but introduce risk. Guidelines:

  • Dark foreground, light background — always
  • Never reverse this (light on dark)
  • High saturation colors on white backgrounds can work if contrast ratio is sufficient
  • Always test colored QR codes on real devices before publishing

Inverted QR Codes (White on Dark)

Standard QR code decoders expect dark modules on light backgrounds. Some modern smartphone cameras can read inverted codes, but many cannot. Avoid white-on-dark designs for maximum compatibility.


Quiet Zone

The quiet zone is the mandatory white space around the QR code. It is not optional — without it, decoders cannot find the code’s boundaries.

QR code quiet zone requirement: 4 modules on all four sides

At a minimum module size of 0.5mm, this means at least 2mm of white space on each side. At larger print sizes, the quiet zone scales proportionally.

Common violation: Designer crops the QR code tightly to save space, eliminating the quiet zone. The code may look complete visually but fails to scan.

When placing a QR code in a design:

  • Never overlap other elements into the quiet zone
  • White (or whatever the light-module color is) must be consistent in the quiet zone
  • A colored border around the QR code is fine as long as it’s outside the quiet zone

Placement Guidelines

Physical Placement

Eye level is ideal. QR codes placed below knee height or above head height get less engagement — people have to awkwardly crouch or stretch to scan.

Flat surfaces scan better than curved ones. On rounded packaging, a scanner must be aligned precisely parallel to the label. On flat surfaces, the scan angle is more forgiving.

Consider the scanning moment. Where will someone be standing when they want to scan? Place the code where their phone naturally points when they’re in that position.

Minimum distance from edges and folds: At least 5mm from the edge of any printed material. On packaging, avoid placing codes on corners or across seams.

Digital Placement

For QR codes on websites, social media, or presentations:

  • Minimum 150×150 pixels
  • Surrounded by white space in the design (the quiet zone still applies)
  • Not placed on dark backgrounds or textured images

Reality check: QR codes on websites are generally unnecessary — the user is already online and can click links directly. Use them digitally only when the use case makes sense (e.g., showing a QR code so users can open a link on their phone).


Testing Protocol

Testing once before publishing is not enough. Use this protocol:

Before Printing

  1. Generate the QR code in the intended configuration
  2. Scan on screen with at least 3 different devices:
    • iPhone Camera app (iOS 11+)
    • Android Camera app or Google Lens
    • A dedicated QR scanner app
  3. Verify the decoded content is exactly correct
  4. If color QR code, test in simulated environment (dim light, angle)

After Test Print

  1. Print one copy at actual production size
  2. Scan under normal lighting conditions
  3. Scan at angles (30°, 45°) — a good code scans from various angles
  4. Scan in poor lighting
  5. If the code fails any test, investigate before printing the full run

After Deployment

For codes on permanent materials:

  • Test the deployed code monthly
  • Confirm the destination URL is still active
  • For dynamic codes, verify the redirect is working

Common QR Code Mistakes

Linking to non-mobile-optimized pages If someone scans a QR code on their phone, they open the destination on a phone. If the destination doesn’t work on mobile (non-responsive design, Flash, large files), the QR code is effectively broken even if it scans correctly.

Using static codes that can’t be updated The destination URL is baked into a static QR code. If the URL changes (product page moved, event ended, seasonal promotion over), the QR code becomes invalid. Either use a URL redirector on your own domain, or accept that the code will need to be reprinted.

No call to action A bare QR code doesn’t tell people what they’ll get. “Scan for menu,” “Scan for 15% off,” or “Scan to learn more” dramatically increase engagement vs. an unexplained code.

Testing only with one device Different phones process QR codes differently. A code that works on your iPhone may fail on an older Android. Always test with multiple devices.


Quick Reference

SettingRecommendation
Error correctionLevel M (default), Level H for logos/outdoor
Minimum print size2.5cm × 2.5cm for handheld scanning
Quiet zone4 modules (built into generator output)
ColorDark on light, 60%+ contrast ratio
Data lengthUnder 150 characters for URLs
Download formatSVG for print, PNG at 300+ DPI minimum

Generate your QR code with these settings in our QR Code Generator, then use our Barcode Scanner to test before printing.

Topics: QR code best practicesQR code sizeQR code placementQR code designQR code testing

Try the free barcode generator

Create professional barcodes and QR codes instantly. No registration required.