QR code generatorWi-Fi QR codevCardQR Code

How to Generate QR Codes for URLs, Wi-Fi, and Contact Cards

A QR code can store URLs, plain text, Wi-Fi credentials, and contact cards. The key is writing the content in a format scanners understand.

Published July 2, 2026 · 6 min read

The core of QR generation is not the image. It is the text payload that scanning apps can understand.

URL QR Codes

A URL QR code is the simplest case. Use the full URL and include https:// to reduce ambiguity.

https://toolgarden.xyz/en

Wi-Fi QR Codes

Wi-Fi QR codes usually use the WIFI text format with the security type, network name, and password.

WIFI:T:WPA;S:MyNetwork;P:myPassword;;

Contact Card QR Codes

Contact cards can use vCard text. Phones vary in what they import, but name, phone, email, and URL fields are broadly compatible.

BEGIN:VCARD
VERSION:3.0
FN:ToolGarden
URL:https://toolgarden.xyz
END:VCARD

Generation Tips

  • Longer content creates denser QR codes, so use a larger output size.
  • Keep a quiet zone around the code and avoid cropping the edges.
  • Use strong foreground and background contrast; black on white is safest.
  • For print, test scanning from the real viewing distance.
  • If you add a logo, keep it small and use a higher error correction level.

Summary

A QR code is text encoded as an image. Correct payload format, enough size, clear contrast, and a quiet zone make scanning reliable.