flashman
← All guides

QR codes for developers: URLs, Wi-Fi, and vCard

When to use QR codes, what to encode, and how to generate them safely for apps and documentation.

2026-06-03 · 5 min read

  • qr
  • generate

QR codes encode text into a scannable image. Developers use them for onboarding links, staging environment URLs, Wi-Fi setup cards, and contact sharing. A good generator lets you preview the result instantly without sending data to a server.

What to encode

Keep URLs short with redirects when possible. Long payloads produce denser QR images that are harder to scan on low-end cameras.

  • https:// URLs — most common for marketing and docs
  • mailto: and tel: links for support flows
  • WIFI:T:WPA;S:NetworkName;P:password;; for guest Wi-Fi
  • vCard text for conference badges

Testing before print

Scan with multiple phones under normal lighting. Verify HTTPS certificates on the destination. For internal staging URLs, add auth or expiry so leaked QR codes do not expose open environments.

Accessibility and UX

Always show the human-readable URL next to the QR image. Provide a plain link fallback for users who cannot scan codes.

Try these tools