How to Create QR Codes for Free — Complete Guide

QR codes bridge the physical and digital worlds. Learn everything about creating QR codes — types, error correction levels, sizing for print, design tips, and common use cases.

What Are QR Codes and Why Do They Matter?

QR codes — short for Quick Response codes — are two-dimensional barcodes that store data in a grid of black and white squares. Originally invented in 1994 by Denso Wave for tracking automotive parts, QR codes have since become ubiquitous across marketing, payments, logistics, and everyday life. Unlike traditional barcodes that hold only a handful of characters, a single QR code can encode up to 4,296 alphanumeric characters, making them incredibly versatile.

Whether you need to share a website link on a poster, encode Wi-Fi credentials for guests, or embed contact details in a business card, generating a QR code is fast, free, and surprisingly nuanced once you dig into the details. This guide walks you through everything you need to know — from choosing the right data type to ensuring your codes scan reliably in the real world.

Types of QR Codes You Can Create

Not all QR codes are created equal. The type of data you encode determines how the scanning device interprets the result. Here are the most common QR code types and their use cases:

TypeEncoded DataUse Case
URLWebsite addressMarketing materials, product pages, event registration
Plain TextArbitrary text stringSerial numbers, internal references, notes
Wi-FiSSID, password, encryptionGuest network access, hotel rooms, cafés
vCardName, phone, email, addressBusiness cards, conference badges
EmailAddress, subject, bodyCustomer support, feedback forms
SMSPhone number, messageOpt-in campaigns, quick contact
Geo LocationLatitude, longitudeStore locators, event venues
ℹ️

Wi-Fi QR codes use a special format: WIFI:T:WPA;S:NetworkName;P:Password;; — most modern phones recognise this automatically and offer to connect with a single tap.

Understanding Error Correction Levels

One of the most powerful features of QR codes is built-in error correction. Thanks to Reed-Solomon error correction, a QR code can still be scanned even if part of it is damaged, obscured, or covered by a logo. There are four error correction levels:

LevelRecovery CapacityBest For
L (Low)~7% damageControlled environments, digital screens
M (Medium)~15% damageGeneral-purpose use (default for most generators)
Q (Quartile)~25% damagePrinted materials exposed to wear
H (High)~30% damageCodes with embedded logos or heavy branding

Higher error correction means the QR code stores more redundant data, which increases the number of modules (the tiny squares) in the grid. A larger grid generally means you need a larger printed size for reliable scanning, so there is always a trade-off between resilience and physical size.

⚠️

If you plan to place a logo over the centre of your QR code, always use error correction level H. Lower levels may not survive the data loss caused by the logo overlay.

Sizing Your QR Code for Print

A QR code that looks fine on screen can fail miserably when printed on a flyer or a product label. Follow these sizing guidelines to ensure every scan succeeds:

1

Determine the Scanning Distance

A good rule of thumb is that the QR code's width should be at least 1/10th of the expected scanning distance. If someone will scan from 30 cm (about 12 inches) away, the code should be at least 3 cm (1.2 inches) wide.

2

Maintain the Quiet Zone

The quiet zone is the blank margin around the QR code. The specification recommends a margin of at least 4 modules wide on all sides. Without adequate quiet zone, scanners may fail to detect the code boundaries.

3

Set the Resolution

For print, export your QR code at a minimum of 300 DPI. Use vector formats (SVG or PDF) whenever possible — they scale infinitely without losing sharpness. Avoid JPEG for QR codes, as lossy compression can blur module edges.

Design Tips: Making QR Codes Look Great

A plain black-and-white QR code does the job, but a well-designed one reinforces your brand and invites people to scan. Here are practical design tips:

  • Contrast is king: Dark modules on a light background is the standard. Ensure a contrast ratio of at least 4:1 between the foreground and background colours.
  • Foreground should be darker: Scanners expect the data modules to be darker than the background. Inverting the colours (light on dark) significantly reduces scan reliability.
  • Use brand colours carefully: You can swap black for a dark brand colour (navy, dark green, etc.) and white for a very light tint. Avoid bright or saturated colours for modules.
  • Logo placement: Centre the logo and keep it within 20–30% of the QR code area. Use error correction level H.
  • Rounded modules: Slightly rounded squares can look modern and are generally fine for scanning, but avoid overly decorative shapes that blur module boundaries.
💡

Always test your styled QR code with at least three different scanning apps and under different lighting conditions before mass printing. What scans on your desk may fail under fluorescent lights at an event.

Real-World Use Cases

QR codes have moved far beyond novelty. Here are some of the most impactful ways businesses and individuals use them today:

  • Marketing & advertising: Print ads, brochures, and billboards link directly to landing pages, videos, or app downloads — bridging the gap between physical and digital media.
  • Contactless payments: Services like UPI, Alipay, and PayPal use QR codes for instant, secure transactions without card readers.
  • Inventory & asset tracking: Warehouses and IT departments label equipment with QR codes for quick lookups and audit trails.
  • Restaurant menus: Post-pandemic, QR-code-based menus have become the norm in many restaurants, reducing printing costs and enabling real-time updates.
  • Authentication & 2FA: Apps like Google Authenticator use QR codes to exchange TOTP secrets during setup.
  • Event check-in: Tickets and badges with QR codes speed up entry and attendance tracking.

Testing Your QR Code

Before deploying a QR code in production — whether on a banner, product packaging, or an email campaign — run through this checklist:

  1. Scan with the default camera app on both iOS and Android.
  2. Try a dedicated QR scanner app to verify the decoded data is correct.
  3. Test at the intended scanning distance (use a ruler if needed).
  4. Print a test copy at full size and scan the physical print.
  5. Check under different lighting conditions: daylight, indoor, and low light.
  6. Verify the destination URL or data is live and correct.
# Example: Generate a QR code with Python (qrcode library)
import qrcode

qr = qrcode.QRCode(
    version=1,
    error_correction=qrcode.constants.ERROR_CORRECT_H,
    box_size=10,
    border=4,
)
qr.add_data("https://example.com")
qr.make(fit=True)

img = qr.make_image(fill_color="darkblue", back_color="white")
img.save("my_qr_code.png")

Conclusion

Creating a QR code is easy — creating a good QR code requires a bit more thought. By choosing the right data type, error correction level, and size, and by following solid design principles, you can produce QR codes that scan reliably, look professional, and serve your goals effectively.

Whether you are a marketer looking to bridge print and digital, a developer integrating QR-based workflows, or simply someone sharing Wi-Fi credentials with guests, the fundamentals covered in this guide will set you up for success.

🎯 Key Takeaways

  • Choose the right QR code type (URL, Wi-Fi, vCard, etc.) for your specific use case.
  • Use error correction level H when embedding logos; level M is a good default for general use.
  • Size your QR code at 1/10th the scanning distance and maintain a 4-module quiet zone.
  • Export in SVG or PDF for print; always use at least 300 DPI for raster formats.
  • Test on multiple devices, apps, and lighting conditions before mass production.
  • Keep dark modules on a light background with a contrast ratio of at least 4:1.
← Volver al Blog