DEV Community

TheAppsFirm
TheAppsFirm

Posted on

QR Codes in 2026: How Developers and Businesses Actually Use Them

QR codes went from restaurant menus during COVID to a core part of business infrastructure. Here is how they are actually used in 2026 and how to generate them programmatically.

Real-World QR Code Use Cases

1. Authentication and 2FA

Every TOTP authenticator app (Google Authenticator, Authy) uses QR codes to share the secret key. The QR encodes a URI like:

otpauth://totp/MyApp:user@email.com?secret=JBSWY3DPEHPK3PXP&issuer=MyApp
Enter fullscreen mode Exit fullscreen mode

2. Payment Systems

UPI in India, Pix in Brazil, and PayNow in Singapore all use QR codes for instant payments. A single scan replaces typing account numbers.

3. WiFi Sharing

Instead of spelling out your WiFi password, generate a QR code:

WIFI:T:WPA;S:MyNetwork;P:MyPassword;;
Enter fullscreen mode Exit fullscreen mode

Scan it on any phone and it connects automatically.

4. Digital Business Cards (vCard)

Encode your contact info as a QR code. When scanned, it prompts the phone to save the contact:

BEGIN:VCARD
VERSION:3.0
FN:Zia Shahid
ORG:The Apps Firm
TEL:+971501234567
EMAIL:info@theappsfirm.com
URL:https://theappsfirm.com
END:VCARD
Enter fullscreen mode Exit fullscreen mode

5. App Deep Links

Link directly to a specific screen in your mobile app. Both iOS Universal Links and Android App Links work with QR codes.

6. Event Tickets

Airline boarding passes, concert tickets, conference badges all use QR codes for fast scanning.

How to Generate QR Codes

In JavaScript:

// Using the qrcode-generator library
var qr = qrcode(0, "M");
qr.addData("https://theappsfirm.com");
qr.make();
document.getElementById("qr").innerHTML = qr.createSvgTag();
Enter fullscreen mode Exit fullscreen mode

In Python:

import qrcode
img = qrcode.make("https://theappsfirm.com")
img.save("qr.png")
Enter fullscreen mode Exit fullscreen mode

Online:
I built a free QR Code Generator that supports text, URLs, WiFi, email, phone, and vCard formats with custom colors, sizes, and error correction levels. Download as PNG or SVG.

QR Code Best Practices

  1. Use error correction level M or Q - allows the code to work even when partially damaged
  2. Minimum size: 2cm x 2cm for print, 200px for digital
  3. High contrast - dark foreground on light background works best
  4. Test before printing - scan with multiple phones
  5. Use short URLs - shorter data = simpler QR = faster scanning
  6. Add a call to action - "Scan to connect" or "Scan for WiFi" next to the code

Dynamic vs Static QR Codes

Feature Static Dynamic
Content Fixed forever Can change the destination URL
Tracking No analytics Scan count, location, device
Cost Free Usually paid service
Use case WiFi, vCard, one-time links Marketing campaigns, menus

For most developer use cases, static QR codes are fine. Dynamic codes add a redirect layer that can break.


What creative uses have you found for QR codes? Share in the comments.

Top comments (0)