Home/Blog/What is the best size and format for QR codes in different use cases?
Developer Tools

What is the best size and format for QR codes in different use cases?

Understand how to determine optimal QR code sizes for various applications, from business cards to billboards, ensuring reliable scanning.

By Inventive HQ Team
What is the best size and format for QR codes in different use cases?

Determining Optimal QR Code Size and Format

QR code size is a critical factor that affects both scannability and design integration. Unlike barcodes, which are primarily functional elements, QR codes can be seamlessly integrated into marketing materials, packaging, and digital designs when sized appropriately. Understanding the relationship between physical size, scanning distance, and design context allows you to deploy QR codes that are both visually appealing and reliably scannable across diverse applications and environments.

The "ideal" QR code size isn't a fixed measurement but depends on multiple factors: the scanning distance users will employ, the camera quality of typical scanning devices, the complexity of the data being encoded, and the context in which the code appears. Matching QR code size to these factors ensures optimal user experience and reliable campaign performance.

Understanding QR Code Versions and Physical Size

Version Numbers and Module Counts

QR codes come in 40 versions, numbered 1 to 40:

  • Version 1: 21×21 modules (smallest)
  • Version 2: 25×25 modules
  • Version 10: 57×57 modules
  • Version 20: 97×97 modules
  • Version 40: 177×177 modules (largest)

Each version increase adds 4 modules to both dimensions. The version required depends on how much data needs to be encoded and what error correction level you're using.

Module Size and Physical Dimensions

The physical size of a QR code depends on the module size (typically measured in millimeters or pixels):

1mm Module Size:

  • Version 1: 21mm × 21mm (0.83" × 0.83")
  • Version 10: 57mm × 57mm (2.24" × 2.24")
  • Version 20: 97mm × 97mm (3.82" × 3.82")

2mm Module Size:

  • Version 1: 42mm × 42mm (1.65" × 1.65")
  • Version 10: 114mm × 114mm (4.49" × 4.49")
  • Version 20: 194mm × 194mm (7.64" × 7.64")

3mm Module Size:

  • Version 1: 63mm × 63mm (2.48" × 2.48")
  • Version 10: 171mm × 171mm (6.73" × 6.73")
  • Version 20: 291mm × 291mm (11.46" × 11.46")

Minimum Size Guidelines

The 1cm Rule of Thumb

A common starting guideline is that the smallest modules should be at least 1mm (ideally 1.5-2mm) for reliable scanning with typical smartphone cameras. This translates to:

  • Version 1 (21×21): Minimum ~2cm × 2cm (with 1mm modules)
  • Version 5 (37×37): Minimum ~3.7cm × 3.7cm
  • Version 10 (57×57): Minimum ~5.7cm × 5.7cm

Codes smaller than 1cm × 1cm often fail to scan reliably without very close proximity or specialized cameras.

Scanning Distance Considerations

The physical size should account for typical scanning distances:

Point-of-Sale (1-3 feet away):

  • Minimum 2cm × 2cm
  • Typical 3-5cm × 3-5cm

Retail Shelf (6-12 inches away):

  • Minimum 3cm × 3cm
  • Typical 5-8cm × 5-8cm

Billboard/Large Sign (10-20 feet away):

  • Minimum 15cm × 15cm
  • Typical 30-50cm × 30-50cm

Vehicle/Parking Lot (30-50 feet away):

  • Minimum 30cm × 30cm
  • Typical 50-100cm × 50-100cm

Optimal Sizes for Specific Applications

Business Cards and Documents

Recommended Size: 2-3cm × 2-3cm (0.8-1.2 inches)

Specifications:

  • Typically Version 3-6
  • Error Correction Level M or Q
  • Positioned in corner or dedicated space
  • White border (quiet zone) of at least 5mm recommended

Best Practices:

  • Don't overwhelm the card design
  • Position where users naturally look
  • Ensure adequate white space around the code
  • Test scanning at arm's length

Product Packaging

Recommended Size: 2-4cm × 2-4cm (0.8-1.6 inches)

Specifications:

  • Version 3-8 depending on data
  • Error Correction Level M or Q for durability
  • Positioned prominently on packaging
  • High contrast with background color

Considerations:

  • Account for printing resolution (at least 300 DPI)
  • Test that ink dots don't blur together
  • Ensure codes remain distinct at shelf viewing distance
  • Position where scanning won't damage packaging

Posters and Print Advertising

Recommended Size: 5-10cm × 5-10cm (2-4 inches)

Specifications:

  • Version 5-15 for additional data capacity
  • Error Correction Level Q for outdoor durability
  • High-contrast colors
  • Professional alignment with design

Design Integration:

  • Consider making the code part of the design
  • Add descriptive text like "Scan for more information"
  • Ensure adequate white space
  • Test scannability in typical viewing distance

Large-Format Signage and Billboards

Recommended Size: 30cm-1m+ (12-40+ inches)

Specifications:

  • Version 20-40
  • Error Correction Level Q or H
  • Visible from significant distances
  • Weather-resistant printing

Deployment Considerations:

  • Calculate scanning distance: users should scan from 1-2 feet per 10cm of code size
  • A 50cm code is scannable from 5-10 feet away
  • Test from expected viewing distances
  • Consider lighting conditions

Vehicle Decals and External Signage

Recommended Size: 20-50cm × 20-50cm (8-20 inches)

Specifications:

  • Version 15-25
  • Error Correction Level H for weather resistance
  • High-contrast colors resistant to fading
  • Quality vinyl printing

Special Considerations:

  • Must withstand UV exposure and weather
  • Test scanning from vehicle windows
  • Account for motion when scanning from moving vehicles
  • Consider reflective surfaces and glare

Digital Display and Mobile

Recommended Size: 200-400 pixels × 200-400 pixels

Specifications:

  • Version depends on data length
  • Error Correction Level M for digital context
  • Scalable vector format when possible
  • High contrast on display background

Digital Considerations:

  • Ensure minimum 100-pixel size for mobile scanning
  • Test across different device sizes
  • Account for screen glare and reflections
  • Provide fallback text link

Digital Email and Online

Recommended Size: 150-300 pixels × 150-300 pixels

Specifications:

  • Typically Version 4-8
  • Error Correction Level M
  • SVG or high-resolution PNG format
  • Clickable with inline link fallback

Online Best Practices:

  • Include text alternative to QR code
  • Provide link and description text
  • Ensure code displays clearly at typical email viewing sizes
  • Test across email clients

Format and Resolution Specifications

Printing Formats

Raster Formats (PNG, JPG, TIFF):

  • Suitable for most printing applications
  • Minimum 300 DPI for professional printing
  • PNG preferred for crisp edges
  • JPG acceptable but may cause compression artifacts
  • TIFF for archival quality

Vector Formats (SVG, EPS, PDF):

  • Ideal for all sizes without quality loss
  • Infinitely scalable
  • Best for professional printing
  • Smaller file sizes for digital use
  • Perfect for flexible sizing

Recommendation: Use vector formats (SVG/EPS) whenever possible for maximum flexibility and quality.

Digital Formats

Web and Email:

  • PNG format for quality and transparency support
  • Minimum size: 100-200 pixels
  • Maximum recommended: 400-500 pixels
  • Include fallback text link

Mobile Apps and Digital Displays:

  • SVG or PNG
  • Minimum 100 pixels for scanning reliability
  • Typical 200-400 pixels for optimal UX
  • Scalable to screen size

Relationship Between Data Length and Size

Longer data requires larger QR codes:

Short URL (20-30 characters, like https://bit.ly/abc123):

  • Version 2-4: 2-3cm minimum size

Standard URL (50-60 characters):

  • Version 5-8: 3-5cm minimum size

Long URL with Parameters (80-100+ characters):

  • Version 10-15: 5-8cm minimum size

vCard/Contact Information:

  • Version 8-12: 4-6cm minimum size

WiFi Connection Data:

  • Version 5-8: 3-5cm minimum size

Testing Size Adequacy

Before deploying QR codes, test sizing by:

  1. Print at Intended Size: Print the QR code at the final size intended for use
  2. Test Multiple Devices: Try scanning with at least 5 different smartphone models
  3. Vary Distance: Test scanning from expected viewing distances
  4. Test Lighting: Scan in various lighting conditions (bright sun, indoor, dim)
  5. Angle Tests: Scan at various angles to code
  6. Device Tests: Test both iOS and Android devices
  7. User Testing: Have unfamiliar users attempt to scan without instructions

Failed scans at any point indicate the need for larger code or adjusted conditions.

Common Sizing Mistakes

Too Small: The most frequent error. Codes that look fine on a design mockup may be impossible to scan when printed small.

Ignoring Viewing Distance: Underestimating typical scanning distance leads to inadequate sizing.

Over-Compression: Overly aggressive JPEG compression damages QR codes. Always use PNG or vector formats.

Insufficient White Space: Placing the QR code too close to other design elements or the edge interferes with scanning.

Low Resolution Printing: Printing at less than 300 DPI creates blurry modules that won't scan reliably.

Wrong Error Correction: Using Level L for outdoor applications where higher levels are needed.

Size Optimization Tips

For Maximum Flexibility:

  • Generate QR codes with higher data (like URL shorteners) requires less space
  • Use URL shorteners to reduce data length: https://bit.ly/abc123 is 23 characters vs 100+ for full URL

For Limited Space:

  • Use URL shortening services
  • Encode minimal data (avoid vCard contact details if only URL is needed)
  • Use error correction Level L (though Level M is recommended)

For Maximum Reliability:

  • Larger codes are more reliable
  • Use higher error correction (Q or H)
  • Provide 2-3x recommended minimum size when possible

Conclusion

Optimal QR code sizing depends on viewing distance, scanning context, data length, and environmental factors. While minimum sizes can be calculated mathematically, practical testing ensures your codes will scan reliably for actual users in real-world conditions. Following application-specific sizing guidelines—from 2-3cm for business cards to 30cm+ for outdoor signage—combined with proper format selection and adequate white space creates QR codes that balance design integration with reliable functionality. When in doubt, err on the side of larger codes; a slightly oversized QR code is far preferable to codes that consistently fail to scan.

Need Expert IT & Security Guidance?

Our team is ready to help protect and optimize your business technology infrastructure.